Permalink
Browse files

Add ability to specify custom kernel in release build

  • Loading branch information...
lattera committed May 11, 2012
1 parent 13fbec3 commit 167140c99cb4ea6763bee4c7bbaaebd7af68752f
Showing with 4 additions and 3 deletions.
  1. +4 −3 release/Makefile
View
@@ -33,6 +33,7 @@ TARGET_ARCH?= ${TARGET}
.endif
IMAKE= ${MAKE} TARGET_ARCH=${TARGET_ARCH} TARGET=${TARGET}
DISTDIR= dist
+KERNCONF?= GENERIC
.if !exists(${DOCDIR})
NODOC= true
@@ -77,7 +78,7 @@ base.txz:
kernel.txz:
mkdir -p ${DISTDIR}
- cd ${WORLDDIR} && ${IMAKE} distributekernel packagekernel DISTDIR=${.OBJDIR}/${DISTDIR}
+ cd ${WORLDDIR} && ${IMAKE} distributekernel packagekernel DISTDIR=${.OBJDIR}/${DISTDIR} KERNCONF=${KERNCONF}
mv ${DISTDIR}/kernel*.txz .
src.txz:
@@ -108,7 +109,7 @@ system: packagesystem
# Install system
mkdir -p release
cd ${WORLDDIR} && ${IMAKE} installkernel installworld distribution \
- DESTDIR=${.OBJDIR}/release WITHOUT_RESCUE=1 WITHOUT_KERNEL_SYMBOLS=1
+ DESTDIR=${.OBJDIR}/release WITHOUT_RESCUE=1 WITHOUT_KERNEL_SYMBOLS=1 KERNCONF=${KERNCONF}
# Copy distfiles
mkdir -p release/usr/freebsd-dist
cp *.txz MANIFEST release/usr/freebsd-dist
@@ -133,7 +134,7 @@ bootonly: packagesystem
WITHOUT_INSTALLLIB=1 WITHOUT_LIB32=1 WITHOUT_MAIL=1 \
WITHOUT_NCP=1 WITHOUT_TOOLCHAIN=1 WITHOUT_PROFILE=1 \
WITHOUT_INSTALLIB=1 WITHOUT_RESCUE=1 WITHOUT_DICT=1 \
- WITHOUT_KERNEL_SYMBOLS=1
+ WITHOUT_KERNEL_SYMBOLS=1 KERNCONF=${KERNCONF}
# Copy manifest only (no distfiles) to get checksums
mkdir -p bootonly/usr/freebsd-dist
cp MANIFEST bootonly/usr/freebsd-dist

0 comments on commit 167140c

Please sign in to comment.