aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/Makefile
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2007-10-25 14:42:18 -0400
committerSam Ravnborg <sam@ravnborg.org>2007-10-25 16:35:18 -0400
commite703f75d620824739148142c3734ae8223e4d1f5 (patch)
treee6b618daacfe8d3980645fcde4709c76d9551e54 /scripts/kconfig/Makefile
parentd013a27cb79a01b324f93adb275162c244cca2de (diff)
kconfig: small code refactoring in kconfig Makefile
Do not hardcode the arch/$(ARCH)/Kconfig name all over Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r--scripts/kconfig/Makefile28
1 files changed, 15 insertions, 13 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile
index fbf39cc6afab..3c9db073571c 100644
--- a/scripts/kconfig/Makefile
+++ b/scripts/kconfig/Makefile
@@ -4,23 +4,25 @@
4 4
5PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config 5PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config
6 6
7Kconfig := arch/$(ARCH)/Kconfig
8
7xconfig: $(obj)/qconf 9xconfig: $(obj)/qconf
8 $< arch/$(ARCH)/Kconfig 10 $< $(Kconfig)
9 11
10gconfig: $(obj)/gconf 12gconfig: $(obj)/gconf
11 $< arch/$(ARCH)/Kconfig 13 $< $(Kconfig)
12 14
13menuconfig: $(obj)/mconf 15menuconfig: $(obj)/mconf
14 $< arch/$(ARCH)/Kconfig 16 $< $(Kconfig)
15 17
16config: $(obj)/conf 18config: $(obj)/conf
17 $< arch/$(ARCH)/Kconfig 19 $< $(Kconfig)
18 20
19oldconfig: $(obj)/conf 21oldconfig: $(obj)/conf
20 $< -o arch/$(ARCH)/Kconfig 22 $< -o $(Kconfig)
21 23
22silentoldconfig: $(obj)/conf 24silentoldconfig: $(obj)/conf
23 $< -s arch/$(ARCH)/Kconfig 25 $< -s $(Kconfig)
24 26
25# Create new linux.po file 27# Create new linux.po file
26# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files 28# Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files
@@ -45,27 +47,27 @@ update-po-config: $(obj)/kxgettext
45PHONY += randconfig allyesconfig allnoconfig allmodconfig defconfig 47PHONY += randconfig allyesconfig allnoconfig allmodconfig defconfig
46 48
47randconfig: $(obj)/conf 49randconfig: $(obj)/conf
48 $< -r arch/$(ARCH)/Kconfig 50 $< -r $(Kconfig)
49 51
50allyesconfig: $(obj)/conf 52allyesconfig: $(obj)/conf
51 $< -y arch/$(ARCH)/Kconfig 53 $< -y $(Kconfig)
52 54
53allnoconfig: $(obj)/conf 55allnoconfig: $(obj)/conf
54 $< -n arch/$(ARCH)/Kconfig 56 $< -n $(Kconfig)
55 57
56allmodconfig: $(obj)/conf 58allmodconfig: $(obj)/conf
57 $< -m arch/$(ARCH)/Kconfig 59 $< -m $(Kconfig)
58 60
59defconfig: $(obj)/conf 61defconfig: $(obj)/conf
60ifeq ($(KBUILD_DEFCONFIG),) 62ifeq ($(KBUILD_DEFCONFIG),)
61 $< -d arch/$(ARCH)/Kconfig 63 $< -d $(Kconfig)
62else 64else
63 @echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" 65 @echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'"
64 $(Q)$< -D arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) arch/$(ARCH)/Kconfig 66 $(Q)$< -D arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig)
65endif 67endif
66 68
67%_defconfig: $(obj)/conf 69%_defconfig: $(obj)/conf
68 $(Q)$< -D arch/$(SRCARCH)/configs/$@ arch/$(ARCH)/Kconfig 70 $(Q)$< -D arch/$(SRCARCH)/configs/$@ $(Kconfig)
69 71
70# Help text used by make help 72# Help text used by make help
71help: 73help: