Skip to content

Commit

Permalink
shim: don't let build modify shim.config
Browse files Browse the repository at this point in the history
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.

(cherry picked from commit 8717e74)
Cherry-pick-repository: https://xenbits.xen.org/gitweb/?p=xen.git
Issue: ALB-3594
Signed-off-by: Juergen Gross <jgross@suse.com>
  • Loading branch information
jgross1 authored and AndreiCherechesu-NXP committed Mar 19, 2019
1 parent 3d6c1c7 commit b1d2d13
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions tools/firmware/xen-dir/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $(<D) build XEN_CONFIG_EXPERT=y
ln -sf $(D)/xen/xen $@
ln -sf $(D)/xen/xen-syms $@-syms

Expand Down

0 comments on commit b1d2d13

Please sign in to comment.