diff options
author | Maxim Mikityanskiy <maxtram95@gmail.com> | 2015-01-19 18:14:13 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2015-02-02 09:25:22 +0100 |
commit | 6f5fdb6b2ebab928816e5fcd69f288d4fce5b75b (patch) | |
tree | 6d7222c1de2475d5ccbc40952e789c2ff1ba106d | |
parent | 9404f1a0a758d1443962ee9ac4c960f0fe23bab4 (diff) | |
download | buildroot-6f5fdb6b2ebab928816e5fcd69f288d4fce5b75b.tar.gz buildroot-6f5fdb6b2ebab928816e5fcd69f288d4fce5b75b.zip |
package/tar: add support for acl and xattr
If acl or attr is going to be installed, add support for them to tar.
[Thomas: explicitly disable acl and attr support when the
corresponding packages are not available.]
Signed-off-by: Maxim Mikityanskiy <maxtram95@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r-- | package/tar/tar.mk | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/package/tar/tar.mk b/package/tar/tar.mk index caaa5adfb8..2b47e334d5 100644 --- a/package/tar/tar.mk +++ b/package/tar/tar.mk @@ -19,6 +19,20 @@ TAR_DEPENDENCIES += busybox HOST_TAR_DEPENDENCIES = endif +ifeq ($(BR2_PACKAGE_ACL),y) +TAR_DEPENDENCIES += acl +TAR_CONF_OPTS += --with-posix-acls +else +TAR_CONF_OPTS += --without-posix-acls +endif + +ifeq ($(BR2_PACKAGE_ATTR),y) +TAR_DEPENDENCIES += attr +TAR_CONF_OPTS += --with-xattrs +else +TAR_CONF_OPTS += --without-xattrs +endif + $(eval $(autotools-package)) # host-tar: use cpio.gz instead of tar.gz to prevent chicken-egg problem |