From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail5.wrs.com (mail5.windriver.com [192.103.53.11]) by mail.openembedded.org (Postfix) with ESMTP id 6484F7729B for ; Fri, 13 Nov 2015 08:17:02 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id tAD8H1Tn019557 (version=TLSv1 cipher=AES128-SHA bits=128 verify=OK); Fri, 13 Nov 2015 00:17:01 -0800 Received: from [128.224.162.138] (128.224.162.138) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server id 14.3.248.2; Fri, 13 Nov 2015 00:17:00 -0800 To: Khem Raj References: <1446445418-31492-1-git-send-email-jian.liu@windriver.com> <56387CE7.5040907@windriver.com> <6A9FCF09-82E7-4A16-AEDD-D081F67704E7@gmail.com> <563ABB70.8060400@windriver.com> From: Jian Liu Message-ID: <56459C6D.90202@windriver.com> Date: Fri, 13 Nov 2015 16:16:45 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Cc: Patches and discussions about the oe-core layer Subject: Re: [PATCH] archiver.bbclass: do checkout for kernel X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Nov 2015 08:17:06 -0000 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Hi Raj, I tried meta-rasberrypi with my patch and it works well. The tasks of the recipe linux-rasberrypi is similar with linux-yocto and linux-rasberrypi also inherits linux-yocto.bbclass I read the codes of archiver and it seems that kernel is recognised by "bb.data.inherits_class('kernel-yocto', d)" when kernel needs to be handled specially What do you think? Thanks! Jian On 2015年11月05日 10:22, Khem Raj wrote: > On Wed, Nov 4, 2015 at 6:14 PM, Jian Liu wrote: >> Hi, >> >> All kernels I list bellow will perform do_fetch(), do_unpack(), >> do_kernel_checkout(). >> do_unpack() will put a bare git repo under WORKDIR and then >> do_kernel_checkout() >> will move the bare repo to bitbake/tmp/work-share/> name>/kernel-source(value of variable S), >> then performing "git checkout". >> >> So do_ar_original must wait until do_kernel_checkout() is completed and then >> make tarball using the code under S. >> Do I make that clear? >> >> >> You refer to kernels other than linux-yocto. Can you give me an example? >> I do not know how to build such kernel. > Add another BSP layer e.g. meta-raspberrypi to your bblayers.conf > and then MACHINE=raspberrypi2 > > and see what you are trying to do still holds. > >> Thanks! >> Jian >> >> >> On 2015年11月04日 13:57, Khem Raj wrote: >>>> On Nov 3, 2015, at 1:22 AM, Jian Liu wrote: >>>>> Hi, >>>>> >>>>> I test linux-dummy linux-yocto-dev linux-yocto-rt linux-yocto-tiny and >>>>> the result is as follows, >>>>> >>>>> linux-dummy: this package just meets some dependency and there is no >>>>> source code for it. >>>>> The patch does not impact it >>>>> linux-yocto, linux-yocto-dev, linux-yocto-rt, linux-yocto-tiny: The S >>>>> variable of all packages is set to STAGING_KERNEK_DIR. >>>>> do_fetch and do_unpack just leave a bare git repo >>>>> of kernel and do_kernel_checkout gets the source code >>>>> >>> does it cover the case when kernel is not linux-yocto was basic question, >>> I am not clear if thats covered in any of above >>> >>>>> Thanks! >>