Commit fd279197 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds

[PATCH] build kernel/intermodule.c only when required

Build kernel/intermodule.c only when required.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: David Woodhouse <dwmw2@infradead.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 3001aa82
...@@ -31,6 +31,7 @@ config MTD_JEDECPROBE ...@@ -31,6 +31,7 @@ config MTD_JEDECPROBE
config MTD_GEN_PROBE config MTD_GEN_PROBE
tristate tristate
select OBSOLETE_INTERMODULE
config MTD_CFI_ADV_OPTIONS config MTD_CFI_ADV_OPTIONS
bool "Flash chip driver advanced configuration options" bool "Flash chip driver advanced configuration options"
......
...@@ -218,6 +218,7 @@ config MTD_DOC2001PLUS ...@@ -218,6 +218,7 @@ config MTD_DOC2001PLUS
config MTD_DOCPROBE config MTD_DOCPROBE
tristate tristate
select MTD_DOCECC select MTD_DOCECC
select OBSOLETE_INTERMODULE
config MTD_DOCECC config MTD_DOCECC
tristate tristate
......
...@@ -427,6 +427,9 @@ config SLOB ...@@ -427,6 +427,9 @@ config SLOB
default !SLAB default !SLAB
bool bool
config OBSOLETE_INTERMODULE
tristate
menu "Loadable module support" menu "Loadable module support"
config MODULES config MODULES
......
...@@ -6,7 +6,7 @@ obj-y = sched.o fork.o exec_domain.o panic.o printk.o profile.o \ ...@@ -6,7 +6,7 @@ obj-y = sched.o fork.o exec_domain.o panic.o printk.o profile.o \
exit.o itimer.o time.o softirq.o resource.o \ exit.o itimer.o time.o softirq.o resource.o \
sysctl.o capability.o ptrace.o timer.o user.o \ sysctl.o capability.o ptrace.o timer.o user.o \
signal.o sys.o kmod.o workqueue.o pid.o \ signal.o sys.o kmod.o workqueue.o pid.o \
rcupdate.o intermodule.o extable.o params.o posix-timers.o \ rcupdate.o extable.o params.o posix-timers.o \
kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o mutex.o \ kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o mutex.o \
hrtimer.o hrtimer.o
...@@ -17,6 +17,7 @@ obj-$(CONFIG_SMP) += cpu.o spinlock.o ...@@ -17,6 +17,7 @@ obj-$(CONFIG_SMP) += cpu.o spinlock.o
obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o obj-$(CONFIG_DEBUG_SPINLOCK) += spinlock.o
obj-$(CONFIG_UID16) += uid16.o obj-$(CONFIG_UID16) += uid16.o
obj-$(CONFIG_MODULES) += module.o obj-$(CONFIG_MODULES) += module.o
obj-$(CONFIG_OBSOLETE_INTERMODULE) += intermodule.o
obj-$(CONFIG_KALLSYMS) += kallsyms.o obj-$(CONFIG_KALLSYMS) += kallsyms.o
obj-$(CONFIG_PM) += power/ obj-$(CONFIG_PM) += power/
obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment