[oe-commits] Tom Rini : linux.inc: Add lzma-native for nokia900
git version control
git at git.openembedded.org
Mon Feb 14 23:52:25 UTC 2011
Module: openembedded.git
Branch: org.openembedded.dev
Commit: 91afc3ec0eb102c995ad1a597031004e26f5a794
URL: http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=91afc3ec0eb102c995ad1a597031004e26f5a794
Author: Tom Rini <tom_rini at mentor.com>
Date: Mon Feb 14 16:12:52 2011 -0700
linux.inc: Add lzma-native for nokia900
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 at mentor.com>
---
recipes/linux/linux.inc | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/recipes/linux/linux.inc b/recipes/linux/linux.inc
index aca6a06..a0d16c2 100644
--- a/recipes/linux/linux.inc
+++ b/recipes/linux/linux.inc
@@ -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() {
More information about the Openembedded-commits
mailing list