diff options
author | Ben Gardiner <bengardiner@nanometrics.ca> | 2010-12-14 11:39:44 -0500 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-12-14 17:05:02 -0500 |
commit | 41263fc6716dea402125c95f38ed83ebf59d5172 (patch) | |
tree | b38af603d534914187e396c989fc01a20894a2ff /kernel | |
parent | ba9effa2ecdc08325bd297d541b4207b2df38184 (diff) |
kbuild: fix interaction of CONFIG_IKCONFIG and KCONFIG_CONFIG
If you try to build a kernel with KCONFIG_CONFIG set (to a value
not equal to .config) and that config sets CONFIG_IKCONFIG then the
build will fail with:
make[1]: *** No rule to make target `.config', needed by \
`kernel/config_data.gz'. Stop.
because the kernel/Makefile contains a direct reference to .config.
This issue has been present since the introduction of KCONFIG_CONFIG
in 14cdd3c402bf7c66f0bcd76e290f0770a54a4b21.
Signed-off-by: Ben Gardiner <bengardiner@nanometrics.ca>
CC: Roman Zippel <zippel@linux-m68k.org>
CC: Michal Marek <mmarek@suse.cz>
Reviewed-by: Michal Marek <mmarek@suse.cz>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/Makefile b/kernel/Makefile index 0b5ff083fa22..33e0a39cf359 100644 --- a/kernel/Makefile +++ b/kernel/Makefile | |||
@@ -121,7 +121,7 @@ $(obj)/configs.o: $(obj)/config_data.h | |||
121 | # config_data.h contains the same information as ikconfig.h but gzipped. | 121 | # config_data.h contains the same information as ikconfig.h but gzipped. |
122 | # Info from config_data can be extracted from /proc/config* | 122 | # Info from config_data can be extracted from /proc/config* |
123 | targets += config_data.gz | 123 | targets += config_data.gz |
124 | $(obj)/config_data.gz: .config FORCE | 124 | $(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE |
125 | $(call if_changed,gzip) | 125 | $(call if_changed,gzip) |
126 | 126 | ||
127 | quiet_cmd_ikconfiggz = IKCFG $@ | 127 | quiet_cmd_ikconfiggz = IKCFG $@ |