Don't parse NO_ROOT metadata for extra kernels if NO_ROOT isn't defined.

Approved by:	re (gjb)
MFC after:	1 week
This commit is contained in:
John Baldwin 2013-09-24 19:09:21 +00:00
parent a667cf73d9
commit 865f77794b

View File

@ -1089,9 +1089,11 @@ distributekernel distributekernel.debug:
KERNEL=${INSTKERNNAME}.${_kernel} \ KERNEL=${INSTKERNNAME}.${_kernel} \
DESTDIR=${INSTALL_DDIR}/kernel.${_kernel} \ DESTDIR=${INSTALL_DDIR}/kernel.${_kernel} \
${.TARGET:S/distributekernel/install/} ${.TARGET:S/distributekernel/install/}
.if defined(NO_ROOT)
sed -e 's|^./kernel|.|' \ sed -e 's|^./kernel|.|' \
${DESTDIR}/${DISTDIR}/kernel.${_kernel}.premeta > \ ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.premeta > \
${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta
.endif
.endfor .endfor
packagekernel: packagekernel: