On 05/08/2019 17:06, Jan Beulich wrote: > On 05.08.2019 15:53, Andrew Cooper wrote: >> --- a/tools/firmware/xen-dir/Makefile >> +++ b/tools/firmware/xen-dir/Makefile >> @@ -38,7 +38,7 @@ linkfarm.stamp: $(DEP_DIRS) $(DEP_FILES) FORCE >> } >> >> # Copy enough of the tree to build the shim hypervisor >> -$(D): linkfarm.stamp >> +$(D) $(D)/xen/arch/x86/configs/pvshim_defconfig: linkfarm.stamp >> $(MAKE) -C $(D)/xen distclean >> >> $(D)/xen/.config: $(D) $(D)/xen/arch/x86/configs/pvshim_defconfig > But this then allows two instances of "$(MAKE) -C $(D)/xen distclean" > to run in parallel - not sure how well that would work. I think what > we want instead is > > $(D): linkfarm.stamp > $(MAKE) -C $(D)/xen distclean > > $(D)/xen/arch/x86/configs/pvshim_defconfig: $(D) > > $(D)/xen/.config: $(D)/xen/arch/x86/configs/pvshim_defconfig
That also seems to work. Overall change is diff --git a/tools/firmware/xen-dir/Makefile b/tools/firmware/xen-dir/Makefile index 7435421251..697bbbd57b 100644 --- a/tools/firmware/xen-dir/Makefile +++ b/tools/firmware/xen-dir/Makefile @@ -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 ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel