xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] firmware/shim : filter output files during Xen tree setup
@ 2018-07-20 21:15 Christopher Clark
  2018-07-23  8:17 ` Wei Liu
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Christopher Clark @ 2018-07-20 21:15 UTC (permalink / raw)
  To: xen-devel; +Cc: wei.liu2, ian.jackson

Exclude named output files from the Xen tree setup.

The linkfarm.stamp content will differ between top level "make"
and "make install" invocations, due to the introduction of these
output files that are produced during the "make" build.

Filter these out to prevent an unnecessary rebuild of the shim during
"make install".

Signed-off-by: Christopher Clark <christopher.clark6@baesystems.com>
---
 tools/firmware/xen-dir/Makefile | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/tools/firmware/xen-dir/Makefile b/tools/firmware/xen-dir/Makefile
index 84648c3..e490dca 100644
--- a/tools/firmware/xen-dir/Makefile
+++ b/tools/firmware/xen-dir/Makefile
@@ -11,6 +11,9 @@ D=xen-root
 LINK_DIRS=config xen
 LINK_FILES=Config.mk
 
+# Files to exclude from the link farm
+EXCLUDE_FILES=xen xen.gz xen-syms xen-syms.map efi.lds xen.lds mkelf32 mkreloc
+
 DEP_DIRS=$(foreach i, $(LINK_DIRS), $(XEN_ROOT)/$(i))
 DEP_FILES=$(foreach i, $(LINK_FILES), $(XEN_ROOT)/$(i))
 
@@ -26,7 +29,8 @@ linkfarm.stamp: $(DEP_DIRS) $(DEP_FILES) FORCE
 	$(foreach d, $(LINK_DIRS), \
 		(cd $(XEN_ROOT); \
 		 find $(d) ! -type l -type f \
-		 $(addprefix ! -name , '*.[isoa]' '.*.d' '.*.d2')) \
+		 $(addprefix ! -name , '*.[isoa]' '.*.d' '.*.d2' \
+		                       $(EXCLUDE_FILES) )) \
 		 >> linkfarm.stamp.tmp ; ) \
 	$(foreach f, $(LINK_FILES), \
 		echo $(f) >> linkfarm.stamp.tmp ;)
-- 
2.7.4


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

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

end of thread, other threads:[~2018-07-26 21:10 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-20 21:15 [PATCH] firmware/shim : filter output files during Xen tree setup Christopher Clark
2018-07-23  8:17 ` Wei Liu
2018-07-23  9:09 ` Roger Pau Monné
2018-07-23  9:26   ` Andrew Cooper
2018-07-23 23:00     ` Christopher Clark
2018-07-24  9:43 ` Jan Beulich
2018-07-25  0:21   ` Christopher Clark
2018-07-25  0:28     ` [PATCH v2] " Christopher Clark
     [not found]       ` <5B57C29F0200000804C77BEC@prv1-mh.provo.novell.com>
     [not found]         ` <5B57C462020000E403D61C84@prv1-mh.provo.novell.com>
2018-07-25  8:10           ` Jan Beulich
2018-07-26 21:10             ` Christopher Clark
2018-07-25  7:51     ` [PATCH] " Jan Beulich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).