summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2012-01-15 08:36:25 +0000
committerglebius <glebius@FreeBSD.org>2012-01-15 08:36:25 +0000
commitef1ae8b2fb6b681ea7b72158a4ddccc045c32b14 (patch)
tree2eef14ba856d809fb19281f66569036d2c0b8a30 /Makefile.inc1
parente07bec5a9c09cadd3c6ef93b38eb4aeefdb7a649 (diff)
downloadFreeBSD-src-ef1ae8b2fb6b681ea7b72158a4ddccc045c32b14.zip
FreeBSD-src-ef1ae8b2fb6b681ea7b72158a4ddccc045c32b14.tar.gz
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.
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 bc5de3d..8dc4594 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
OpenPOWER on IntegriCloud