View | Details | Raw Unified | Return to bug 237290 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/src/sys/conf/kern.post.mk (-4 / +29 lines)
Lines 73-80 Link Here
73
OSRELDATE!=	awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $$3 }' \
73
OSRELDATE!=	awk '/^\#define[[:space:]]*__FreeBSD_version/ { print $$3 }' \
74
		    ${MAKEOBJDIRPREFIX}${SRC_BASE}/include/osreldate.h
74
		    ${MAKEOBJDIRPREFIX}${SRC_BASE}/include/osreldate.h
75
.endif
75
.endif
76
77
# Read ports defaults.
78
PORTSDIR?=	$(${MAKE} -V PORTSDIR)
79
DISTDIR?=	$(${MAKE} -V DISTDIR)
80
PORT_DBDIR?=	$(${MAKE} -V PORT_DBDIR)
81
OPTIONS_SET?=	$(${MAKE} -V OPTIONS_SET)
82
OPTIONS_UNSET?=	$(${MAKE} -V OPTIONS_UNSET)
83
NO_CCACHE?=	$(${MAKE} -V NO_CCACHE)
84
CCACHE_DIR?=	$(${MAKE} -V CCACHE_DIR)
85
WITH_CCACHE_BUILD?=	$(${MAKE} -V WITH_CCACHE_BUILD)
86
DEFAULT_VERSIONS?=	$(${MAKE} -V DEFAULT_VERSIONS)
87
WITH_DEBUG_PORTS?=	$(${MAKE} -V WITH_DEBUG_PORTS)
76
# Keep the related ports builds in the obj directory so that they are only rebuilt once per kernel build
88
# Keep the related ports builds in the obj directory so that they are only rebuilt once per kernel build
77
WRKDIRPREFIX?=	${.OBJDIR}
89
WRKDIRPREFIX=	${.OBJDIR}
90
MAKEFLAGS_PORTS=${MAKEFLAGS:M*:tW:S/^-m /-m_/g:S/ -m / -m_/g:S/^-j /-m_/g:S/ -j / -m_/g:S/^-J /-m_/g:S/ -J / -m_/g:tw:N-m_*:NMK_AUTO_OBJ=*}
78
PORTSMODULESENV=\
91
PORTSMODULESENV=\
79
	env \
92
	env \
80
	-u CC \
93
	-u CC \
Lines 83-89 Link Here
83
	-u MAKESYSPATH \
96
	-u MAKESYSPATH \
84
	-u MK_AUTO_OBJ \
97
	-u MK_AUTO_OBJ \
85
	-u MAKEOBJDIR \
98
	-u MAKEOBJDIR \
86
	MAKEFLAGS="${MAKEFLAGS:M*:tW:S/^-m /-m_/g:S/ -m / -m_/g:tw:N-m_*:NMK_AUTO_OBJ=*}" \
99
	PORTSDIR="${PORTSDIR}" \
100
	DISTDIR="${DISTDIR}" \
101
	PORT_DBDIR="${PORT_DBDIR}" \
102
	OPTIONS_SET="${OPTIONS_SET}" \
103
	OPTIONS_UNSET="${OPTIONS_UNSET}" \
104
	NO_CCACHE="${NO_CCACHE}" \
105
	CCACHE_DIR="${CCACHE_DIR}" \
106
	WITH_CCACHE_BUILD="${WITH_CCACHE_BUILD}" \
107
	DEFAULT_VERSIONS="${DEFAULT_VERSIONS}" \
108
	WITH_DEBUG_PORTS="${WITH_DEBUG_PORTS}" \
109
	MAKEFLAGS="${MAKEFLAGS_PORTS}" \
110
	MAKE_JOBS_NUMBER=${.MAKE.JOBS} \
87
	SYSDIR=${SYSDIR} \
111
	SYSDIR=${SYSDIR} \
88
	PATH=${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin \
112
	PATH=${PATH}:${LOCALBASE}/bin:${LOCALBASE}/sbin \
89
	SRC_BASE=${SRC_BASE} \
113
	SRC_BASE=${SRC_BASE} \
Lines 95-101 Link Here
95
all:
119
all:
96
.for __i in ${PORTS_MODULES}
120
.for __i in ${PORTS_MODULES}
97
	@${ECHO} "===> Ports module ${__i} (all)"
121
	@${ECHO} "===> Ports module ${__i} (all)"
98
	cd $${PORTSDIR:-/usr/ports}/${__i}; ${PORTSMODULESENV} ${MAKE} -B clean build
122
	${PORTSMODULESENV} ${MAKE} -C "${PORTSDIR}/${__i}" clean build
99
.endfor
123
.endfor
100
124
101
.for __target in install reinstall clean
125
.for __target in install reinstall clean
Lines 103-109 Link Here
103
ports-${__target}:
127
ports-${__target}:
104
.for __i in ${PORTS_MODULES}
128
.for __i in ${PORTS_MODULES}
105
	@${ECHO} "===> Ports module ${__i} (${__target})"
129
	@${ECHO} "===> Ports module ${__i} (${__target})"
106
	cd $${PORTSDIR:-/usr/ports}/${__i}; ${PORTSMODULESENV} ${MAKE} -B ${__target:C/(re)?install/deinstall reinstall/}
130
	${PORTSMODULESENV} ${MAKE} -C "${PORTSDIR}/${__i}" \
131
	    ${__target:C/(re)?install/deinstall reinstall/}
107
.endfor
132
.endfor
108
.endfor
133
.endfor
109
.endif
134
.endif

Return to bug 237290