Subject: Re: kernel build warning when syssrc isn't under BSDSRCDIR
To: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
From: Perry E. Metzger <perry@wasabisystems.com>
List: tech-toolchain
Date: 11/24/2001 12:30:43
YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp> writes:
> when i build current kernel with syssrc only,
> (syssrc is NOT under ${BSDSRCDIR})
> i saw following warnings.
I'm working on this problem. Unfortunately, your patch will break
UNPRIVED builds under some circumstances so a bunch more stuff needs
to be fixed in addition. I should have it committed soon.
Perry
>
> > 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>
> 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
>
--
Perry E. Metzger perry@wasabisystems.com
--
NetBSD Development, Support & CDs. http://www.wasabisystems.com/