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:
parent
1ddb0ab555
commit
f94a3783cf
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user