If "MODULES_WITH_WORLD" is defined, sys/modules will be built with the

world as was our old way, rather than when building a kernel.

Some people do not like the new way, and the release building still assumes
modules are built with the world.
This commit is contained in:
David E. O'Brien 2000-06-17 10:51:56 +00:00
parent 1ddb0ab555
commit f94a3783cf
7 changed files with 15 additions and 4 deletions

View File

@ -64,6 +64,9 @@
#NOSHARE= true # do not go into the share subdir
#NOUUCP= true # do not build uucp related programs
#
# To build sys/modules when building the world (our old way of doing things)
#MODULES_WITH_WORLD=true # do not build modules when building kernel
#
# To tell the base system that you are using RSAREF (from ports).
# (This needs revisiting) - it is very likely that this is too
# heavily tied to USA_RESIDENT==YES.

View File

@ -64,6 +64,9 @@
#NOSHARE= true # do not go into the share subdir
#NOUUCP= true # do not build uucp related programs
#
# To build sys/modules when building the world (our old way of doing things)
#MODULES_WITH_WORLD=true # do not build modules when building kernel
#
# To tell the base system that you are using RSAREF (from ports).
# (This needs revisiting) - it is very likely that this is too
# heavily tied to USA_RESIDENT==YES.

View File

@ -3,6 +3,11 @@
# The boot loader
SUBDIR= boot
# KLD modules build for both a.out and ELF
.if defined(MODULES_WITH_WORLD)
SUBDIR+=modules
.endif
HTAGSFLAGS+= -at `awk -F= '/^RELEASE *=/{release=$2}; END {print "FreeBSD", release, "kernel"}' < conf/newvers.sh`
.include <bsd.subdir.mk>

View File

@ -274,7 +274,7 @@ kernel-reinstall kernel-reinstall.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/kernel-reinstall//} ${DESTDIR}/${KERNEL}
.if !defined(NO_MODULES) && exists($S/modules)
.if !defined(MODULES_WITH_WORLD) && exists($S/modules)
all: modules
depend: modules-depend
clean: modules-clean

View File

@ -229,7 +229,7 @@ kernel-reinstall kernel-reinstall.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/kernel-reinstall//} ${DESTDIR}/${KERNEL}
.if !defined(NO_MODULES) && exists($S/modules)
.if !defined(MODULES_WITH_WORLD) && exists($S/modules)
all: modules
depend: modules-depend
clean: modules-clean

View File

@ -232,7 +232,7 @@ kernel-reinstall kernel-reinstall.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/kernel-reinstall//} ${DESTDIR}/${KERNEL}
.if !defined(NO_MODULES) && exists($S/modules)
.if !defined(MODULES_WITH_WORLD) && exists($S/modules)
all: modules
depend: modules-depend
clean: modules-clean

View File

@ -229,7 +229,7 @@ kernel-reinstall kernel-reinstall.debug:
install -c -m 555 -o root -g wheel -fschg \
${KERNEL}${.TARGET:S/kernel-reinstall//} ${DESTDIR}/${KERNEL}
.if !defined(NO_MODULES) && exists($S/modules)
.if !defined(MODULES_WITH_WORLD) && exists($S/modules)
all: modules
depend: modules-depend
clean: modules-clean