mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
make_dtb.sh: add include path
The device tree include file for TI TPS65* is in a relative path to the source for example: device-tree/src/arm/ti/omap/am335x-bone-common.dtsi#n305 device-tree/src/arm/rockchip/rk3066a-marsboard.dts#n183 This patch gets the dts path and adds that as an include path for the device tree compiler. Approved by: manu (mentor) Differential revision: https://reviews.freebsd.org/D53887
This commit is contained in:
parent
f825427c0a
commit
95d8576d8c
1 changed files with 2 additions and 1 deletions
|
|
@ -21,6 +21,7 @@ fi
|
|||
|
||||
for d in ${dts}; do
|
||||
dtb="${dtb_path}/$(basename "$d" .dts).dtb"
|
||||
dts_path=`dirname $d`
|
||||
${CPP} -P -x assembler-with-cpp -I "$S/dts/include" -I "$S/contrib/device-tree/include" -I "$S/dts/${MACHINE}" -I "$S/contrib/device-tree/src/${MACHINE}" -I "$S/contrib/device-tree/src/" -include "$d" -include "$S/dts/freebsd-compatible.dts" /dev/null |
|
||||
${DTC} -@ -O dtb -o "$dtb" -b 0 -p 1024 -i "$S/dts/${MACHINE}" -i "$S/contrib/device-tree/src/${MACHINE}" -i "$S/contrib/device-tree/src/"
|
||||
${DTC} -@ -O dtb -o "$dtb" -b 0 -p 1024 -i "$S/dts/${MACHINE}" -i "$S/contrib/device-tree/src/${MACHINE}" -i "$S/contrib/device-tree/src/" -i "$dts_path"
|
||||
done
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue