]> xenbits.xensource.com Git - people/julieng/freebsd.git/commitdiff
META_MODE: Default OBJROOT to the traditional /usr/src/SRCTOP/.
authorbdrewery <bdrewery@FreeBSD.org>
Thu, 17 Sep 2015 04:22:00 +0000 (04:22 +0000)
committerbdrewery <bdrewery@FreeBSD.org>
Thu, 17 Sep 2015 04:22:00 +0000 (04:22 +0000)
This avoids easily colliding multiple src trees with the same objects.  Having
multiple checkouts in dir/ dir2/ dir3/ would all use obj/ without any unique
identifier inside of obj/.  This pattern is more likely to be used due
to the non-META_MODE behavior working with it fine.

In environments where ../obj/ is wanted as the obj directory the value of
OBJROOT can be set to ${SRCTOP:H}/obj/ instead via src-env.conf (set by
SRC_ENV_CONF) or environment.  For environment it must be single quoted or
escaped.  This will be more likely for vendors who are building images or using
NFS for builds.  In those cases MAKEOBJDIRPREFIX may already be utilized and
is supported.

Discussed with: imp
Sponsored by: EMC / Isilon Storage Division

share/mk/local.meta.sys.mk

index 13b008d751c983f6be180f279d67269ee63594d7..29b9687ae9316e208b56c1224727f675c6cfada3 100644 (file)
@@ -31,7 +31,7 @@ SB_OBJROOT ?= ${SB}/obj/
 # this is what we use below
 OBJROOT ?= ${SB_OBJROOT}
 .endif
-OBJROOT ?= ${SRCTOP:H}/obj/
+OBJROOT ?= /usr/obj/${SRCTOP}/
 .if ${OBJROOT:M*/} != ""
 OBJROOT:= ${OBJROOT:H:tA}/
 .else