diff options
-rw-r--r-- | Makefile.inc1 | 3 | ||||
-rwxr-xr-x | sys/tools/fdt/make_dtb.sh | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index e31945f..8bf192d 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -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} diff --git a/sys/tools/fdt/make_dtb.sh b/sys/tools/fdt/make_dtb.sh index 278b7bb..272c19b 100755 --- a/sys/tools/fdt/make_dtb.sh +++ b/sys/tools/fdt/make_dtb.sh @@ -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" |