mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
52 lines
1.5 KiB
Plaintext
52 lines
1.5 KiB
Plaintext
#
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
#
|
|
# Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com
|
|
#
|
|
# This file is a part of the Armbian Build Framework
|
|
# https://github.com/armbian/build/
|
|
#
|
|
# shellcheck source=config/sources/families/include/meson64_common.inc
|
|
source "${BASH_SOURCE%/*}/include/meson64_common.inc"
|
|
|
|
if [[ $BOARD == lafrite ]] || [[ $BOARD == sweet-potato ]]; then
|
|
UBOOT_TARGET_MAP="u-boot-dtb.img;;u-boot.bin:u-boot.bin u-boot-dtb.img"
|
|
BOOTSCRIPT="boot-meson-gx.cmd:boot.cmd"
|
|
fi
|
|
|
|
if [[ $BOARD = khadas-vim1 ]]; then
|
|
# temporally workaround - using prebuild u-boot from https://github.com/khadas/khadas-uboot/releases/tag/0.11
|
|
UBOOT_TARGET_MAP=";;$SRC/packages/blobs/meson/u-boot-vim1-sd.bin:u-boot.bin"
|
|
fi
|
|
|
|
if [[ $BOARD = khadas-vim2 ]]; then
|
|
# temporally workaround - using prebuild u-boot from https://github.com/khadas/khadas-uboot/releases/tag/0.11
|
|
UBOOT_TARGET_MAP=";;$SRC/packages/blobs/meson/u-boot-vim2-sd.bin:u-boot.bin"
|
|
fi
|
|
|
|
family_tweaks() {
|
|
:
|
|
}
|
|
|
|
uboot_custom_postprocess() {
|
|
if [[ $BOARD == lepotato ]]; then
|
|
uboot_gxl_postprocess_ng $SRC/cache/sources/amlogic-boot-fip/lepotato
|
|
fi
|
|
|
|
if [[ $BOARD == aml-c400-plus ]]; then
|
|
uboot_gxl_postprocess_ng $SRC/cache/sources/amlogic-boot-fip/p212
|
|
fi
|
|
|
|
if [[ $BOARD == aml-s9xx-box ]]; then
|
|
uboot_gxl_postprocess_ng $SRC/cache/sources/amlogic-boot-fip/p212
|
|
fi
|
|
|
|
if [[ $BOARD == khadas-vim1 ]]; then
|
|
uboot_gxl_postprocess_ng $SRC/cache/sources/amlogic-boot-fip/khadas-vim
|
|
fi
|
|
|
|
if [[ $BOARD == khadas-vim2 ]]; then
|
|
uboot_gxl_postprocess_ng $SRC/cache/sources/amlogic-boot-fip/khadas-vim2
|
|
fi
|
|
}
|