1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/u-boot/u-boot.conf
3 # Copyright (C) 2006 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 # maybe set MY_ARCH, too, otherwise their Makefile sed's CROSS_COMPILE:
13 makeopt="CROSS_COMPILE=$archprefix -j$SDECFG_PARALLEL_MAX"
19 case "$SDECFG_AVR32_BOARDDEF" in
20 atngw100|atstk100*) board=$SDECFG_AVR32_BOARDDEF ;;
24 board=$SDECFG_ARM_BOARDDEF ;;
26 export OPENSBI="$root/boot/fw_dynamic.bin"
27 board=sifive_unleashed ;;
29 export OPENSBI="$root/boot/fw_dynamic.bin"
30 board=sifive_unmatched ;;
32 [ ! "$board" -o "$board" = "none" ] &&
33 abort "TODO: Add $arch and board configuration"
35 hook_add premake 3 'eval $MAKE ${board}_defconfig'
36 hook_add postmake 3 'eval $MAKE $makeopt env'
39 local toolsbin=$base/build/$SDECFG_ID/TOOLCHAIN/$toolsdir/bin/mkimage
40 atstage native && toolsbin=$root$sbindir/mkimage
42 install tools/mkimage $toolsbin
43 #install tools/env/fw_printenv $root$sbindir
44 install u-boot.* $root/boot/
45 [[ "$arch" = riscv* ]] && install spl/u-boot-spl.bin $root/boot/
47 ln -sf fw_printenv $root$sbindir/fw_setenv
49 hook_add postmake 5 'u_boot_install'