From: "Jan Beulich" Subject: Re: [PATCH for-4.5 V6 01/14] move x86 EFI boot/runtime code to common/efi Date: Wed, 24 Sep 2014 16:50:38 +0100 Message-ID: <5423046E020000780003875D@mail.emea.novell.com> References: <1411534992-27443-1-git-send-email-roy.franz@linaro.org> <1411534992-27443-2-git-send-email-roy.franz@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1411534992-27443-2-git-send-email-roy.franz@linaro.org> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Roy Franz Cc: keir@xen.org, ian.campbell@citrix.com, tim@xen.org, xen-devel@lists.xen.org, stefano.stabellini@citrix.com, fu.wei@linaro.org List-Id: xen-devel@lists.xenproject.org >>> On 24.09.14 at 07:02, wrote: > --- a/xen/Makefile > +++ b/xen/Makefile > @@ -100,6 +100,10 @@ $(TARGET): delete-unfresh-files > $(MAKE) -C tools > $(MAKE) -f $(BASEDIR)/Rules.mk include/xen/compile.h > [ -e include/asm ] || ln -sf asm-$(TARGET_ARCH) include/asm > + [ -e arch/$(TARGET_ARCH)/efi ] && ln -nsf ../../../common/efi/boot.c arch/$(TARGET_ARCH)/efi/;\ > + ln -nsf ../../../common/efi/runtime.c arch/$(TARGET_ARCH)/efi/;\ > + ln -nsf ../../../common/efi/compat.c arch/$(TARGET_ARCH)/efi/;\ > + ln -nsf ../../../common/efi/efi.h arch/$(TARGET_ARCH)/efi/; I don't think this does what you want: The && applies only to the first ln invocation, the others will be done unconditionally. And this would be better done with "for f in boot.c runtime.c ..." anyway, at which point the issue magically disappears. Furthermore (I'm sorry for not paying attention to the before) you shouldn't use && in make rules without some extra care: If the left side evaluates to false, the whole compound command (and hence the make rule) will fail. Either use || or invoke /bin/true as last operation. Jan