diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/Makefile | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 83c5e76414..59594126e8 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -4,23 +4,30 @@ | |||
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 | # If a arch/$(SRCARCH)/Kconfig.$(ARCH) file exist use it | ||
8 | ifneq ($(wildcard $(srctree)/arch/$(SRCARCH)/Kconfig.$(ARCH)),) | ||
9 | Kconfig := arch/$(SRCARCH)/Kconfig.$(ARCH) | ||
10 | else | ||
11 | Kconfig := arch/$(SRCARCH)/Kconfig | ||
12 | endif | ||
13 | |||
7 | xconfig: $(obj)/qconf | 14 | xconfig: $(obj)/qconf |
8 | $< arch/$(ARCH)/Kconfig | 15 | $< $(Kconfig) |
9 | 16 | ||
10 | gconfig: $(obj)/gconf | 17 | gconfig: $(obj)/gconf |
11 | $< arch/$(ARCH)/Kconfig | 18 | $< $(Kconfig) |
12 | 19 | ||
13 | menuconfig: $(obj)/mconf | 20 | menuconfig: $(obj)/mconf |
14 | $< arch/$(ARCH)/Kconfig | 21 | $< $(Kconfig) |
15 | 22 | ||
16 | config: $(obj)/conf | 23 | config: $(obj)/conf |
17 | $< arch/$(ARCH)/Kconfig | 24 | $< $(Kconfig) |
18 | 25 | ||
19 | oldconfig: $(obj)/conf | 26 | oldconfig: $(obj)/conf |
20 | $< -o arch/$(ARCH)/Kconfig | 27 | $< -o $(Kconfig) |
21 | 28 | ||
22 | silentoldconfig: $(obj)/conf | 29 | silentoldconfig: $(obj)/conf |
23 | $< -s arch/$(ARCH)/Kconfig | 30 | $< -s $(Kconfig) |
24 | 31 | ||
25 | # Create new linux.po file | 32 | # Create new linux.po file |
26 | # Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files | 33 | # Adjust charset to UTF-8 in .po file to accept UTF-8 in Kconfig files |
@@ -45,27 +52,27 @@ update-po-config: $(obj)/kxgettext | |||
45 | PHONY += randconfig allyesconfig allnoconfig allmodconfig defconfig | 52 | PHONY += randconfig allyesconfig allnoconfig allmodconfig defconfig |
46 | 53 | ||
47 | randconfig: $(obj)/conf | 54 | randconfig: $(obj)/conf |
48 | $< -r arch/$(ARCH)/Kconfig | 55 | $< -r $(Kconfig) |
49 | 56 | ||
50 | allyesconfig: $(obj)/conf | 57 | allyesconfig: $(obj)/conf |
51 | $< -y arch/$(ARCH)/Kconfig | 58 | $< -y $(Kconfig) |
52 | 59 | ||
53 | allnoconfig: $(obj)/conf | 60 | allnoconfig: $(obj)/conf |
54 | $< -n arch/$(ARCH)/Kconfig | 61 | $< -n $(Kconfig) |
55 | 62 | ||
56 | allmodconfig: $(obj)/conf | 63 | allmodconfig: $(obj)/conf |
57 | $< -m arch/$(ARCH)/Kconfig | 64 | $< -m $(Kconfig) |
58 | 65 | ||
59 | defconfig: $(obj)/conf | 66 | defconfig: $(obj)/conf |
60 | ifeq ($(KBUILD_DEFCONFIG),) | 67 | ifeq ($(KBUILD_DEFCONFIG),) |
61 | $< -d arch/$(ARCH)/Kconfig | 68 | $< -d $(Kconfig) |
62 | else | 69 | else |
63 | @echo *** Default configuration is based on '$(KBUILD_DEFCONFIG)' | 70 | @echo "*** Default configuration is based on '$(KBUILD_DEFCONFIG)'" |
64 | $(Q)$< -D arch/$(ARCH)/configs/$(KBUILD_DEFCONFIG) arch/$(ARCH)/Kconfig | 71 | $(Q)$< -D arch/$(SRCARCH)/configs/$(KBUILD_DEFCONFIG) $(Kconfig) |
65 | endif | 72 | endif |
66 | 73 | ||
67 | %_defconfig: $(obj)/conf | 74 | %_defconfig: $(obj)/conf |
68 | $(Q)$< -D arch/$(ARCH)/configs/$@ arch/$(ARCH)/Kconfig | 75 | $(Q)$< -D arch/$(SRCARCH)/configs/$@ $(Kconfig) |
69 | 76 | ||
70 | # Help text used by make help | 77 | # Help text used by make help |
71 | help: | 78 | help: |