[meta-ti] [PATCH 1/5] linux.inc: If the kernel has CONFIG_KERNEL_LZO=y, it may well attempt to use the 'lzop' utility to do the lzo compression, but we should not be relying on that utility being installed on the build machine.
Koen Kooi
koen at dominion.thruhere.net
Mon Dec 19 08:15:36 PST 2011
From: Christopher Larson <chris_larson at mentor.com>
This currently affects the linux-omap4 build for omap4430-panda.
Signed-off-by: Christopher Larson <chris_larson at mentor.com>
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
---
recipes-kernel/linux/linux.inc | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/recipes-kernel/linux/linux.inc b/recipes-kernel/linux/linux.inc
index 9650e68..e8a754f 100644
--- a/recipes-kernel/linux/linux.inc
+++ b/recipes-kernel/linux/linux.inc
@@ -264,3 +264,14 @@ pkg_postrm_kernel-devicetree () {
cd /${KERNEL_IMAGEDEST}; update-alternatives --remove devicetree devicetree-${KERNEL_VERSION} || true
}
+# Automatically depend on lzop-native if CONFIG_KERNEL_LZO is enabled
+python () {
+ try:
+ defconfig = bb.fetch2.localpath('file://defconfig', d)
+ except bb.fetch2.FetchError:
+ pass
+ else:
+ if 'CONFIG_KERNEL_LZO=y\n' in open(defconfig).readlines():
+ depends = d.getVar('DEPENDS', False)
+ d.setVar('DEPENDS', depends + ' lzop-native')
+}
--
1.7.2.5
More information about the meta-ti
mailing list