summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/ppc/Makefile2
-rw-r--r--common/Makefile1
-rw-r--r--include/module.h2
3 files changed, 2 insertions, 3 deletions
diff --git a/arch/ppc/Makefile b/arch/ppc/Makefile
index 2c9c5359f0..c24d3c3685 100644
--- a/arch/ppc/Makefile
+++ b/arch/ppc/Makefile
@@ -17,7 +17,7 @@ TEXT_BASE = $(CONFIG_TEXT_BASE)
CPPFLAGS += -DTEXT_BASE=$(TEXT_BASE) -P
# Add cleanup flags
-ifndef CONFIG_MODULE
+ifndef CONFIG_MODULES
CPPFLAGS += -fdata-sections -ffunction-sections
endif
diff --git a/common/Makefile b/common/Makefile
index d7a024bf86..0c075a960f 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -2,7 +2,6 @@ obj-$(CONFIG_SHELL_HUSH) += hush.o
obj-$(CONFIG_SHELL_SIMPLE) += parser.o
obj-$(CONFIG_GREGORIAN_CALENDER) += date.o
obj-$(CONFIG_OF_FLAT_TREE) += ft_build.o
-obj-$(CONFIG_MODULE) += module.o
obj-$(CONFIG_KALLSYMS) += kallsyms.o
obj-$(CONFIG_ENV_HANDLING) += environment.o
obj-$(CONFIG_AUTO_COMPLETE) += complete.o
diff --git a/include/module.h b/include/module.h
index 03b226abce..9d0e803344 100644
--- a/include/module.h
+++ b/include/module.h
@@ -71,7 +71,7 @@ int apply_relocate_add(Elf_Shdr *sechdrs,
struct module *mod);
#else
#define EXPORT_SYMBOL(sym)
-#endif /* CONFIG_MODULE */
+#endif /* CONFIG_MODULES */
extern struct list_head module_list;