summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2013-02-07 11:58:10 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-02-08 21:11:24 (GMT)
commitafea3037ef3a6718051e79dd7f7e3bb2e4cc224e (patch)
treed3de43716558ab7eb6ac3c283372a91de9ea9082
parentc482eed74c5238065ab1211c1e094be656fcda4f (diff)
downloadbuildroot-afea3037ef3a6718051e79dd7f7e3bb2e4cc224e.tar.gz
buildroot-afea3037ef3a6718051e79dd7f7e3bb2e4cc224e.tar.bz2
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: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Acked-by: Samuel Martin <s.martin49@gmail.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--Makefile3
-rw-r--r--docs/manual/customize-rootfs.txt4
2 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 395d270..7f0822f 100644
--- a/Makefile
+++ b/Makefile
@@ -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
diff --git a/docs/manual/customize-rootfs.txt b/docs/manual/customize-rootfs.txt
index 3cdbaa1..b1662cb 100644
--- a/docs/manual/customize-rootfs.txt
+++ b/docs/manual/customize-rootfs.txt
@@ -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