5 # Script generates dtb file ($3) from dts source ($2) in build tree S ($1)
10 if [ -z "$dts" ]; then
11 echo "No DTS specified"
15 if [ -z "${MACHINE}" ]; then
22 dtb=${dtb_path}/`basename $d .dts`.dtb
23 echo "converting $d -> $dtb"
24 cpp -P -x assembler-with-cpp -I $S/gnu/dts/include -I $S/boot/fdt/dts/${MACHINE} -I $S/gnu/dts/${MACHINE} -include $d /dev/null |
25 ${DTC} -@ -O dtb -o $dtb -b 0 -p 1024 -i $S/boot/fdt/dts/${MACHINE} -i $S/gnu/dts/${MACHINE}