2023-03-09 18:30:40 +01:00
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
2019-11-19 23:25:39 +01:00
|
|
|
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
|
|
|
|
|
|
2021-07-05 15:05:43 -04:00
|
|
|
if [[ $BOARD = khadas-vim1 ]]; then
|
2022-10-08 13:18:00 +02:00
|
|
|
# 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"
|
2021-07-05 15:05:43 -04:00
|
|
|
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
|
|
|
|
|
|
2022-10-08 13:18:00 +02:00
|
|
|
family_tweaks() {
|
2022-11-06 14:33:24 -05:00
|
|
|
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
|
2019-11-19 23:25:39 +01:00
|
|
|
}
|
|
|
|
|
|
2022-10-08 13:18:00 +02:00
|
|
|
uboot_custom_postprocess() {
|
2019-11-19 23:25:39 +01:00
|
|
|
if [[ $BOARD == lepotato ]]; then
|
|
|
|
|
uboot_gxl_postprocess $SRC/cache/sources/odroidc2-blobs/ gxl
|
|
|
|
|
fi
|
|
|
|
|
|
2022-11-06 14:33:24 -05:00
|
|
|
if [[ $BOARD == aml-s9xx-box ]]; then
|
|
|
|
|
uboot_gxl_postprocess $SRC/cache/sources/odroidc2-blobs/ gxl
|
|
|
|
|
fi
|
|
|
|
|
|
2021-07-05 15:05:43 -04:00
|
|
|
if [[ $BOARD == khadas-vim1 ]]; then
|
2019-11-19 23:25:39 +01:00
|
|
|
uboot_gxl_postprocess $SRC/cache/sources/odroidc2-blobs/ vim1
|
|
|
|
|
fi
|
2020-11-24 19:58:48 +00:00
|
|
|
|
2021-07-05 15:05:43 -04:00
|
|
|
if [[ $BOARD == khadas-vim2 ]]; then
|
2020-11-24 19:58:48 +00:00
|
|
|
uboot_gxl_postprocess_ng $SRC/cache/sources/amlogic-boot-fip/khadas-vim2
|
|
|
|
|
fi
|
2019-11-19 23:25:39 +01:00
|
|
|
}
|