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

Ross Burton ross.burton at intel.com
Sat Nov 21 18:44:38 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 c7db81a..dc4a5aa 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -548,6 +548,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.4.9 (Apple Git-60)




More information about the Openembedded-core mailing list