]> code.ossystems Code Review - openembedded-core.git/commitdiff
base bbclass: add support for lz4 compressed archives
authorKoen Kooi <koen.kooi@linaro.org>
Tue, 14 Jan 2014 11:00:46 +0000 (12:00 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 14 Jan 2014 11:50:47 +0000 (11:50 +0000)
Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/base.bbclass

index 2e5217b147ccb221575805ffc87ad24e02c1e164..81fc30590a12660396cca2c004a1981eb74df51f 100644 (file)
@@ -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: