[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.
Andreas Müller
schnitzeltony at gmx.de
Mon Dec 19 15:22:44 PST 2011
On Monday, December 19, 2011 05:15:36 PM Koen Kooi wrote:
> 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')
> +}
I am afraid since this patch I get
ERROR: Unable to parse /home/Superandy/data/oe-core/sources/meta-ti/recipes-
kernel/linux/linux_3.1.bb########################
| ETA: 00:00:00
Traceback (most recent call last):
File "/home/Superandy/oe-core/sources/bitbake/lib/bb/parse/ast.py", line 379,
in multi_finalize(fn='/home/Superandy/data/oe-core/sources/meta-ti/recipes-
kernel/linux/linux_3.1.bb', d=<bb.data_smart.DataSmart object at 0x6e5e390>):
try:
> finalize(fn, d)
except bb.parse.SkipPackage as e:
File "/home/Superandy/oe-core/sources/bitbake/lib/bb/parse/ast.py", line 323,
in finalize(fn='/home/Superandy/data/oe-core/sources/meta-ti/recipes-
kernel/linux/linux_3.1.bb', d=<bb.data_smart.DataSmart object at 0x6e5e390>,
variant=None):
code.append("%s(d)" % funcname)
> bb.utils.simple_exec("\n".join(code), {"d": d})
bb.data.update_data(d)
File "/home/Superandy/oe-core/sources/bitbake/lib/bb/utils.py", line 387, in
simple_exec(code='__anon_119__home_Superandy_data_oe_core_sources_openembedded_core_meta_classes_staging_bbclass(d)\n__anon_487__home_Superandy_data_oe_core_sources_openembedded_core_meta_classes_base_bbclass(d)\n__anon_20__home_Superandy_data_oe_core_sources_openembedded_core_meta_classes_debian_bbclass(d)\n__anon_19__home_Superandy_data_oe_core_sources_meta_openembedded_meta_oe_classes_blacklist_bbclass(d)\n__anon_189__home_Superandy_data_oe_core_sources_openembedded_core_meta_classes_package_bbclass(d)\n__anon_55__home_Superandy_data_oe_core_sources_openembedded_core_meta_classes_sstate_bbclass(d)\n__anon_447__home_Superandy_data_oe_core_sources_openembedded_core_meta_classes_package_ipk_bbclass(d)\n__anon_28__home_Superandy_data_oe_core_sources_meta_openembedded_meta_oe_classes_kernel_bbclass(d)\n__anon_119__home_Superandy_data_oe_core_sources_openembedded_core_meta_classes_siteinfo_bbclass(d)\n__anon_72__home_Superandy_data_oe_core_sources_meta_ti_recipes_kernel_linux_linux_inc(d)\n__anon_277__home_Superandy_data_oe_core_sources_meta_ti_recipes_kernel_linux_linux_inc(d)',
context={'d': <bb.data_smart.DataSmart object at 0x6e5e390>}):
def simple_exec(code, context):
> exec(code, _context, context)
File "<string>", line 11, in <module>
File
"__anon_277__home_Superandy_data_oe_core_sources_meta_ti_recipes_kernel_linux_linux_inc",
line 7, in
__anon_277__home_Superandy_data_oe_core_sources_meta_ti_recipes_kernel_linux_linux_inc(d=<bb.data_smart.DataSmart
object at 0x6e5e390>)
IOError: [Errno 2] No such file or directory:
'/home/Superandy/data/Downloads/packets/dl/defconfig'
Hints:
* reverting fixed issue
* /home/Superandy/data/Downloads/packets/dl is my download directory
Andreas
More information about the meta-ti
mailing list