linux.inc: Add lzma-native for nokia900
authorTom Rini <tom_rini@mentor.com>
Mon, 14 Feb 2011 23:12:52 +0000 (16:12 -0700)
committerTom Rini <tom_rini@mentor.com>
Mon, 14 Feb 2011 23:13:53 +0000 (16:13 -0700)
Add a check for nokia900 to the existing DEPENDS mangler to add
lzma-native, otherwise:
|   LZMA    arch/arm/boot/compressed/piggy.lzma
| /bin/sh: lzma: command not found

Signed-off-by: Tom Rini <tom_rini@mentor.com>
recipes/linux/linux.inc

index aca6a06..a0d16c2 100644 (file)
@@ -61,11 +61,15 @@ python __anonymous () {
     import bb
     
     devicetree = bb.data.getVar('KERNEL_DEVICETREE', d, 1) or ''
+    machine = bb.data.getVar('MACHINE', d, 1)
     if devicetree:
        depends = bb.data.getVar("DEPENDS", d, 1)
        bb.data.setVar("DEPENDS", "%s dtc-native" % depends, d)
        packages = bb.data.getVar("PACKAGES", d, 1)
        bb.data.setVar("PACKAGES", "%s kernel-devicetree" % packages, d)
+    if 'nokia900' in machine:
+        depends = bb.data.getVar("DEPENDS", d, 1)
+        bb.data.setVar("DEPENDS", "%s lzma-native" % depends, d)
 }
 
 do_configure_prepend() {