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
23 LINUX_DTS_VERSION=$(make -C $S/gnu/dts -V LINUX_DTS_VERSION)
26 dtb="${dtb_path}/$(basename "$d" .dts).dtb"
27 ${ECHO} "converting $d -> $dtb"
28 ${CPP} -DLINUX_DTS_VERSION=\"${LINUX_DTS_VERSION}\" -P -x assembler-with-cpp -I "$S/gnu/dts/include" -I "$S/dts/${MACHINE}" -I "$S/gnu/dts/${MACHINE}" -I "$S/gnu/dts/" -include "$d" -include "$S/dts/freebsd-compatible.dts" /dev/null |
29 ${DTC} -@ -O dtb -o "$dtb" -b 0 -p 1024 -i "$S/dts/${MACHINE}" -i "$S/gnu/dts/${MACHINE}" -i "$S/gnu/dts/"