[PATCH] Only build modpost when modules enabled

From: Brian Gerst
Date: Wed Jul 28 2004 - 07:48:17 EST


Only build modpost when CONFIG_MODULES=y.

--
Brian Gerst
diff -urN linux-2.6.8-rc2-mm1/scripts/Makefile linux/scripts/Makefile
--- linux-2.6.8-rc2-mm1/scripts/Makefile 2004-07-28 08:33:03.884445247 -0400
+++ linux/scripts/Makefile 2004-07-28 08:33:41.408269137 -0400
@@ -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