diff options
author | Christopher Larson <chris_larson@mentor.com> | 2011-12-17 16:36:07 +0100 |
---|---|---|
committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-12-17 16:36:07 +0100 |
commit | 58ea76fd6478677c228fed53f1945b6f1394da43 (patch) | |
tree | 7ccea20e2e927a43042b453954eaab9e62ed0480 | |
parent | 018824ece4a04245b4277d5c8afcccfd6ca75df0 (diff) | |
download | meta-ti-58ea76fd6478677c228fed53f1945b6f1394da43.tar.gz |
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.
This currently affects the linux-omap4 build for omap4430-panda.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
-rw-r--r-- | 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 9650e686..e8a754f5 100644 --- a/recipes-kernel/linux/linux.inc +++ b/recipes-kernel/linux/linux.inc | |||
@@ -264,3 +264,14 @@ pkg_postrm_kernel-devicetree () { | |||
264 | cd /${KERNEL_IMAGEDEST}; update-alternatives --remove devicetree devicetree-${KERNEL_VERSION} || true | 264 | cd /${KERNEL_IMAGEDEST}; update-alternatives --remove devicetree devicetree-${KERNEL_VERSION} || true |
265 | } | 265 | } |
266 | 266 | ||
267 | # Automatically depend on lzop-native if CONFIG_KERNEL_LZO is enabled | ||
268 | python () { | ||
269 | try: | ||
270 | defconfig = bb.fetch2.localpath('file://defconfig', d) | ||
271 | except bb.fetch2.FetchError: | ||
272 | pass | ||
273 | else: | ||
274 | if 'CONFIG_KERNEL_LZO=y\n' in open(defconfig).readlines(): | ||
275 | depends = d.getVar('DEPENDS', False) | ||
276 | d.setVar('DEPENDS', depends + ' lzop-native') | ||
277 | } | ||