diff mbox series

[v2,1/2] makefile: add support for *_defconfig targets

Message ID 20190516133735.18883-1-volodymyr_babchuk@epam.com (mailing list archive)
State New, archived
Headers show
Series [v2,1/2] makefile: add support for *_defconfig targets | expand

Commit Message

Volodymyr Babchuk May 16, 2019, 1:37 p.m. UTC
Ease up XEN configuration for non-standard builds, like
armv8 tiny config.

Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>
---
 Changes from v2:
 - remove %_defconfig rule in favor of list of real *_defconfig files

 Makefile     | 4 ++++
 xen/Makefile | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

Comments

Jan Beulich May 16, 2019, 3:10 p.m. UTC | #1
>>> On 16.05.19 at 15:37, <Volodymyr_Babchuk@epam.com> wrote:
> Ease up XEN configuration for non-standard builds, like
> armv8 tiny config.
> 
> Signed-off-by: Volodymyr Babchuk <volodymyr_babchuk@epam.com>

Acked-by: Jan Beulich <jbeulich@suse.com>
diff mbox series

Patch

diff --git a/Makefile b/Makefile
index 829ac63741..ef1ea44ef1 100644
--- a/Makefile
+++ b/Makefile
@@ -54,6 +54,10 @@  build: $(TARGS_BUILD)
 build-xen:
 	$(MAKE) -C xen build
 
+.PHONY: %_defconfig
+%_defconfig:
+	$(MAKE) -C xen $@
+
 .PHONY: build-tools
 build-tools: build-tools-public-headers
 	$(MAKE) -C tools build
diff --git a/xen/Makefile b/xen/Makefile
index 1fd8ad5116..c80914c31d 100644
--- a/xen/Makefile
+++ b/xen/Makefile
@@ -264,7 +264,7 @@  $(foreach base,arch/x86/mm/guest_walk_% \
 
 kconfig := silentoldconfig oldconfig config menuconfig defconfig \
 	nconfig xconfig gconfig savedefconfig listnewconfig olddefconfig \
-	randconfig
+	randconfig $(notdir $(wildcard arch/$(SRCARCH)/configs/*_defconfig))
 .PHONY: $(kconfig)
 $(kconfig):
 	$(MAKE) -f $(BASEDIR)/tools/kconfig/Makefile.kconfig ARCH=$(ARCH) SRCARCH=$(SRCARCH) HOSTCC="$(HOSTCC)" HOSTCXX="$(HOSTCXX)" $@