Commit e9b77128 authored by Luca Ceresoli's avatar Luca Ceresoli Committed by Peter Korsgaard
Browse files

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: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Reviewed-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
Acked-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
parent 92625d74
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -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)"); \