pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/dtc Change to DTS_DIR before running dtc so i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8b5431ce5c8b
branches:  trunk
changeset: 363070:8b5431ce5c8b
user:      jmcneill <jmcneill%pkgsrc.org@localhost>
date:      Wed May 31 13:24:31 2017 +0000

description:
Change to DTS_DIR before running dtc so include "foo.dtsi" does the right
thing.

diffstat:

 sysutils/dtc/linux-dtb.mk |  11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diffs (25 lines):

diff -r cf4433d83e8b -r 8b5431ce5c8b sysutils/dtc/linux-dtb.mk
--- a/sysutils/dtc/linux-dtb.mk Wed May 31 12:26:50 2017 +0000
+++ b/sysutils/dtc/linux-dtb.mk Wed May 31 13:24:31 2017 +0000
@@ -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 @@
 
 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:



Home | Main Index | Thread Index | Old Index