From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail1.windriver.com (mail1.windriver.com [147.11.146.13]) by mail.openembedded.org (Postfix) with ESMTP id 2B7C1731E5 for ; Tue, 22 Dec 2015 05:08:48 +0000 (UTC) Received: from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com [147.11.189.40]) by mail1.windriver.com (8.15.2/8.15.1) with ESMTPS id tBM58m6E021777 (version=TLSv1 cipher=AES128-SHA bits=128 verify=FAIL); Mon, 21 Dec 2015 21:08:48 -0800 (PST) Received: from [128.224.162.169] (128.224.162.169) by ALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server (TLS) id 14.3.248.2; Mon, 21 Dec 2015 21:08:48 -0800 To: "Burton, Ross" References: <1447652032-31142-1-git-send-email-jian.liu@windriver.com> <564ABBBA.5000408@windriver.com> From: Jian Liu Message-ID: <5678DAD1.9070801@windriver.com> Date: Tue, 22 Dec 2015 13:08:33 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <564ABBBA.5000408@windriver.com> X-Originating-IP: [128.224.162.169] 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, 22 Dec 2015 05:08:49 -0000 Content-Type: multipart/alternative; boundary="------------050700010207000203020107" --------------050700010207000203020107 Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit Ping On 2015年11月17日 13:31, Jian Liu wrote: > 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 > > > --------------050700010207000203020107 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: 8bit Ping

On 2015年11月17日 13:31, Jian Liu wrote:
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




--------------050700010207000203020107--