Source-Changes-HG archive

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

[src/trunk]: src/sys/conf handle absolute $S paths; we want to add ../ if the...



details:   https://anonhg.NetBSD.org/src/rev/56fbacdf95b2
branches:  trunk
changeset: 828227:56fbacdf95b2
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Dec 03 17:07:18 2017 +0000

description:
handle absolute $S paths; we want to add ../ if they are relative only.

diffstat:

 sys/conf/dts.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fa1674307996 -r 56fbacdf95b2 sys/conf/dts.mk
--- a/sys/conf/dts.mk   Sun Dec 03 16:36:05 2017 +0000
+++ b/sys/conf/dts.mk   Sun Dec 03 17:07:18 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: dts.mk,v 1.4 2017/12/03 16:36:05 christos Exp $
+# $NetBSD: dts.mk,v 1.5 2017/12/03 17:07:18 christos Exp $
 
 DTSARCH?=${MACHINE_CPU}
 DTSGNUARCH?=${DTSARCH}
@@ -7,7 +7,7 @@
 .BEGIN:
        @mkdir -p dts
 .for _arch in ${DTSGNUARCH}
-       @ln -sf ../$S/external/gpl2/dts/dist/arch/${_arch}/boot/dts dts/${_arch}
+       @ln -sf ${S:S@^../@../../@}/external/gpl2/dts/dist/arch/${_arch}/boot/dts dts/${_arch}
 .endfor
 
 DTSINC?=$S/external/gpl2/dts/dist/include



Home | Main Index | Thread Index | Old Index