summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2013-05-28 09:52:28 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2013-05-28 09:52:28 +0000
commit13b85cea6054beb70c61f2c0d4ed43bf5cafc12e (patch)
tree833dfd7484fdd8fd7d4f7266d8f17bd6233a3f49
parent1d1f5c6b8e0e1f64f974373b08a11266f320cf51 (diff)
downloadsrc-test2-13b85cea6054beb70c61f2c0d4ed43bf5cafc12e.tar.gz
src-test2-13b85cea6054beb70c61f2c0d4ed43bf5cafc12e.zip
Notes
-rw-r--r--Makefile.inc111
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1
index 99e6ed2560c9..75cede05ef23 100644
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -983,9 +983,16 @@ buildkernel:
.endif
@echo
@echo "--------------------------------------------------------------"
- @echo ">>> stage 3.2: building everything"
+ @echo ">>> stage 3.2: building the kernel"
@echo "--------------------------------------------------------------"
- cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} all -DNO_MODULES_OBJ
+ cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} kernel-all -DNO_MODULES_OBJ
+ @echo
+.if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && exists(${KERNSRCDIR}/modules)
+ @echo "--------------------------------------------------------------"
+ @echo ">>> stage 3.3: building the modules"
+ @echo "--------------------------------------------------------------"
+ cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} modules-all -DNO_MODULES_OBJ
+.endif
@echo "--------------------------------------------------------------"
@echo ">>> Kernel build for ${_kernel} completed on `LC_ALL=C date`"
@echo "--------------------------------------------------------------"