Skip to content

Parsing error in kconfiglib when upgrading to yocto 3.3 (hardknott) #120

@shmuelrsenberg

Description

@shmuelrsenberg

When upgrading to Yocto 3.3, we are receiving the following error:

kconfiglib.KconfigError: drivers/media/usb/stk1160/Kconfig:20: error: couldn't parse '.': unknown token at start of line
ERROR: config analysis failed:
DEBUG: Python function do_kernel_configcheck finished

When searching our Yocto directory after the failure, we see these files have been installed in the temp directory:

./poky-hardknott-25.0.5/build/tmp/sysroots-components/x86_64/kern-tools-native/usr/bin/kconfiglib.py
./poky-hardknott-25.0.5/build/tmp/work/dcbullet-poky-linux-gnueabi/linux-ambarella-s2l/3.10+20160826-r0/recipe-sysroot-native/usr/bin/kconfiglib.py
./poky-hardknott-25.0.5/build/tmp/work/x86_64-linux/kern-tools-native/0.2+gitAUTOINC+d220b06385-r12/sysroot-destdir/home/steven/workspace/olympus/yocto_container/yoctogeneral/poky-hardknott-25.0.5/build/tmp/work/x86_64-linux/kern-tools-native/0.2+gitAUTOINC+d220b06385-r12/recipe-sysroot-native/usr/bin/kconfiglib.py

The function seems to be called from symbol_why.py:

File "/home/steven/workspace/olympus/yocto_container/yoctogeneral/poky-hardknott-25.0.5/build/tmp/work/dcbullet-poky-linux-gnueabi/linux-ambarella-s2l/3.10+20160826-r0/recipe-sysroot-native/usr/bin/symbol_why.py", line 847, in
conf = kconfiglib.Kconfig( kconf, show_errors, show_errors )

In the directory:

./poky-hardknott-25.0.5/build/tmp/work/dcbullet-poky-linux-gnueabi/ambarella-s2l-sdk/s2l_2.6.0_20160826+gitrAUTOINC+05caf1012a-r0/git/ambarella/kernel/linux-3.10/drivers/media/usb/stk1160

The Kconfig file's contents are as follows:

config VIDEO_STK1160
tristate "STK1160 USB video capture support"
depends on VIDEO_DEV && I2C
select VIDEOBUF2_VMALLOC
select VIDEO_SAA711X

    ---help---
      This is a video4linux driver for STK1160 based video capture devices.

      To compile this driver as a module, choose M here: the
      module will be called stk1160

config VIDEO_STK1160_AC97
bool "STK1160 AC97 codec support"
depends on VIDEO_STK1160 && SND
select SND_AC97_CODEC

    ---help---
      Enables AC97 codec support for stk1160 driver.

.

Its not clear if the issue is with the configuration file itself or with the code. Maybe you can advise accordingly.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions