Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145215757
D42444.id129652.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D42444.id129652.diff
View Options
diff --git a/Makefile.inc1 b/Makefile.inc1
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1677,14 +1677,13 @@
KERNCONF=${KERNFAST}
.endif
.endif
-.if ${TARGET_ARCH} == "powerpc64"
-KERNCONF?= GENERIC64
-.elif ${TARGET_ARCH} == "powerpc64le"
-KERNCONF?= GENERIC64LE
-.elif ${TARGET_ARCH} == "powerpcspe"
-KERNCONF?= MPC85XXSPE
+KERNCONF_powerpc64= GENERIC64
+KERNCONF_powerpc64le= GENERIC64LE
+KERNCONF_powerpcspe= MPC85XXSPE
+.if defined(KERNCONF_${TARGET_ARCH})
+DEF_KERNCONF?= ${KERNCONF_${TARGET_ARCH}}
.else
-KERNCONF?= GENERIC
+DEF_KERNCONF?= GENERIC
.endif
INSTKERNNAME?= kernel
@@ -1693,6 +1692,24 @@
KRNLOBJDIR= ${OBJTOP}${KERNSRCDIR:C,^${.CURDIR},,}
KERNCONFDIR?= ${KRNLCONFDIR}
+.for _k in ${DEF_KERNCONF} MINIMAL GENERIC-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?= ${DEF_KERNCONF}
+.endif
+.info ${KERNCONF}
+
BUILDKERNELS=
INSTALLKERNEL=
.if defined(NO_INSTALLKERNEL)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 18, 5:02 AM (16 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28837813
Default Alt Text
D42444.id129652.diff (1 KB)
Attached To
Mode
D42444: pkgbase: set a default set of kernel for when PACKAGE_BUILDING=1
Attached
Detach File
Event Timeline
Log In to Comment