The -printf find option is not POSIX compatible, so replace it with another rune.
Signed-off-by: Roger Pau Monné <roger....@citrix.com> --- Cc: Ian Jackson <ian.jack...@eu.citrix.com> Cc: Wei Liu <wei.l...@citrix.com> --- Changes since v1: - Drop the exec rune and instead process the whole output at once. --- tools/firmware/xen-dir/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/firmware/xen-dir/Makefile b/tools/firmware/xen-dir/Makefile index adf6c31e8d..53eb3b6543 100644 --- a/tools/firmware/xen-dir/Makefile +++ b/tools/firmware/xen-dir/Makefile @@ -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 \ -- 2.15.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel