summaryrefslogtreecommitdiff
path: root/kernel/Makefile
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2003-07-31 05:20:42 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-07-31 05:20:42 -0700
commite78eae3da1ad426c3ec8859fd07afd419925aa19 (patch)
treefec4a41abb081635a08e46c5496483c129ab396c /kernel/Makefile
parent60850601cc977ee15ec46064ebf17e0b0eb5276f (diff)
[PATCH] ikconfig
(Randy Dunlap) Build the kernel config data into the kernel - either unloaded or accessible via /proc
Diffstat (limited to 'kernel/Makefile')
-rw-r--r--kernel/Makefile10
1 files changed, 10 insertions, 0 deletions
diff --git a/kernel/Makefile b/kernel/Makefile
index 1e652214037c..d5c2684a6c76 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -19,6 +19,10 @@ obj-$(CONFIG_CPU_FREQ) += cpufreq.o
obj-$(CONFIG_BSD_PROCESS_ACCT) += acct.o
obj-$(CONFIG_SOFTWARE_SUSPEND) += suspend.o
obj-$(CONFIG_COMPAT) += compat.o
+obj-$(CONFIG_IKCONFIG) += configs.o
+
+# files to be removed upon make clean
+clean-files := ikconfig.h
ifneq ($(CONFIG_IA64),y)
# According to Alan Modra <alan@linuxcare.com.au>, the -fno-omit-frame-pointer is
@@ -28,3 +32,9 @@ ifneq ($(CONFIG_IA64),y)
# to get a correct value for the wait-channel (WCHAN in ps). --davidm
CFLAGS_sched.o := $(PROFILING) -fno-omit-frame-pointer
endif
+
+$(obj)/ikconfig.h: scripts/mkconfigs .config Makefile
+ $(CONFIG_SHELL) scripts/mkconfigs .config Makefile > $(obj)/ikconfig.h
+
+$(obj)/configs.o: $(obj)/ikconfig.h $(obj)/configs.c \
+ include/linux/version.h include/linux/compile.h