Skip to contentSkip to conversation

Only build modpost when modules enabled

PATCH In review Brian Gerst 2 participants 2 messages Jul 28, 2004 – Aug 8, 2004 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Only build modpost when modules enabled

Only build modpost when CONFIG_MODULES=y.

--
Brian Gerst

scripts/Makefile +1 -1
diff -urN linux-2.6.8-rc2-mm1/scripts/Makefile linux/scripts/Makefile
@@ -9,7 +9,7 @@
 always		:= $(host-progs)
 
 subdir-$(CONFIG_MODVERSIONS)	+= genksyms
-subdir-y	+= mod
+subdir-$(CONFIG_MODULES)	+= mod
 
 # Let clean descend into subdirs
 subdir-	+= basic lxdialog kconfig package
#1 lore raw
Quoted 1 line · Brian Gerst

Only build modpost when CONFIG_MODULES=y.

Added but made all targets in scripts/Makefile depend on actual configuration. Thanks for input.

Sam