From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from vsp-authed-01-02.binero.net (unknown [195.74.38.226]) by mail.openembedded.org (Postfix) with ESMTP id 8757D605B2 for ; Sat, 10 May 2014 22:31:43 +0000 (UTC) Received: from smtp01.binero.se (unknown [195.74.38.28]) by vsp-authed-01-02.binero.net (Halon Mail Gateway) with ESMTPS; Sun, 11 May 2014 00:31:56 +0200 (CEST) Received: from webmail.binero.se (unknown [195.74.38.9]) (Authenticated sender: petter@technux.se) by smtp-02-01.atm.binero.net (Postfix) with ESMTPA id B782F3A116; Sun, 11 May 2014 00:31:37 +0200 (CEST) MIME-Version: 1.0 Date: Sun, 11 May 2014 00:31:37 +0200 From: petter@technux.se To: Khem Raj In-Reply-To: References: Message-ID: X-Sender: petter@technux.se User-Agent: Binero Webmail/0.8.4 Cc: Patches and discussions about the oe-core layer Subject: Re: [PATCHv2 01/13] systemtap: remove usage of FILESPATH 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: Sat, 10 May 2014 22:31:51 -0000 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 2014-05-10 18:58 skrev Khem Raj: > On Sat, May 10, 2014 at 1:05 AM, Petter Mabäcker > wrote: > >> +FILESEXTRAPATHS_prepend := "${THISDIR}/systemtap:" > > would something like > > FILESEXTRAPATHS =. "${FILE_DIRNAME}/systemtap:" > > avoid the prepend and immediate evaluation I guess someone with deep bitbake knowledge can answer this better. But as far as I understand, you should always use immediate evaluation when using THISDIR, to be extra safe. Not sure if it's more safe to use FILE_DIRNAME if you want to avoid immediate expanding when using FILESEXTRAPATHS? The bitbake documentations says: "The operators "_append" and "_prepend" differ from the operators ".=" and "=." in that they are deferred until after parsing completes rather than being immediately applied." Not sure if above means that "=." will also immediately expand variables or not? Personally I have always used FILESEXTRAPATHS_prepend := "${THISDIR}/:" like the yocto documentation recommends. But sure if you can avoid immediate expanding in FILESEXTRPATHS, that would mean a tiny optimization. In that case perhaps the documentation should be updated as well. Looking in meta-layer both methods seems to be used.