summaryrefslogtreecommitdiff
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2012-01-15 08:36:25 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2012-01-15 08:36:25 +0000
commitd6ba7d93ba803c6604da727a5ceede258bf398c8 (patch)
tree2eef14ba856d809fb19281f66569036d2c0b8a30 /Makefile.inc1
parent886e862866b06655bd2b89c64eca8eb465bb44a7 (diff)
downloadsrc-test-d6ba7d93ba803c6604da727a5ceede258bf398c8.tar.gz
src-test-d6ba7d93ba803c6604da727a5ceede258bf398c8.zip
Restore functionality to pack several kernels into release. All
kernels specified by KERNCONF are built and packed into release. The first one is packed into kernel.txz, all others to kernel.CONFIG.txz. The first one is installed on bootables in /boot.
Notes
Notes: svn path=/head/; revision=230127
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc113
1 files changed, 12 insertions, 1 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index bc5de3dc31f6a..8dc459479d6c0 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -887,10 +887,21 @@ distributekernel distributekernel.debug:
${CROSSENV} PATH=${TMPPATH} ${MAKE} KERNEL=${INSTKERNNAME} \
DESTDIR=${DESTDIR}/${DISTDIR}/kernel \
${.TARGET:S/distributekernel/install/}
+.for _kernel in ${BUILDKERNELS:S/${INSTALLKERNEL}//}
+ cd ${KRNLOBJDIR}/${_kernel}; \
+ ${CROSSENV} PATH=${TMPPATH} ${MAKE} \
+ KERNEL=${INSTKERNNAME}.${_kernel} \
+ DESTDIR=${DESTDIR}/${DISTDIR}/kernel.${_kernel} \
+ ${.TARGET:S/distributekernel/install/}
+.endfor
packagekernel:
- ${_+_}cd ${DESTDIR}/${DISTDIR}/kernel; \
+ cd ${DESTDIR}/${DISTDIR}/kernel; \
tar cvJf ${DESTDIR}/${DISTDIR}/kernel.txz .
+.for _kernel in ${BUILDKERNELS:S/${INSTALLKERNEL}//}
+ cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
+ tar cvJf ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.txz .
+.endfor
#
# doxygen