From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id D700EE0070C for ; Tue, 27 Mar 2012 09:56:02 -0700 (PDT) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 27 Mar 2012 09:56:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.67,352,1309762800"; d="scan'208";a="122284419" Received: from unknown (HELO [10.255.12.96]) ([10.255.12.96]) by orsmga001.jf.intel.com with ESMTP; 27 Mar 2012 09:56:02 -0700 Message-ID: <4F71F122.5070802@linux.intel.com> Date: Tue, 27 Mar 2012 09:56:02 -0700 From: Joshua Lock User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120316 Thunderbird/11.0 MIME-Version: 1.0 To: yocto@yoctoproject.org References: <1332830930.4380.14.camel@dongxiao-osel> <857BE142E5399E46B20FD45B9DB8A7BC0FD0B432@SHSMSX102.ccr.corp.intel.com> In-Reply-To: <857BE142E5399E46B20FD45B9DB8A7BC0FD0B432@SHSMSX102.ccr.corp.intel.com> Subject: Re: Deleting layers in Hob X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Mar 2012 16:56:02 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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