From 91afc3ec0eb102c995ad1a597031004e26f5a794 Mon Sep 17 00:00:00 2001 From: Tom Rini Date: Mon, 14 Feb 2011 16:12:52 -0700 Subject: [PATCH] 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 --- recipes/linux/linux.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/linux/linux.inc b/recipes/linux/linux.inc index aca6a06218..a0d16c24ac 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() { -- 2.39.5