linux-kexecboot.inc: Sometimes add lzma-native to DEPENDS
authorTom Rini <tom_rini@mentor.com>
Mon, 28 Feb 2011 20:39:19 +0000 (13:39 -0700)
committerTom Rini <tom_rini@mentor.com>
Mon, 28 Feb 2011 20:40:14 +0000 (13:40 -0700)
Using the same logic that switches on lzma compression add
lzma-native to DEPENDS.

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

index 40f41d6..e3dde6a 100644 (file)
@@ -50,6 +50,7 @@ def kernel_version_less_or_equal(variable, checkvalue, truevalue, falsevalue, d)
 
 # force lzma compression for kernel (linux-kexecboot >= 2.6.32)
 # force lzma compression for initramfs (linux-kexecboot >= 2.6.30)
+DEPENDS += '${@kernel_version_less_or_equal("PV", "2.6.29", "", "lzma-native", d)}'
 
 KERNEL_COMPRESSION = '${@kernel_version_less_or_equal("PV", "2.6.31", "", "CONFIG_KERNEL_LZMA=y", d)}'