All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] EFI: don't repeatedly replace symlinks
@ 2018-11-23 11:37 Jan Beulich
  2018-11-23 11:55 ` Andrew Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Beulich @ 2018-11-23 11:37 UTC (permalink / raw)
  To: xen-devel
  Cc: Stefano Stabellini, Wei Liu, Konrad Rzeszutek Wilk,
	George Dunlap, Andrew Cooper, Ian Jackson, Tim Deegan,
	Julien Grall

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@suse.com>
---
Note that the root-owned issue also exists for the various .*.d2 files.

--- 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



_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] EFI: don't repeatedly replace symlinks
  2018-11-23 11:37 [PATCH] EFI: don't repeatedly replace symlinks Jan Beulich
@ 2018-11-23 11:55 ` Andrew Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Cooper @ 2018-11-23 11:55 UTC (permalink / raw)
  To: Jan Beulich, xen-devel
  Cc: Stefano Stabellini, Wei Liu, Konrad Rzeszutek Wilk,
	George Dunlap, Tim Deegan, Ian Jackson, Julien Grall

On 23/11/2018 11:37, Jan Beulich wrote:
> 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@suse.com>

Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-23 11:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-23 11:37 [PATCH] EFI: don't repeatedly replace symlinks Jan Beulich
2018-11-23 11:55 ` Andrew Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.