[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen staging] EFI: don't repeatedly replace symlinks
commit 9aac4a0b4372d5e3db573641cc1e5a44e3748b0b Author: Jan Beulich <jbeulich@xxxxxxxx> AuthorDate: Mon Nov 26 15:43:22 2018 +0100 Commit: Jan Beulich <jbeulich@xxxxxxxx> CommitDate: Mon Nov 26 15:43:22 2018 +0100 EFI: don't repeatedly replace symlinks Once created there's no point re-creating them on every incremental make. This in particular prevents them from becoming root-owned during e.g. "sudo make install-xen", but it also allows (during development) to replace them there (instead of in common/efi/) by actual files with perhaps slightly changed contents. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> --- xen/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/xen/Makefile b/xen/Makefile index e131cf4b71..7c77c30406 100644 --- a/xen/Makefile +++ b/xen/Makefile @@ -137,7 +137,9 @@ $(TARGET): delete-unfresh-files $(MAKE) -f $(BASEDIR)/Rules.mk include/xen/compile.h [ -e include/asm ] || ln -sf asm-$(TARGET_ARCH) include/asm [ -e arch/$(TARGET_ARCH)/efi ] && for f in boot.c runtime.c compat.c efi.h;\ - do ln -nsf ../../../common/efi/$$f arch/$(TARGET_ARCH)/efi/; done;\ + do test -r arch/$(TARGET_ARCH)/efi/$$f || \ + ln -nsf ../../../common/efi/$$f arch/$(TARGET_ARCH)/efi/; \ + done; \ true $(MAKE) -f $(BASEDIR)/Rules.mk -C include $(MAKE) -f $(BASEDIR)/Rules.mk -C arch/$(TARGET_ARCH) asm-offsets.s -- generated by git-patchbot for /home/xen/git/xen.git#staging _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |