buildworld: Pass which world phase the build is in down to submakes.
This is useful for having directories behave differently depending on the phase - such as enabling SUBDIR_PARALLEL or disabling redundant building of library directories already done by earlier 'make _libraries'. Sponsored by: Dell EMC Isilon
This commit is contained in:
parent
aeb2785c30
commit
817366f1c1
@ -518,6 +518,7 @@ BMAKEENV= INSTALL="sh ${.CURDIR}/tools/install.sh" \
|
|||||||
# need to keep this in sync with targets/pseudo/bootstrap-tools/Makefile
|
# need to keep this in sync with targets/pseudo/bootstrap-tools/Makefile
|
||||||
BSARGS= DESTDIR= \
|
BSARGS= DESTDIR= \
|
||||||
BOOTSTRAPPING=${OSRELDATE} \
|
BOOTSTRAPPING=${OSRELDATE} \
|
||||||
|
BWPHASE=${.TARGET:C,^_,,} \
|
||||||
SSP_CFLAGS= \
|
SSP_CFLAGS= \
|
||||||
MK_HTML=no NO_LINT=yes MK_MAN=no \
|
MK_HTML=no NO_LINT=yes MK_MAN=no \
|
||||||
-DNO_PIC MK_PROFILE=no -DNO_SHARED \
|
-DNO_PIC MK_PROFILE=no -DNO_SHARED \
|
||||||
@ -536,6 +537,7 @@ TMAKE= MAKEOBJDIRPREFIX=${OBJTREE} \
|
|||||||
TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
|
TARGET=${TARGET} TARGET_ARCH=${TARGET_ARCH} \
|
||||||
DESTDIR= \
|
DESTDIR= \
|
||||||
BOOTSTRAPPING=${OSRELDATE} \
|
BOOTSTRAPPING=${OSRELDATE} \
|
||||||
|
BWPHASE=${.TARGET:C,^_,,} \
|
||||||
SSP_CFLAGS= \
|
SSP_CFLAGS= \
|
||||||
-DNO_LINT \
|
-DNO_LINT \
|
||||||
-DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no \
|
-DNO_CPU_CFLAGS MK_WARNS=no MK_CTF=no \
|
||||||
@ -689,7 +691,9 @@ NO_META_IGNORE_HOST_HEADERS= 1
|
|||||||
host-osreldate.h: # DO NOT ADD /usr/include/osreldate.h here
|
host-osreldate.h: # DO NOT ADD /usr/include/osreldate.h here
|
||||||
@cp -f /usr/include/osreldate.h ${.TARGET}
|
@cp -f /usr/include/osreldate.h ${.TARGET}
|
||||||
|
|
||||||
WMAKE= ${WMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 DESTDIR=${WORLDTMP}
|
WMAKE= ${WMAKEENV} ${MAKE} ${WORLD_FLAGS} -f Makefile.inc1 \
|
||||||
|
BWPHASE=${.TARGET:C,^_,,} \
|
||||||
|
DESTDIR=${WORLDTMP}
|
||||||
|
|
||||||
IMAKEENV= ${CROSSENV}
|
IMAKEENV= ${CROSSENV}
|
||||||
IMAKE= ${IMAKEENV} ${MAKE} -f Makefile.inc1 \
|
IMAKE= ${IMAKEENV} ${MAKE} -f Makefile.inc1 \
|
||||||
|
@ -35,6 +35,7 @@ OSRELDATE?= 0
|
|||||||
# need to keep this in sync with src/Makefile.inc1
|
# need to keep this in sync with src/Makefile.inc1
|
||||||
BSARGS= DESTDIR= \
|
BSARGS= DESTDIR= \
|
||||||
BOOTSTRAPPING=${OSRELDATE} \
|
BOOTSTRAPPING=${OSRELDATE} \
|
||||||
|
BWPHASE=${.TARGET} \
|
||||||
SSP_CFLAGS= \
|
SSP_CFLAGS= \
|
||||||
MK_HTML=no NO_LINT=yes MK_MAN=no \
|
MK_HTML=no NO_LINT=yes MK_MAN=no \
|
||||||
-DNO_PIC MK_PROFILE=no -DNO_SHARED \
|
-DNO_PIC MK_PROFILE=no -DNO_SHARED \
|
||||||
|
Loading…
Reference in New Issue
Block a user