diff options
author | imp <imp@FreeBSD.org> | 2014-04-26 16:58:35 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2014-04-26 16:58:35 +0000 |
commit | a49405b1dd2e0eb6eda05661c91b297a5f744404 (patch) | |
tree | 2651dd440286868787b44838c6d767e038177357 /Makefile.inc1 | |
parent | 881682da6dc9e7879f9fbff8076617652150f702 (diff) | |
download | FreeBSD-src-a49405b1dd2e0eb6eda05661c91b297a5f744404.zip FreeBSD-src-a49405b1dd2e0eb6eda05661c91b297a5f744404.tar.gz |
make_dtb.sh is designed to be used in a kernel build environment where
MACHINE is defined to the target's value, not the host's
value. However, in Makefile.inc1, it is still defined to be the host's
value. Make the makedtb target work by expanding TARGET in the
existance test, and passing MACHINE=$TARGET in the call to make_dtb.sh
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index d4fb4e9..c9ad941 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1833,7 +1833,7 @@ builddtb: echo "ERROR: FDT_DTS_FILE must be specified!"; \ exit 1; \ fi; \ - if [ ! -f ${.CURDIR}/sys/boot/fdt/dts/${MACHINE}/${FDT_DTS_FILE} ]; then \ + if [ ! -f ${.CURDIR}/sys/boot/fdt/dts/${TARGET}/${FDT_DTS_FILE} ]; then \ echo "ERROR: Specified DTS file (${FDT_DTS_FILE}) does not \ exist!"; \ exit 1; \ @@ -1843,6 +1843,7 @@ builddtb: directory"; \ fi @PATH=${TMPPATH} \ + MACHINE=${TARGET} \ ${.CURDIR}/sys/tools/fdt/make_dtb.sh ${.CURDIR}/sys \ ${FDT_DTS_FILE} \ ${DTBOUTPUTPATH}/`basename ${FDT_DTS_FILE} .dts` |