summaryrefslogtreecommitdiff
path: root/sysutils/dtc
diff options
context:
space:
mode:
authorjmcneill <jmcneill@pkgsrc.org>2017-05-31 13:24:31 +0000
committerjmcneill <jmcneill@pkgsrc.org>2017-05-31 13:24:31 +0000
commitae0ce6957d1c40f4a9bd9fdb831a0de9aa769062 (patch)
treedf751f54c042b00494bb3e2a8452356e9563727a /sysutils/dtc
parentaf7703b51dcd308a6a21bee026bf535a6c5baf46 (diff)
downloadpkgsrc-ae0ce6957d1c40f4a9bd9fdb831a0de9aa769062.tar.gz
Change to DTS_DIR before running dtc so include "foo.dtsi" does the right
thing.
Diffstat (limited to 'sysutils/dtc')
-rw-r--r--sysutils/dtc/linux-dtb.mk11
1 files changed, 6 insertions, 5 deletions
diff --git a/sysutils/dtc/linux-dtb.mk b/sysutils/dtc/linux-dtb.mk
index 5916761eb0a..a544428b8fa 100644
--- a/sysutils/dtc/linux-dtb.mk
+++ b/sysutils/dtc/linux-dtb.mk
@@ -1,4 +1,4 @@
-# $NetBSD: linux-dtb.mk,v 1.1 2017/05/25 21:39:57 jmcneill Exp $
+# $NetBSD: linux-dtb.mk,v 1.2 2017/05/31 13:24:31 jmcneill Exp $
LK_VERSION= 4.11.3
PKGNAME= dtb-${DTB_ARCH}-${DTB_DEVICE}-${LK_VERSION}
@@ -27,10 +27,11 @@ DTS_ARCH_INC= ${DTS_DIR}/include
do-build:
.for d in ${DTB_DTS}
- ${CPP} -P -x assembler-with-cpp -I ${DTS_INC} -I ${DTS_ARCH_INC} \
- -include ${DTS_DIR}/${d} /dev/null | \
- ${DTC} -i ${DTS_INC} -i ${DTS_ARCH_INC} -I dts -O dtb \
- -p 1024 -b 0 -o ${DTS_DIR}/${d:C/dts$/dtb/}
+ cd ${DTS_DIR} && \
+ ${CPP} -P -x assembler-with-cpp -I ${DTS_INC} -I ${DTS_ARCH_INC} \
+ -include ${DTS_DIR}/${d} /dev/null | \
+ ${DTC} -i ${DTS_INC} -i ${DTS_ARCH_INC} -I dts -O dtb \
+ -p 1024 -b 0 -o ${DTS_DIR}/${d:C/dts$/dtb/}
.endfor
do-install: