Subject: kernel build warning when syssrc isn't under BSDSRCDIR
To: None <tech-toolchain@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: tech-toolchain
Date: 11/24/2001 16:52:39
----Next_Part(Sat_Nov_24_16:52:39_2001_686)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
hi.
when i build current kernel with syssrc only,
(syssrc is NOT under ${BSDSRCDIR})
i saw following warnings.
> make: "/usr/share/mk/bsd.own.mk" line 51: warning: "cd && make -V .OBJDIR" returned non-ze
i'm not sure if correct or not, but attached patch solve this.
thanks.
---
YAMAMOTO Takashi<yamt@mwd.biglobe.ne.jp>
----Next_Part(Sat_Nov_24_16:52:39_2001_686)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="bsd.own.mk.diff"
Index: bsd.own.mk
===================================================================
RCS file: /cvsroot/sharesrc/share/mk/bsd.own.mk,v
retrieving revision 1.222
diff -u -p -r1.222 bsd.own.mk
--- bsd.own.mk 2001/11/19 04:44:32 1.222
+++ bsd.own.mk 2001/11/24 07:39:20
@@ -48,7 +48,11 @@ _SRC_TOP_!= cd ${.CURDIR}; while :; do \
.endif
.if !defined(_SRC_TOP_OBJ_)
+.if (${_SRC_TOP_} != "")
_SRC_TOP_OBJ_!= cd ${_SRC_TOP_} && ${PRINTOBJDIR}
+.else
+_SRC_TOP_OBJ_!= ${PRINTOBJDIR}
+.endif
.MAKEOVERRIDES+= _SRC_TOP_OBJ_
.endif
----Next_Part(Sat_Nov_24_16:52:39_2001_686)----