]> code.ossystems Code Review - openembedded-core.git/commitdiff
base: add automatic dependency on lzip-native for .lz SRC_URI
authorRoss Burton <ross.burton@intel.com>
Fri, 20 Nov 2015 15:41:33 +0000 (15:41 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 1 Dec 2015 21:07:20 +0000 (21:07 +0000)
Now that the SRC_URI is parsed this can be done without false-positives.

Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/classes/base.bbclass

index 64820a75b171432ceddea90e2f91d2c1ca6d23cf..e6d15990327196c52afc2c12fe8a4c3de008a08c 100644 (file)
@@ -550,6 +550,10 @@ python () {
         if path.endswith('.lz4'):
             d.appendVarFlag('do_unpack', 'depends', ' lz4-native:do_populate_sysroot')
 
+        # *.lz should DEPEND on lzip-native for unpacking
+        elif path.endswith('.lz'):
+            d.appendVarFlag('do_unpack', 'depends', ' lzip-native:do_populate_sysroot')
+
         # *.xz should DEPEND on xz-native for unpacking
         elif path.endswith('.xz'):
             d.appendVarFlag('do_unpack', 'depends', ' xz-native:do_populate_sysroot')