From 865f77794b776a3e98d31696e3e9110aaf60a750 Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Tue, 24 Sep 2013 19:09:21 +0000 Subject: [PATCH] Don't parse NO_ROOT metadata for extra kernels if NO_ROOT isn't defined. Approved by: re (gjb) MFC after: 1 week --- Makefile.inc1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.inc1 b/Makefile.inc1 index 5b1d26eb3cdb..84208d9fb6cc 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1089,9 +1089,11 @@ distributekernel distributekernel.debug: KERNEL=${INSTKERNNAME}.${_kernel} \ DESTDIR=${INSTALL_DDIR}/kernel.${_kernel} \ ${.TARGET:S/distributekernel/install/} +.if defined(NO_ROOT) sed -e 's|^./kernel|.|' \ ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.premeta > \ ${DESTDIR}/${DISTDIR}/kernel.${_kernel}.meta +.endif .endfor packagekernel: