firmware/shim: fix build process to use POSIX find options
authorRoger Pau Monne <roger.pau@citrix.com>
Wed, 17 Jan 2018 08:37:54 +0000 (08:37 +0000)
committerWei Liu <wei.liu2@citrix.com>
Thu, 18 Jan 2018 11:17:58 +0000 (11:17 +0000)
The -printf find option is not POSIX compatible, so replace it with
another rune.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/firmware/xen-dir/Makefile

index adf6c31e8d26902d16519cee52f227d64f0dc011..53eb3b65439c684fbb147cc7109e29ee4cd98b55 100644 (file)
@@ -21,7 +21,8 @@ linkfarm.stamp: $(DEP_DIRS) $(DEP_FILES) FORCE
        $(foreach d, $(LINK_DIRS), \
                 (mkdir -p $(D)/$(d); \
                  cd $(D)/$(d); \
-                 find $(XEN_ROOT)/$(d)/ -type d -printf "./%P\n" |  xargs mkdir -p);)
+                 find $(XEN_ROOT)/$(d)/ -type d |\
+                       sed 's,^$(XEN_ROOT)/$(d)/,,g' | xargs mkdir -p);)
        $(foreach d, $(LINK_DIRS), \
                (cd $(XEN_ROOT); \
                 find $(d) ! -type l -type f \