Patchwork [2/5] base bbclass: add support for lz4 compressed archives

login
register
mail settings
Submitter Koen Kooi
Date Jan. 14, 2014, 11 a.m.
Message ID <1389697249-4062-2-git-send-email-koen.kooi@linaro.org>
Download mbox | patch
Permalink /patch/64709/
State New
Headers show

Comments

Koen Kooi - Jan. 14, 2014, 11 a.m.
Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
---
 meta/classes/base.bbclass | 5 +++++
 1 file changed, 5 insertions(+)

Patch

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 2e5217b..81fc305 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -573,6 +573,11 @@  python () {
     elif "osc://" in srcuri:
         d.appendVarFlag('do_fetch', 'depends', ' osc-native:do_populate_sysroot')
 
+    # *.lz4 should depends on lz4-native for unpacking
+    # Not endswith because of "*.patch.lz4;patch=1". Need bb.fetch.decodeurl in future
+    if '.lz4' in srcuri:
+        d.appendVarFlag('do_unpack', 'depends', ' lz4-native:do_populate_sysroot')
+
     # *.xz should depends on xz-native for unpacking
     # Not endswith because of "*.patch.xz;patch=1". Need bb.fetch.decodeurl in future
     if '.xz' in srcuri: