Changeset View
Changeset View
Standalone View
Standalone View
share/mk/local.meta.sys.mk
Show First 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | |||||
# not what we want | # not what we want | ||||
TARGET_MACHINE= host | TARGET_MACHINE= host | ||||
.endif | .endif | ||||
.endif | .endif | ||||
.if ${MACHINE} == "host" | .if ${MACHINE} == "host" | ||||
OBJTOP := ${HOST_OBJTOP} | OBJTOP := ${HOST_OBJTOP} | ||||
.endif | .endif | ||||
.if ${.MAKE.LEVEL} == 0 | .if ${.MAKE.LEVEL} == 0 || empty(PYTHON) | ||||
bdrewery: Does `PYTHON` not being set warrant all of this logic? Is there a risk it won't be set in… | |||||
PYTHON ?= /usr/local/bin/python | PYTHON ?= /usr/local/bin/python | ||||
.export PYTHON | .export PYTHON | ||||
# this works best if share/mk is ready for it. | # this works best if share/mk is ready for it. | ||||
BUILD_AT_LEVEL0= no | BUILD_AT_LEVEL0= no | ||||
# _SKIP_BUILD is not 100% as it requires wrapping all 'all:' targets to avoid | # _SKIP_BUILD is not 100% as it requires wrapping all 'all:' targets to avoid | ||||
# building in MAKELEVEL0. Just prohibit 'all' entirely in this case to avoid | # building in MAKELEVEL0. Just prohibit 'all' entirely in this case to avoid | ||||
# problems. | # problems. | ||||
.if ${MK_DIRDEPS_BUILD} == "yes" && \ | .if ${MK_DIRDEPS_BUILD} == "yes" && \ | ||||
Show All 20 Lines | |||||
STAGE_MACHINE:= ${TARGET_OBJ_SPEC} | STAGE_MACHINE:= ${TARGET_OBJ_SPEC} | ||||
.endif | .endif | ||||
STAGE_OBJTOP:= ${STAGE_ROOT}/${STAGE_MACHINE} | STAGE_OBJTOP:= ${STAGE_ROOT}/${STAGE_MACHINE} | ||||
STAGE_COMMON_OBJTOP:= ${STAGE_ROOT}/common | STAGE_COMMON_OBJTOP:= ${STAGE_ROOT}/common | ||||
STAGE_TARGET_OBJTOP:= ${STAGE_ROOT}/${TARGET_OBJ_SPEC} | STAGE_TARGET_OBJTOP:= ${STAGE_ROOT}/${TARGET_OBJ_SPEC} | ||||
STAGE_HOST_OBJTOP:= ${STAGE_ROOT}/${HOST_TARGET} | STAGE_HOST_OBJTOP:= ${STAGE_ROOT}/${HOST_TARGET} | ||||
# These are exported for hooking in out-of-tree builds. They will always | # These are exported for hooking in out-of-tree builds. They will always | ||||
# be overridden in sub-makes above when building in-tree. | # be overridden in sub-makes above when building in-tree. | ||||
.if ${.MAKE.LEVEL} > 0 | |||||
.export STAGE_OBJTOP STAGE_TARGET_OBJTOP STAGE_HOST_OBJTOP | .export STAGE_OBJTOP STAGE_TARGET_OBJTOP STAGE_HOST_OBJTOP | ||||
.endif | |||||
# Use tools/install.sh which can avoid the need for xinstall for simple cases. | # Use tools/install.sh which can avoid the need for xinstall for simple cases. | ||||
INSTALL?= sh ${SRCTOP}/tools/install.sh | INSTALL?= sh ${SRCTOP}/tools/install.sh | ||||
# This is for stage-install to pickup from the environment. | # This is for stage-install to pickup from the environment. | ||||
REAL_INSTALL:= ${INSTALL} | REAL_INSTALL:= ${INSTALL} | ||||
.export REAL_INSTALL | .export REAL_INSTALL | ||||
STAGE_INSTALL= sh ${.PARSEDIR:tA}/stage-install.sh OBJDIR=${.OBJDIR:tA} | STAGE_INSTALL= sh ${.PARSEDIR:tA}/stage-install.sh OBJDIR=${.OBJDIR:tA} | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |
Does PYTHON not being set warrant all of this logic? Is there a risk it won't be set in MAKELEVEL > 0?