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 5B16C7702B for ; Tue, 17 Nov 2015 05:32:01 +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 tAH5W0me006165 (version=TLSv1 cipher=AES128-SHA bits=128 verify=OK); Mon, 16 Nov 2015 21:32:00 -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; Mon, 16 Nov 2015 21:31:59 -0800 To: "Burton, Ross" References: <1447652032-31142-1-git-send-email-jian.liu@windriver.com> From: Jian Liu Message-ID: <564ABBBA.5000408@windriver.com> Date: Tue, 17 Nov 2015 13:31:38 +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: OE-core Subject: Re: [PATCH] archiver.bbclass: fix an exception of the mode configured 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: Tue, 17 Nov 2015 05:32:01 -0000 Content-Type: multipart/alternative; boundary="------------010301040503090403030904" --------------010301040503090403030904 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Hi Ross, I check the values of d.getVarFlag('do_configure', 'task') and d.getVarFlag('do_unpack', 'task') for gcc-source. But it seems that both values are 1. I use the following command to get the values, os.system("echo 'do_unpack=%s, do_configure=%s, noexec=%s, pn=%s' >> /tmp/task.txt" %(d.getVarFlag('do_unpack', 'task'),d.getVarFlag('do_configure', 'task'),d.getVarFlag('do_configure', 'noexec'),pn)) Does I miss something? I query several people about how to get the current tasks of a recipe. But I get nothing more. Thanks! Jian On 2015年11月16日 23:08, Burton, Ross wrote: > > On 16 November 2015 at 05:33, Jian Liu > wrote: > > + if d.getVarFlag('do_configure', 'noexec') == '1' or > 'do_configure' not in d.getVar('__BBTASKS', False): > > > __BBTASKS is internal so shouldn't beused unless you have an awesome > reason. Richard tells me that d.getVarFlag('do_configure', 'task') is > probably what you want. > > Ross --------------010301040503090403030904 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: 8bit Hi Ross,

I check the values of d.getVarFlag('do_configure', 'task') and d.getVarFlag('do_unpack', 'task') for gcc-source.
But it seems that both values are 1.

I use the following command to get the values,
os.system("echo 'do_unpack=%s, do_configure=%s, noexec=%s, pn=%s' >> /tmp/task.txt" %(d.getVarFlag('do_unpack', 'task'),d.getVarFlag('do_configure', 'task'),d.getVarFlag('do_configure', 'noexec'),pn))

Does I miss something?

I query several people about how to get the current tasks of a recipe. But I get nothing more.

Thanks!
Jian

On 2015年11月16日 23:08, Burton, Ross wrote:

On 16 November 2015 at 05:33, Jian Liu <jian.liu@windriver.com> wrote:
+        if d.getVarFlag('do_configure', 'noexec') == '1' or 'do_configure' not in d.getVar('__BBTASKS', False):

__BBTASKS is internal so shouldn't beused unless you have an awesome reason.  Richard tells me that d.getVarFlag('do_configure', 'task') is probably what you want.

Ross

--------------010301040503090403030904--