diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2007-10-25 14:42:18 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2007-10-25 16:35:18 -0400 |
commit | e703f75d620824739148142c3734ae8223e4d1f5 (patch) | |
tree | e6b618daacfe8d3980645fcde4709c76d9551e54 /scripts/kconfig | |
parent | d013a27cb79a01b324f93adb275162c244cca2de (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')
-rw-r--r-- | scripts/kconfig/Makefile | 28 |
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 | ||
5 | PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config | 5 | PHONY += oldconfig xconfig gconfig menuconfig config silentoldconfig update-po-config |
6 | 6 | ||
7 | Kconfig := arch/$(ARCH)/Kconfig | ||
8 | |||
7 | xconfig: $(obj)/qconf | 9 | xconfig: $(obj)/qconf |
8 | $< arch/$(ARCH)/Kconfig | 10 | $< $(Kconfig) |
9 | 11 | ||
10 | gconfig: $(obj)/gconf | 12 | gconfig: $(obj)/gconf |
11 | $< arch/$(ARCH)/Kconfig | 13 | $< $(Kconfig) |
12 | 14 | ||
13 | menuconfig: $(obj)/mconf | 15 | menuconfig: $(obj)/mconf |
14 | $< arch/$(ARCH)/Kconfig | 16 | $< $(Kconfig) |
15 | 17 | ||
16 | config: $(obj)/conf | 18 | config: $(obj)/conf |
17 | $< arch/$(ARCH)/Kconfig | 19 | $< $(Kconfig) |
18 | 20 | ||
19 | oldconfig: $(obj)/conf | 21 | oldconfig: $(obj)/conf |
20 | $< -o arch/$(ARCH)/Kconfig | 22 | $< -o $(Kconfig) |
21 | 23 | ||
22 | silentoldconfig: $(obj)/conf | 24 | silentoldconfig: $(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 | |||
45 | PHONY += randconfig allyesconfig allnoconfig allmodconfig defconfig | 47 | PHONY += randconfig allyesconfig allnoconfig allmodconfig defconfig |
46 | 48 | ||
47 | randconfig: $(obj)/conf | 49 | randconfig: $(obj)/conf |
48 | $< -r arch/$(ARCH)/Kconfig | 50 | $< -r $(Kconfig) |
49 | 51 | ||
50 | allyesconfig: $(obj)/conf | 52 | allyesconfig: $(obj)/conf |
51 | $< -y arch/$(ARCH)/Kconfig | 53 | $< -y $(Kconfig) |
52 | 54 | ||
53 | allnoconfig: $(obj)/conf | 55 | allnoconfig: $(obj)/conf |
54 | $< -n arch/$(ARCH)/Kconfig | 56 | $< -n $(Kconfig) |
55 | 57 | ||
56 | allmodconfig: $(obj)/conf | 58 | allmodconfig: $(obj)/conf |
57 | $< -m arch/$(ARCH)/Kconfig | 59 | $< -m $(Kconfig) |
58 | 60 | ||
59 | defconfig: $(obj)/conf | 61 | defconfig: $(obj)/conf |
60 | ifeq ($(KBUILD_DEFCONFIG),) | 62 | ifeq ($(KBUILD_DEFCONFIG),) |
61 | $< -d arch/$(ARCH)/Kconfig | 63 | $< -d $(Kconfig) |
62 | else | 64 | else |
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) |
65 | endif | 67 | endif |
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 |
71 | help: | 73 | help: |