]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
kconfig: keep config.gz around even if CONFIG_IKCONFIG_PROC is not set
authorSteven Rostedt <srostedt@redhat.com>
Thu, 30 Apr 2009 16:32:04 +0000 (12:32 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 19 Aug 2009 02:01:08 +0000 (22:01 -0400)
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>
kernel/Makefile

index 2093a691f1c25159ec9f13d58257b21b824cce04..d0c84e6bf50a511d35fd19f42c9e8d702bbfa8c6 100644 (file)
@@ -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)