summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.inc113
-rw-r--r--release/Makefile2
2 files changed, 13 insertions, 2 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index bc5de3dc31f6..8dc459479d6c 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
diff --git a/release/Makefile b/release/Makefile
index 19987cf76404..964676bb2eb7 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -75,7 +75,7 @@ base.txz:
kernel.txz:
-mkdir ${DISTDIR}
cd ${WORLDDIR} && ${IMAKE} distributekernel packagekernel DISTDIR=${DISTDIR}
- mv ${DISTDIR}/kernel.txz ${.OBJDIR}
+ mv ${DISTDIR}/kernel*.txz ${.OBJDIR}
src.txz:
-mkdir -p ${DISTDIR}/usr