diff options
-rw-r--r-- | scripts/kconfig/Makefile | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index b0e4be28204d..cb2cf548c45c 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -104,21 +104,20 @@ endif | |||
104 | %_defconfig: $(obj)/conf | 104 | %_defconfig: $(obj)/conf |
105 | $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) | 105 | $(Q)$< --defconfig=arch/$(SRCARCH)/configs/$@ $(Kconfig) |
106 | 106 | ||
107 | configfiles=$(wildcard $(srctree)/kernel/configs/$(1).config $(srctree)/arch/$(SRCARCH)/configs/$(1).config) | 107 | configfiles=$(wildcard $(srctree)/kernel/configs/$@ $(srctree)/arch/$(SRCARCH)/configs/$@) |
108 | 108 | ||
109 | define mergeconfig | 109 | %.config: $(obj)/conf |
110 | $(if $(call configfiles,$(1)),, $(error No configuration exists for this target on this architecture)) | 110 | $(if $(call configfiles),, $(error No configuration exists for this target on this architecture)) |
111 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(call configfiles,$(1)) | 111 | $(Q)$(CONFIG_SHELL) $(srctree)/scripts/kconfig/merge_config.sh -m .config $(configfiles) |
112 | +$(Q)yes "" | $(MAKE) -f $(srctree)/Makefile oldconfig | 112 | +$(Q)yes "" | $(MAKE) -f $(srctree)/Makefile oldconfig |
113 | endef | ||
114 | 113 | ||
115 | PHONY += kvmconfig | 114 | PHONY += kvmconfig |
116 | kvmconfig: | 115 | kvmconfig: kvm_guest.config |
117 | $(call mergeconfig,kvm_guest) | 116 | @: |
118 | 117 | ||
119 | PHONY += tinyconfig | 118 | PHONY += tinyconfig |
120 | tinyconfig: allnoconfig | 119 | tinyconfig: |
121 | $(call mergeconfig,tiny) | 120 | $(Q)$(MAKE) -f $(srctree)/Makefile allnoconfig tiny.config |
122 | 121 | ||
123 | # Help text used by make help | 122 | # Help text used by make help |
124 | help: | 123 | help: |