When building multiple kernels use [2..-1] to extract !INSTALLKERNEL
from BUILDKERNELS list. This is more strict, since INSTALLKERNEL by definition is the first word of BUILDKERNELS list. The previous code failed if INSTALLKERNEL is a substring of additional kernel name. Reviewed by: gjb Sponsored by: Netflix Sponsored by: Nginx, Inc.
This commit is contained in:
parent
0e308268b0
commit
6d04a5ad40
@ -1146,7 +1146,7 @@ distributekernel distributekernel.debug:
|
|||||||
sed -e 's|^./kernel|.|' ${DESTDIR}/${DISTDIR}/kernel.premeta > \
|
sed -e 's|^./kernel|.|' ${DESTDIR}/${DISTDIR}/kernel.premeta > \
|
||||||
${DESTDIR}/${DISTDIR}/kernel.meta
|
${DESTDIR}/${DISTDIR}/kernel.meta
|
||||||
.endif
|
.endif
|
||||||
.for _kernel in ${BUILDKERNELS:S/${INSTALLKERNEL}//}
|
.for _kernel in ${BUILDKERNELS:[2..-1]}
|
||||||
.if defined(NO_ROOT)
|
.if defined(NO_ROOT)
|
||||||
echo "#${MTREE_MAGIC}" > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.premeta
|
echo "#${MTREE_MAGIC}" > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.premeta
|
||||||
.endif
|
.endif
|
||||||
@ -1168,7 +1168,7 @@ packagekernel:
|
|||||||
cd ${DESTDIR}/${DISTDIR}/kernel; \
|
cd ${DESTDIR}/${DISTDIR}/kernel; \
|
||||||
tar cvf - @${DESTDIR}/${DISTDIR}/kernel.meta | \
|
tar cvf - @${DESTDIR}/${DISTDIR}/kernel.meta | \
|
||||||
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel.txz
|
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel.txz
|
||||||
.for _kernel in ${BUILDKERNELS:S/${INSTALLKERNEL}//}
|
.for _kernel in ${BUILDKERNELS:[2..-1]}
|
||||||
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
||||||
tar cvf - @${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta | \
|
tar cvf - @${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta | \
|
||||||
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.txz
|
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.txz
|
||||||
@ -1177,7 +1177,7 @@ packagekernel:
|
|||||||
cd ${DESTDIR}/${DISTDIR}/kernel; \
|
cd ${DESTDIR}/${DISTDIR}/kernel; \
|
||||||
tar cvf - . | \
|
tar cvf - . | \
|
||||||
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel.txz
|
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel.txz
|
||||||
.for _kernel in ${BUILDKERNELS:S/${INSTALLKERNEL}//}
|
.for _kernel in ${BUILDKERNELS:[2..-1]}
|
||||||
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
cd ${DESTDIR}/${DISTDIR}/kernel.${_kernel}; \
|
||||||
tar cvf - . | \
|
tar cvf - . | \
|
||||||
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.txz
|
${XZ_CMD} > ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.txz
|
||||||
|
Loading…
Reference in New Issue
Block a user