3 # script to generate FIT image source for 64-bit sunxi boards with
4 # ARM Trusted Firmware and multiple device trees (given on the command line)
6 # usage: $0 <dt_name> [<dt_name> [<dt_name] ...]
8 [ -z "$BL31" ] && BL31="bl31.bin"
10 if [ ! -f $BL31 ]; then
11 echo "WARNING: BL31 file $BL31 NOT found, resulting binary is non-functional" >&2
12 echo "Please read the section on ARM Trusted Firmware (ATF) in board/sunxi/README.sunxi64" >&2
16 if grep -q "^CONFIG_MACH_SUN50I_H6=y" .config; then
26 description = "Configuration to load ATF before U-Boot";
31 description = "U-Boot (64-bit)";
32 data = /incbin/("u-boot-nodtb.bin");
39 description = "ARM Trusted Firmware";
40 data = /incbin/("$BL31");
52 cat << __FDT_IMAGE_EOF
54 description = "$(basename $dtname .dtb)";
55 data = /incbin/("$dtname");
63 cat << __CONF_HEADER_EOF
73 cat << __CONF_SECTION_EOF
75 description = "$(basename $dtname .dtb)";