From: Luca Ceresoli Date: Mon, 8 Apr 2013 06:50:16 +0000 (+0000) Subject: rootfs-overlay: use a make foreach instead of a shell for X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e9b771283765e74792df6a05775383f6d4da2636;p=buildroot.git rootfs-overlay: use a make foreach instead of a shell for Makes the code uniform with the post-build and post-image implementation (which is slightly simpler and, presumably, more efficient). Signed-off-by: Luca Ceresoli Reviewed-by: "Yann E. MORIN" Acked-by: Arnout Vandecappelle (Essensium/Mind) --- diff --git a/Makefile b/Makefile index 840aa1fe9f..97804ff78c 100644 --- a/Makefile +++ b/Makefile @@ -501,13 +501,12 @@ endif echo "PRETTY_NAME=\"Buildroot $(BR2_VERSION)\"" \ ) > $(TARGET_DIR)/etc/os-release - @for dir in $(call qstrip,$(BR2_ROOTFS_OVERLAY)); do \ - $(call MESSAGE,"Copying overlay $${dir}"); \ + @$(foreach d, $(call qstrip,$(BR2_ROOTFS_OVERLAY)), \ + $(call MESSAGE,"Copying overlay $(d)"); \ rsync -a \ --exclude .empty --exclude .svn --exclude .git \ --exclude .hg --exclude '*~' \ - $${dir}/ $(TARGET_DIR); \ - done + $(d)/ $(TARGET_DIR)$(sep)) @$(foreach s, $(call qstrip,$(BR2_ROOTFS_POST_BUILD_SCRIPT)), \ $(call MESSAGE,"Executing post-build script $(s)"); \