diff options
author | 2016-03-23 15:39:54 +0200 | |
---|---|---|
committer | 2016-03-30 21:36:58 +0100 | |
commit | bca8b080378389c49fa5c7b0382c4b5e947589c2 (patch) | |
tree | b8f9db2fe6aeb8cb31fea0c6701fce9c78a8b7c8 /recipes-extended/libarchive/libarchive_%.bbappend | |
parent | d9d026e8a8729503bbbaeca7783349086fa0300c (diff) | |
download | meta-swupd-bca8b080378389c49fa5c7b0382c4b5e947589c2.tar.gz meta-swupd-bca8b080378389c49fa5c7b0382c4b5e947589c2.tar.bz2 meta-swupd-bca8b080378389c49fa5c7b0382c4b5e947589c2.zip |
libarchive: Enable xz and xattrs in native builds
Some recipes may need to generate archives during build time
that are consumed on target devices, e. g. software updates.
Since the format of those archives must be identical configure
the native tool the same way as it's done for target builds:
enable xattrs if it's a distro feature. Also make the xz
compression type enabled always in addition to zlib and bzip2.
Signed-off-by: Dmitry Rozhkov <dmitry.rozhkov@linux.intel.com>
Diffstat (limited to 'recipes-extended/libarchive/libarchive_%.bbappend')
-rw-r--r-- | recipes-extended/libarchive/libarchive_%.bbappend | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/recipes-extended/libarchive/libarchive_%.bbappend b/recipes-extended/libarchive/libarchive_%.bbappend new file mode 100644 index 0000000..0b51a6d --- /dev/null +++ b/recipes-extended/libarchive/libarchive_%.bbappend @@ -0,0 +1,10 @@ +# swupd-server and swupd-client requires the xz compression type +# to be supported in bsdtar. +PACKAGECONFIG_append = " xz" + +# Since the format of the archives generated by swupd-server and +# the ones consumed by swupd-client must be identical +# configure the native tool the same way as it's done for target. +PACKAGECONFIG_append_class-native = "\ + ${@bb.utils.contains('DISTRO_FEATURES', 'xattr', 'xattr', '', d)} \ +" |