path: root/recipes-extended/libarchive/libarchive_%.bbappend
diff options
authorDmitry Rozhkov <dmitry.rozhkov@linux.intel.com>2016-03-23 15:39:54 +0200
committerJoshua Lock <joshua.g.lock@intel.com>2016-03-30 21:36:58 +0100
commitbca8b080378389c49fa5c7b0382c4b5e947589c2 (patch)
treeb8f9db2fe6aeb8cb31fea0c6701fce9c78a8b7c8 /recipes-extended/libarchive/libarchive_%.bbappend
parentd9d026e8a8729503bbbaeca7783349086fa0300c (diff)
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')
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)} \