[poky] Errors attempting to build AT91SAM9x5 BSP

Bryan Evenson bevenson at melinkcorp.com
Tue Nov 13 11:17:06 PST 2012


Paul,

Thanks for the information.  From my reading of the BSP manual I'd thought I was supposed to increment the LCONF_VERSION each time I made a change to the bblayers.conf file; I appreciate the clarification.

I searched for the error message I was getting, and I think it was originating in this section of sanity.bbclass:

    # Check bblayers.conf is valid
    current_lconf = sanity_data.getVar('LCONF_VERSION', True)
    lconf_version = sanity_data.getVar('LAYER_CONF_VERSION', True)
    if current_lconf != lconf_version:
        try:
            bb.build.exec_func("check_bblayers_conf", sanity_data)
            if sanity_data.getVar("SANITY_USE_EVENTS", True) == "1":
                bb.event.fire(bb.event.SanityCheckFailed("Your conf/bblayers.conf has been automatically updated. Please close and re-run."), sanity_data)
                return
            else:
                bb.note("Your conf/bblayers.conf has been automatically updated. Please re-run %s." % os.path.basename(sys.argv[0]))
                sys.exit(0)
        except Exception:
            messages = messages + "Your version of bblayers.conf was generated from an older version of bblayers.conf.sample and there have been updates made to this file. Please compare the two files and merge any changes before continuing.\nMatching the version numbers will remove this message.\n\"meld conf/bblayers.conf ${COREBASE}/meta*/conf/bblayers.conf.sample\" is a good way to visualise the changes.\n"

Would it be helpful if the current_lconf != lconf_version check changed to have different messages when current_lconf > lconf_version and when current_lcong < lconf_version?

Thanks,
Bryan

-----Original Message-----
From: Paul Eggleton [mailto:paul.eggleton at linux.intel.com] 
Sent: Tuesday, November 13, 2012 12:53 PM
To: Bryan Evenson
Cc: poky at yoctoproject.org
Subject: Re: [poky] Errors attempting to build AT91SAM9x5 BSP

On Tuesday 13 November 2012 12:46:42 Bryan Evenson wrote:
> Here is the original bblayers.conf file before I started creating my BSP:
> 
> # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
> # changes incompatibly
> LCONF_VERSION = "6"
> 
> BBPATH = "${TOPDIR}"
> BBFILES ?= ""
> 
> BBLAYERS ?= " \
>   /media/sda3/yocto/poky-danny-8.0/meta \
>   /media/sda3/yocto/poky-danny-8.0/meta-yocto \
>   /media/sda3/yocto/poky-danny-8.0/meta-yocto-bsp \
>   "
> 
> And here is what it looks like after adding my BSP layer:
> 
> # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
> # changes incompatibly
> LCONF_VERSION = "7"
> 
> BBPATH = "${TOPDIR}"
> BBFILES ?= ""
> 
> BBLAYERS ?= " \
>   /media/sda3/yocto/poky-danny-8.0/meta \
>   /media/sda3/yocto/poky-danny-8.0/meta-yocto \
>   /media/sda3/yocto/poky-danny-8.0/meta-yocto-bsp \
>   /media/sda3/yocto/poky-danny-8.0/meta-intellihood-qemu \
>   "
> 
> Although, I just tried building again after changing the LCONF_VERSION back
> down to 6, and this time bitbake operates.  I know I'd tried that before
> and it hadn't worked.  The only difference that I can think of is that I've
> closed my terminal window and reopened it since my first posting and this
> one, which means I had to re-source the oe-init-build-env script.  Is it
> possible that this was causing my problems from before?

You shouldn't increase LCONF_VERSION unless LAYER_CONF_VERSION increases, and 
certainly it shouldn't be increased beyond the value of LAYER_CONF_VERSION 
(currently this is 6 in meta-yocto, 5 in OE-Core); why it would be telling you 
it had updated it if you did do that I don't know, that's certainly not 
intended behaviour.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



More information about the poky mailing list