Skip to content

Commit

Permalink
If the kernel has CONFIG_KERNEL_LZO=y, it may well attempt to use the…
Browse files Browse the repository at this point in the history
… '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>
  • Loading branch information
kergoth authored and koenkooi committed Dec 17, 2011
1 parent 018824e commit 58ea76f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions recipes-kernel/linux/linux.inc
Expand Up @@ -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')
}

0 comments on commit 58ea76f

Please sign in to comment.