Turns out this .if evaluated not in the context of the makedtb target

sometimes due to Makefile expansion rules. Make the test for things
being NULL elsewhere...
This commit is contained in:
Warner Losh 2014-04-30 20:47:40 +00:00
parent 51ad63daae
commit 56d78e82f0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=265162
2 changed files with 5 additions and 3 deletions

View File

@ -1830,9 +1830,6 @@ DTBOUTPUTPATH= ${.CURDIR}
# Build 'standalone' Device Tree Blob
#
builddtb:
.if !defined(FDT_DTS_FILE)
.error "FDT_DTS_FILE must be specified!"
.endif
@PATH=${TMPPATH} MACHINE=${TARGET} \
${.CURDIR}/sys/tools/fdt/make_dtb.sh ${.CURDIR}/sys \
"${FDT_DTS_FILE}" ${DTBOUTPUTPATH}

View File

@ -7,6 +7,11 @@ S=$1
dts="$2"
dtb_path=$3
if [ -n "$dts" ]; then
echo "No DTS specified"
exit 1
fi
for d in ${dts}; do
dtb=${dtb_path}/`basename $d .dts`.dtb
echo "converting $d -> $dtb"