[linux-yocto] Problems building meta-skeleton

Mats Liljegren liljegren.mats2 at gmail.com
Tue Mar 19 06:04:00 PDT 2013


I try to build my home-brewed kernel using the linux-yocto-custom.bb as
template. I've named my file "linux-omap4_3.9.bb" since this is what the
machine specification for PandaBoard requires.

The error I get is:

--------------------

ERROR: Error executing a python function in
/media/sdc1/fb/mlil/enea-base/poky/meta-enea-lwrt/recipes-kernel/linux/linux-omap4_3.9.bb:
UnboundLocalError: local variable 'source_tar_name' referenced before
assignment

ERROR: The stack trace of python calls that resulted in this
exception/failure was:
ERROR:   File "do_archive_linux_yocto", line 10, in <module>
ERROR: 
ERROR:   File "do_archive_linux_yocto", line 7, in do_archive_linux_yocto
ERROR: 
ERROR: The code that was being executed was:
ERROR:      0006:    if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True) !=
'srpm':
ERROR:      0007:        move_tarball_deploy(d, [source_tar_name, ''])
ERROR:      0008:
ERROR:      0009:
ERROR:  *** 0010:do_archive_linux_yocto(d)
ERROR:      0011:
ERROR: [From file: 'do_archive_linux_yocto', lineno: 10, function: <module>]
ERROR:      0003:    s = d.getVar('S', True)
ERROR:      0004:    if 'linux-yocto' in s:
ERROR:      0005:        source_tar_name = archive_sources(d, '')
ERROR:      0006:    if d.getVar('SOURCE_ARCHIVE_PACKAGE_TYPE', True) !=
'srpm':
ERROR:  *** 0007:        move_tarball_deploy(d, [source_tar_name, ''])
ERROR:      0008:
ERROR:      0009:
ERROR:      0010:do_archive_linux_yocto(d)
ERROR:      0011:
ERROR: [From file: 'do_archive_linux_yocto', lineno: 7, function:
do_archive_linux_yocto]
ERROR: Function failed: do_archive_linux_yocto
ERROR: Logfile of failure stored in:
/media/sdc1/fb/mlil/build_pandaboard/tmp/work/pandaboard-poky-linux-gnueabi/linux-omap4/3.9-r1/temp/log.do_kernel_checkout.37032
ERROR: Task 1
(/media/sdc1/fb/mlil/enea-base/poky/meta-enea-lwrt/recipes-kernel/linux/linux-omap4_3.9.bb,
do_kernel_checkout) failed with exit code '1'

--------------------

My file looks like this:

--------------------

inherit kernel
require recipes-kernel/linux/linux-yocto.inc

COMPATIBLE_MACHINE = "omap4"

SRC_URI = "file://defconfig "

S = "${TOPDIR}/../kernel-linus"

KERNEL_EXTRA_ARGS = "LOADADDR=0x80008000"

LINUX_VERSION = "3.9"
LINUX_VERSION_EXTENSION = "-custom"

PR = "r1"
PV = "${LINUX_VERSION}"

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

--------------------

I notice that meta/classes/archiver.bbclass has the code mentioned in the
error messages above, and it seems like it will fail anytime S does not
contain linux-yocto.

Why is this conditional there? Does it try to protect itself from something?
Right now it seems to me like it is causing an uninitialized variable error,
but maybe I'm doing something wrong here...

Regards
Mats Liljegren



More information about the linux-yocto mailing list