diff options
author | glebius <glebius@FreeBSD.org> | 2012-01-15 08:36:25 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2012-01-15 08:36:25 +0000 |
commit | ef1ae8b2fb6b681ea7b72158a4ddccc045c32b14 (patch) | |
tree | 2eef14ba856d809fb19281f66569036d2c0b8a30 /Makefile.inc1 | |
parent | e07bec5a9c09cadd3c6ef93b38eb4aeefdb7a649 (diff) | |
download | FreeBSD-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.inc1 | 13 |
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 |