mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
pkgbase: set a default set of kernel for when PACKAGE_BUILDING=1
PACKAGE_BUILDING is already known in the ports tree as a variable use to defined when the packages is being actually built in an automation process, reuse that variable to define the default set of kernel we plan to build for the default pkgbase. Reviewed by: manu, jrtc27 Accepted by: manu MFC After: 1 week Differential Revision: https://reviews.freebsd.org/D42444
This commit is contained in:
parent
5c783a0b28
commit
df6e7e11c5
|
@ -1677,15 +1677,10 @@ NO_KERNELOBJ= t
|
||||||
KERNCONF=${KERNFAST}
|
KERNCONF=${KERNFAST}
|
||||||
.endif
|
.endif
|
||||||
.endif
|
.endif
|
||||||
.if ${TARGET_ARCH} == "powerpc64"
|
GENERIC_KERNCONF_SUFX_powerpc64= 64
|
||||||
KERNCONF?= GENERIC64
|
GENERIC_KERNCONF_SUFX_powerpc64le= 64LE
|
||||||
.elif ${TARGET_ARCH} == "powerpc64le"
|
GENERIC_KERNCONF_powerpcspe= MPC85XXSPE
|
||||||
KERNCONF?= GENERIC64LE
|
GENERIC_KERNCONF?= ${GENERIC_KERNCONF_${TARGET_ARCH}:UGENERIC${GENERIC_KERNCONF_SUFX_${TARGET_ARCH}}}
|
||||||
.elif ${TARGET_ARCH} == "powerpcspe"
|
|
||||||
KERNCONF?= MPC85XXSPE
|
|
||||||
.else
|
|
||||||
KERNCONF?= GENERIC
|
|
||||||
.endif
|
|
||||||
INSTKERNNAME?= kernel
|
INSTKERNNAME?= kernel
|
||||||
|
|
||||||
KERNSRCDIR?= ${.CURDIR}/sys
|
KERNSRCDIR?= ${.CURDIR}/sys
|
||||||
|
@ -1693,6 +1688,23 @@ KRNLCONFDIR= ${KERNSRCDIR}/${TARGET}/conf
|
||||||
KRNLOBJDIR= ${OBJTOP}${KERNSRCDIR:C,^${.CURDIR},,}
|
KRNLOBJDIR= ${OBJTOP}${KERNSRCDIR:C,^${.CURDIR},,}
|
||||||
KERNCONFDIR?= ${KRNLCONFDIR}
|
KERNCONFDIR?= ${KRNLCONFDIR}
|
||||||
|
|
||||||
|
.for _k in ${GENERIC_KERNCONF} MINIMAL${GENERIC_KERNCONF_SUFX_${TARGET_ARCH}} ${GENERIC_KERNCONF}-MMCCAM
|
||||||
|
.if exists(${KERNCONFDIR}/${_k})
|
||||||
|
PKG_KERNCONF+= ${_k}
|
||||||
|
.for _dbg in NODEBUG DEBUG
|
||||||
|
.if exists(${KERNCONFDIR}/${_k}-${_dbg})
|
||||||
|
PKG_KERNCONF+= ${_k}-${_dbg}
|
||||||
|
.endif
|
||||||
|
.endfor
|
||||||
|
.endif
|
||||||
|
.endfor
|
||||||
|
|
||||||
|
.if defined(PACKAGE_BUILDING)
|
||||||
|
KERNCONF?= ${PKG_KERNCONF}
|
||||||
|
.else
|
||||||
|
KERNCONF?= ${GENERIC_KERNCONF}
|
||||||
|
.endif
|
||||||
|
|
||||||
BUILDKERNELS=
|
BUILDKERNELS=
|
||||||
INSTALLKERNEL=
|
INSTALLKERNEL=
|
||||||
.if defined(NO_INSTALLKERNEL)
|
.if defined(NO_INSTALLKERNEL)
|
||||||
|
|
Loading…
Reference in a new issue