Return-Path: Received: from m13-38.163.com (unknown [220.181.13.38]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 3E68CE0034C for ; Thu, 20 Dec 2012 01:46:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Date:From:To:Cc:Subject:In-Reply-To: References:Content-Type:MIME-Version:Message-ID; bh=ocjWroP8D87J CgeLpqoTgyS6RESyQMHAoWLrrfGOvZY=; b=ppnmCsuBysXu67aqClYjh7f2rbBk S5flpy0jlI+5+FgCYfJNDz2vo7Wgo/aWePJ6/QMRzo33E5kMlZR19IeWIX1xTBk1 2zNTrmHG6NiSXb41cAjW2k2UT4eHIIvPZhEi9k9b6Aklg5557GvqfpfGs1IPe+2+ iYPEm6LOCkr4W2k= Received: from huanmateme$163.com ( [61.148.56.138] ) by ajax-webmail-wmsvr38 (Coremail) ; Thu, 20 Dec 2012 17:45:49 +0800 (CST) X-Originating-IP: [61.148.56.138] Date: Thu, 20 Dec 2012 17:45:49 +0800 (CST) From: Biao To: Biao X-Priority: 3 X-Mailer: Coremail Webmail Server Version SP_ntes V3.5 build 20121210(21001.5125.5051) Copyright (c) 2002-2012 www.mailtech.cn 163com In-Reply-To: <4eb75b0d.18633.13bb736a9dc.Coremail.huanmateme@163.com> References: <4eb75b0d.18633.13bb736a9dc.Coremail.huanmateme@163.com> MIME-Version: 1.0 Message-ID: <41b77916.1b6e6.13bb7b45fe7.Coremail.huanmateme@163.com> X-CM-TRANSID: JsGowGDJcEJO3tJQ6K0RAA--.5585W X-CM-SenderInfo: xkxd0z5dwhzvi6rwjhhfrp/xtbBSQuLgE9otbBLywABsq X-Coremail-Antispam: 1U5529EdanIXcx71UUUUU7vcSsGvfC2KfnxnUU== Cc: yocto Subject: Re: An added task is not run by bitbake, why is that ? 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: Thu, 20 Dec 2012 09:46:21 -0000 Content-Type: multipart/alternative; boundary="----=_Part_414743_1141716602.1355996749798" ------=_Part_414743_1141716602.1355996749798 Content-Type: text/plain; charset=GBK Content-Transfer-Encoding: 7bit Now i got it, when i issue "bitbake dummy", it will only try to do a "build" task, which is not DEPENDS on my task. Thanks, At 2012-12-20 15:28:31,Biao wrote: Hi All, An added task is not run by bitbake, why is that ? The meta-test layer setup is ok, you can forget this. After i issue bitbake dummy, i found that it runs succeed with the tasks in base.bbclass, but my dummy1 is not run, why is that? meta-test/dummy/dummy.0.0.bb
DESCRIPTION = "A simply dummy package"


do_dummy0 () {
        bbnote "Doing Dummy0."
}


do_dummy1 () {
        bbnote "Doing Dummy1."
}


do_dummy2 () {
        bbnote "Doing Dummy2."
}


addtask dummy1 before do_dummy2 after do_dummy0
Thanks, Biao ------=_Part_414743_1141716602.1355996749798 Content-Type: text/html; charset=GBK Content-Transfer-Encoding: 7bit
Now i got it, when i issue "bitbake dummy", it will only try to do a "build" task, which is not DEPENDS on my task.
Thanks,

At 2012-12-20 15:28:31,Biao <huanmateme@163.com> wrote:
Hi All,

 An added task is not run by bitbake, why is that ?
The meta-test layer setup is ok, you can forget this.

After i issue bitbake dummy, i found that it runs succeed with the tasks in base.bbclass, but my dummy1 is not run, why is that?

meta-test/dummy/dummy.0.0.bb
<pre>
DESCRIPTION = "A simply dummy package"

do_dummy0 () {
        bbnote "Doing Dummy0."
}

do_dummy1 () {
        bbnote "Doing Dummy1."
}

do_dummy2 () {
        bbnote "Doing Dummy2."
}

addtask dummy1 before do_dummy2 after do_dummy0
</pre>

Thanks,
Biao
------=_Part_414743_1141716602.1355996749798--