mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
* Add / modify (c) in bash scripts Signed-off-by: Igor <igor@armbian.com> * Add (c) to the source config files --------- Signed-off-by: Igor <igor@armbian.com>
50 lines
1.5 KiB
Plaintext
50 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/
|
|
#
|
|
source "${BASH_SOURCE%/*}/include/meson64_common.inc"
|
|
|
|
if [[ $BOARD == lafrite ]]; then
|
|
UBOOT_TARGET_MAP="u-boot-dtb.img;;u-boot.bin:u-boot.bin u-boot-dtb.img"
|
|
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() {
|
|
if [[ $BOARD = aml-s9xx-box ]]; then
|
|
cp -r $SRC/packages/bsp/aml-s9xx-box/boot $SDCARD
|
|
install -m 755 $SRC/packages/bsp/aml-s9xx-box/root/install-aml.sh $SDCARD/root
|
|
install -m 644 $SRC/packages/bsp/aml-s9xx-box/root/fstab.template $SDCARD/root
|
|
fi
|
|
}
|
|
|
|
uboot_custom_postprocess() {
|
|
if [[ $BOARD == lepotato ]]; then
|
|
uboot_gxl_postprocess $SRC/cache/sources/odroidc2-blobs/ gxl
|
|
fi
|
|
|
|
if [[ $BOARD == aml-s9xx-box ]]; then
|
|
uboot_gxl_postprocess $SRC/cache/sources/odroidc2-blobs/ gxl
|
|
fi
|
|
|
|
if [[ $BOARD == khadas-vim1 ]]; then
|
|
uboot_gxl_postprocess $SRC/cache/sources/odroidc2-blobs/ vim1
|
|
fi
|
|
|
|
if [[ $BOARD == khadas-vim2 ]]; then
|
|
uboot_gxl_postprocess_ng $SRC/cache/sources/amlogic-boot-fip/khadas-vim2
|
|
fi
|
|
}
|