Commit afea3037 authored by Arnout Vandecappelle (Essensium/Mind)'s avatar Arnout Vandecappelle (Essensium/Mind) Committed by Peter Korsgaard
Browse files

rootfs-overlay: also exclude .empty files



This makes it possible to put empty directories in the overlay.
Thanks to Aras Vaichas for pointing that out.

Signed-off-by: default avatarArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Acked-by: default avatarSamuel Martin <s.martin49@gmail.com>
Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent c482eed7
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -506,7 +506,8 @@ endif
	@for dir in $(call qstrip,$(BR2_ROOTFS_OVERLAY)); do \
		$(call MESSAGE,"Copying overlay $${dir}"); \
		rsync -a \
			--exclude .svn --exclude .git --exclude .hg --exclude '*~' \
			--exclude .empty --exclude .svn --exclude .git \
			--exclude .hg --exclude '*~' \
			$${dir}/ $(TARGET_DIR); \
	done

+2 −2
Original line number Diff line number Diff line
@@ -20,8 +20,8 @@ there are a few ways to customize the resulting target filesystem.

* Create a filesystem overlay: a tree of files that are copied directly
  over the target filesystem after it has been built.  Set
  +BR2_ROOTFS_OVERLAY+ to the top of the tree.  +.git+, +.svn+,
  +.hg+ directories and files ending with +~+ are excluded.
  +BR2_ROOTFS_OVERLAY+ to the top of the tree.  +.git+, +.svn+, +.hg+
  directories, +.empty+ files and files ending with +~+ are excluded.
  _Among these first 3 methods, this one should be preferred_.

* In the Buildroot configuration, you can specify the path to a