[OE-core] [PATCH 2/4] base: add automatic dependency on lzip-native for .lz SRC_URI

Ross Burton ross.burton at intel.com
Mon Nov 23 12:10:25 UTC 2015


Now that the SRC_URI is parsed this can be done without false-positives.

Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/base.bbclass | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 64820a7..e6d1599 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -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')
-- 
2.1.4




More information about the Openembedded-core mailing list