eed8631c02
Fix error if -p arg or dtb dir do not end with /. Currently, running $ dtbTool-sprd -p "scripts/dtc" -o "arch/arm/boot/dt.img" "arch/arm/boot/dts/" or $ dtbTool-sprd -p "scripts/dtc/" -o "arch/arm/boot/dt.img" "arch/arm/boot/dts" fails with something like DTB combiner: Input directory: 'arch/arm/boot/dts/' Output file: 'dt.img' Found file: sprd-scx20_sp7731ceb.dtb ... skip, failed to scan for 'sprd,sc-id =<' tag => Found 0 unique DTB(s) instead of succeeding with something like DTB combiner: Input directory: 'arch/arm/boot/dts/' Output file: 'dt.img' Found file: sprd-scx20_sp7731ceb.dtb ... chipset: 8830, platform: 1, rev: 131072 => Found 1 unique DTB(s) Generating master DTB... completed The reason for the failure is that the tool tries to run external commands and concatenates the path from the args, meaning that it tries to run scripts/dtcdtc instead of scripts/dtc/dtc. |
||
---|---|---|
.. | ||
APKBUILD |