All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joshua Lock <josh@linux.intel.com>
To: yocto@yoctoproject.org
Subject: Re: Deleting layers in Hob
Date: Tue, 27 Mar 2012 09:56:02 -0700	[thread overview]
Message-ID: <4F71F122.5070802@linux.intel.com> (raw)
In-Reply-To: <857BE142E5399E46B20FD45B9DB8A7BC0FD0B432@SHSMSX102.ccr.corp.intel.com>

On 27/03/12 00:19, Lu, Lianhao wrote:
>
>> -----Original Message-----
>> From: yocto-bounces@yoctoproject.org [mailto:yocto-bounces@yoctoproject.org] On Behalf Of Xu, Dongxiao
>> Sent: Tuesday, March 27, 2012 2:49 PM
>> To: yocto
>> Subject: [yocto] Deleting layers in Hob
>>
>> When using Hob in Yocto Project, I found a issue when deleting layers. I
>> think I ever raised this problem before.
>>
>> Let me briefly introduce how layer removal works in Hob. When user
>> changes a layer, it will following the below steps
>> 1) init the cooker.
>> 2) set new layers to cooker.
>> 3) parse configuration files.
>> 4) get available machines, distros, SDKs, etc.
>>
>> As we know, if we source oe-init-build-env in Yocto project environment,
>> we will have DISTRO="poky" set in local.conf by default, where the
>> "poky" DISTRO comes from the meta-yocto layer. If user deletes
>> meta-yocto in Hob, and then error will happen when bitbake parsing the
>> local.conf, since it could not find where the "poky" DISTRO is defined.
>>
>> Even if we are able to successfully removed the meta-yocto layer by
>> removing the DISTRO definition in local.conf, system will report another
>> issue that:
>>
>> Your configuration is using stamp files including the sstate hash but
>> your build directory was built with stamp files that do not include
>> this.
>> To continue, either rebuild or switch back to the OEBasic signature
>> handler with BB_SIGNATURE_HANDLER = 'OEBasic'.
>>
>> This is because BB_SIGNATURE_HANDLER = "OEBasic" is also defined in
>> meta-yocto layer (poky.conf).
>
> Meta-yocto is using OEBasicHash as default signature handler(ABI_VERSION=8, see ${TMPDIR}/abi_version), while oe-core is still using the OEBasic(ABI_VERSION=7). This means the oe-core can not reuse the stamp files generated by meta-yocto.

Could we workaround the incompatibility by setting BB_SIGNATURE_HANDLER 
= "OEBasic" somewhere in meta-hob?

Cheers,
Joshua
-- 
Joshua '贾詡' Lock
         Yocto Project "Johannes factotum"
         Intel Open Source Technology Centre


  reply	other threads:[~2012-03-27 16:56 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-27  6:48 Deleting layers in Hob Xu, Dongxiao
2012-03-27  7:19 ` Lu, Lianhao
2012-03-27 16:56   ` Joshua Lock [this message]
2012-03-29 11:05     ` Barros Pena, Belen
2012-03-29 12:00       ` Xu, Dongxiao
2012-03-29 15:47         ` Barros Pena, Belen
2012-03-30  6:32       ` Khem Raj
2012-03-30 11:26         ` Barros Pena, Belen
2012-03-30 12:19           ` Paul Eggleton
2012-04-02 10:48             ` Barros Pena, Belen
2012-04-02 10:55               ` Paul Eggleton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F71F122.5070802@linux.intel.com \
    --to=josh@linux.intel.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.