mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
There is no way to support this on s905 TV Boxes while reusing the android u-boot as the android uboot on s905 conflicts with the partition table location of standard mainline linux. Changes to be committed: modified: config/sources/families/meson-gxl.conf deleted: packages/bsp/aml-s9xx-box/root/install-aml-s905-emmc.sh
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
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
|
|
}
|