From 16e0f6c393d8327bb017d81fa72eb59db5cadb24 Mon Sep 17 00:00:00 2001 From: Christopher Clark Date: Tue, 31 Jul 2018 12:35:42 -0700 Subject: xen: upgrade to 4.10.1, and apply patches for gcc 8.1 compatibility Adds packaging for new binary: xen-shim. Builds the hypervisor before building the tools to workaround an upstream parallel build bug that causes the shim to be rebuilt during install. Signed-off-by: Christopher Clark Signed-off-by: Bruce Ashfield --- .../shim-don-t-let-build-modify-shim.config.patch | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 recipes-extended/xen/files/shim-don-t-let-build-modify-shim.config.patch (limited to 'recipes-extended/xen/files/shim-don-t-let-build-modify-shim.config.patch') diff --git a/recipes-extended/xen/files/shim-don-t-let-build-modify-shim.config.patch b/recipes-extended/xen/files/shim-don-t-let-build-modify-shim.config.patch new file mode 100644 index 00000000..74035283 --- /dev/null +++ b/recipes-extended/xen/files/shim-don-t-let-build-modify-shim.config.patch @@ -0,0 +1,47 @@ +From 8717e7417cebeae162fd61ea4cbdcdd422748f08 Mon Sep 17 00:00:00 2001 +From: Juergen Gross +Date: Fri, 20 Apr 2018 17:47:55 +0200 +Subject: [PATCH] shim: don't let build modify shim.config + +Currently building the shim will modify shim.config in case some config +option was added or modified in the hypervisor. + +Avoid that by copying shim.config to an intermediate file instead. + +Signed-off-by: Juergen Gross +Reviewed-by: Jan Beulich +Acked-by: Wei Liu +--- + tools/firmware/xen-dir/Makefile | 16 ++++++---------- + 1 file changed, 6 insertions(+), 10 deletions(-) + +diff --git a/tools/firmware/xen-dir/Makefile b/tools/firmware/xen-dir/Makefile +index a7e69ae..84648c3 100644 +--- a/tools/firmware/xen-dir/Makefile ++++ b/tools/firmware/xen-dir/Makefile +@@ -41,16 +41,12 @@ linkfarm.stamp: $(DEP_DIRS) $(DEP_FILES) FORCE + $(D): linkfarm.stamp + $(MAKE) -C $(D)/xen distclean + +-.PHONY: shim-%config +-shim-%config: $(D) FORCE +- $(MAKE) -C $(D)/xen $*config \ +- XEN_CONFIG_EXPERT=y \ +- KCONFIG_CONFIG=$(CURDIR)/shim.config +- +-xen-shim: $(D) shim-olddefconfig +- $(MAKE) -C $(D)/xen build \ +- XEN_CONFIG_EXPERT=y \ +- KCONFIG_CONFIG=$(CURDIR)/shim.config ++$(D)/xen/.config: shim.config $(D) ++ cp $< $@ ++ $(MAKE) -C $(@D) olddefconfig XEN_CONFIG_EXPERT=y ++ ++xen-shim: $(D)/xen/.config ++ $(MAKE) -C $(