summaryrefslogtreecommitdiffstats
path: root/kernel/Makefile
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-04-30 12:32:04 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-08-18 22:01:08 -0400
commitde481560eb0bd9d940b90311eba85711e4b1150b (patch)
tree51001590f3a317a6de96d8fa32c86c5be63579dd /kernel/Makefile
parent6be51ffc1791b72d11cef9bb0a578fe8c5d64c6a (diff)
downloadlinux-de481560eb0bd9d940b90311eba85711e4b1150b.tar.gz
linux-de481560eb0bd9d940b90311eba85711e4b1150b.tar.bz2
linux-de481560eb0bd9d940b90311eba85711e4b1150b.zip
kconfig: keep config.gz around even if CONFIG_IKCONFIG_PROC is not set
If CONFIG_IKCONFIG is set but CONFIG_IKCONFIG_PROC is not, then gcc will optimize the config.gz out, because nobody uses it. This patch adds "__used" to the config.gz data to keep it around so that code like extract-ikconfig can still find it. [ Impact: allow extract-ikconfig to find config.gz ] Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/Makefile')
-rw-r--r--kernel/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/Makefile b/kernel/Makefile
index 2093a691f1c2..d0c84e6bf50a 100644
--- a/kernel/Makefile
+++ b/kernel/Makefile
@@ -119,7 +119,7 @@ $(obj)/config_data.gz: .config FORCE
$(call if_changed,gzip)
quiet_cmd_ikconfiggz = IKCFG $@
- cmd_ikconfiggz = (echo "static const char kernel_config_data[] = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;") > $@
+ cmd_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/bin2c; echo "MAGIC_END;") > $@
targets += config_data.h
$(obj)/config_data.h: $(obj)/config_data.gz FORCE
$(call if_changed,ikconfiggz)