[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] firmware/shim: fix build process to use POSIX find options


  • To: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Michael Glasgow <glasgow@xxxxxxxx>
  • Date: Fri, 26 Jan 2018 13:54:30 -0600 (CST)
  • Delivery-date: Sat, 27 Jan 2018 11:13:23 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

This recent patch can be simplified a bit.  (The patch below is
untested, just a suggestion.)


diff -ur a/tools/firmware/xen-dir/Makefile b/tools/firmware/xen-dir/Makefile
--- a/tools/firmware/xen-dir/Makefile   2018-01-26 11:40:00.711389605 -0600
+++ b/tools/firmware/xen-dir/Makefile   2018-01-26 11:51:41.279825142 -0600
@@ -20,9 +20,8 @@
        rm -f linkfarm.stamp.tmp
        $(foreach d, $(LINK_DIRS), \
                 (mkdir -p $(D)/$(d); \
-                 cd $(D)/$(d); \
-                 find $(XEN_ROOT)/$(d)/ -type d -exec sh -c \
-                     "echo {} | sed 's,^$(XEN_ROOT)/$(d)/,,g' | xargs mkdir 
-p" \;);)
+                 cd $(D)/$(d) && \
+                 (cd $(XEN_ROOT)/$(d) && find . -type d) | xargs mkdir -p \;);)
        $(foreach d, $(LINK_DIRS), \
                (cd $(XEN_ROOT); \
                 find $(d) ! -type l -type f \


-- 
Michael Glasgow <glasgow@xxxxxxxx>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.