]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
x86/shim: Fix parallel build following c/s 32b1d62887d0 smoke staging
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 5 Aug 2019 13:48:21 +0000 (14:48 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 5 Aug 2019 18:01:48 +0000 (19:01 +0100)
Unfortunately, a parallel build from clean can fail in the following manner:

  xen.git$ make -j4 -C tools/firmware/xen-dir/
  make: Entering directory '/local/xen.git/tools/firmware/xen-dir'
  mkdir -p xen-root
  make: *** No rule to make target 'xen-root/xen/arch/x86/configs/pvshim_defconfig', needed by 'xen-root/xen/.config'.  Stop.
  make: *** Waiting for unfinished jobs....

The rule for pvshim_defconfig needs to depend on the linkfarm, rather than
$(D)/xen/.config specifically.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
tools/firmware/xen-dir/Makefile

index 743542125121759e4ce234605b5072c2dc53d325..697bbbd57bc1072a87374e1df63e96f8eeeedd45 100644 (file)
@@ -41,7 +41,9 @@ linkfarm.stamp: $(DEP_DIRS) $(DEP_FILES) FORCE
 $(D): linkfarm.stamp
        $(MAKE) -C $(D)/xen distclean
 
-$(D)/xen/.config: $(D) $(D)/xen/arch/x86/configs/pvshim_defconfig
+$(D)/xen/arch/x86/configs/pvshim_defconfig: $(D)
+
+$(D)/xen/.config: $(D)/xen/arch/x86/configs/pvshim_defconfig
        $(MAKE) -C $(@D) KBUILD_DEFCONFIG=pvshim_defconfig XEN_CONFIG_EXPERT=y defconfig
 
 xen-shim: $(D)/xen/.config