summaryrefslogtreecommitdiffstats
path: root/Makefile.inc1
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2004-03-13 15:46:34 +0000
committerru <ru@FreeBSD.org>2004-03-13 15:46:34 +0000
commit94744a8a7d7173f15f69a8b240af991f357b1daf (patch)
tree8826367f39f8c549d73d7aec6f556199e42ec89d /Makefile.inc1
parentd4f628402f68f464794e5ef08d1ebe3ac8d09079 (diff)
downloadFreeBSD-src-94744a8a7d7173f15f69a8b240af991f357b1daf.zip
FreeBSD-src-94744a8a7d7173f15f69a8b240af991f357b1daf.tar.gz
Create hierarchy before installing a new kernel. This is needed
because we require that a new kernel be installed prior to a new world, and we may need some new directories to succeed. Once MFCed, this will also help those poor souls who redundantly ``mv /modules /modules.old'' in RELENG_4 before an installkernel. Requested by: many MFC after: 3 days
Diffstat (limited to 'Makefile.inc1')
-rw-r--r--Makefile.inc19
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 6b4eaec..f6664ca 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -581,6 +581,15 @@ reinstallkernel reinstallkernel.debug: ${SPECIAL_INSTALLCHECKS}
@echo "ERROR: No kernel \"${KERNCONF}\" to install."
false
.endif
+ @echo "--------------------------------------------------------------"
+ @echo ">>> Making hierarchy"
+ @echo "--------------------------------------------------------------"
+ cd ${.CURDIR}; \
+ ${CROSSENV} PATH=${TMPPATH} ${MAKE} -f Makefile.inc1 hierarchy
+ @echo
+ @echo "--------------------------------------------------------------"
+ @echo ">>> Installing kernel"
+ @echo "--------------------------------------------------------------"
cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
${CROSSENV} PATH=${TMPPATH} \
${MAKE} KERNEL=${INSTKERNNAME} ${.TARGET:S/kernel//}
OpenPOWER on IntegriCloud