diff mbox

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

Message ID 1389697249-4062-2-git-send-email-koen.kooi@linaro.org
State Accepted
Commit 8b31b2d612b7bcd98c393c3760bb2e1542c02bd5
Headers show

Commit Message

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

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: