Return-Path: Received: from nm43-vm4.bullet.mail.bf1.yahoo.com (nm43-vm4.bullet.mail.bf1.yahoo.com [216.109.114.223]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id A3914E004A1 for ; Thu, 30 Jan 2014 21:22:41 -0800 (PST) Received: from [66.196.81.172] by nm43.bullet.mail.bf1.yahoo.com with NNFMP; 31 Jan 2014 05:22:40 -0000 Received: from [98.139.212.243] by tm18.bullet.mail.bf1.yahoo.com with NNFMP; 31 Jan 2014 05:22:40 -0000 Received: from [127.0.0.1] by omp1052.mail.bf1.yahoo.com with NNFMP; 31 Jan 2014 05:22:40 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 499405.5962.bm@omp1052.mail.bf1.yahoo.com Received: (qmail 94398 invoked by uid 60001); 31 Jan 2014 05:22:40 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1391145760; bh=+15HmAjSUF+K/RQkkLHU++9aMCH4pJ2mzmSlTT//QCg=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=baTMWNFyEggWtKJ63Tnfe/3fDYHmqBVslokChQ7CVJnRZnsbwdJwaofjaaDmmie5cvli4Mg3btbM/L7wqbx+ru3qTfzDAKUu8tzoGhOdbed616WlIf1Un7wJL1rXHAJuamvr0L5Kp+A+jFxnhEMJ1izkjapwIjO0n7ka3A5HkQg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=LInZ/OyrnW32QXYmbj2Bt6pB8rEOkFTlTsIxGcAymYmxhmEZKFtKBuHpQcNwwmnZdwkaHrLpMKXd8DcO9CrPIuXhUofYpsD63ftziNuiJBiuuI8QXxgu2a0NaVyftAAg+AIjXaAGE5szH4nQiO7Y6Qjv9e+s6VmPp/bD36Ef07A=; X-YMail-OSG: zaAGnSMVM1lXnAnl4LlC2Ts69SHENgHeEdoHJQiYwAJgSYc eWh025nSNucMMNAlHZ1VY0A7OF2ztL0ZvvghXrAX3gHUVFscs8402mneCdPU YQhwDeiBWcmPIe21iC5yE7MwjbGbbINo3.qRPBRogzSzYD8Z6NUNc7Qozqvb lExhKi4R3eH2rWWf6n8YZypbqjyQ3M_CX99cCJ9JSURP4EpqiDIPyKbbQDuz dOxm2UrnOZRFXeyDwqWAMs3cHQz2SVUeECS7iBK01DsX4xIIK98VWVy8T9ma BoF9uSJL0q2slF6JUNVJqLFlJmM14tnJCNkJSq4Q12vRAW7yvWWL5VljaQ2P SYAtUtda7UMeAukwyPt2t_FPU8e4f3OeLXw8NAjluVxxvpRGBqObaJvglc0Y S.YhTpcow0TRmOA4zLPnI25mlOA1s3AjROOFpAsobw2twhYdngO.F6RJ_6lH De2BCrwZKSyvWOvUK00DkLW.Z7Tj8ObLUE_OWI8Tno6WpVFXnbVNMqgOOHHk cnhYbLYk9bGiggVNsk1DCUIUUdWjXPDskBEafObRkIb2j2Ke.ddi_ly6L54x rEDOx5Tyaqj06Qlc- Received: from [99.146.98.94] by web162606.mail.bf1.yahoo.com via HTTP; Thu, 30 Jan 2014 21:22:40 PST X-Rocket-MIMEInfo: 002.001, SSBzZWUgdGhpcyBleGFtcGxlIGluIHRoZSBkb2M6CgoKIyBXZSBoYXZlIGEgY29uZiBhbmQgY2xhc3NlcyBkaXJlY3RvcnksIGFkZCB0byBCQlBBVEgKQkJQQVRIIDo9ICIke0JCUEFUSH06JHtMQVlFUkRJUn0iCgojIFdlIGhhdmUgYSByZWNpcGVzIGRpcmVjdG9yeSBjb250YWluaW5nIGJvdGggLmJiIGFuZCAuYmJhcHBlbmQgZmlsZXMsIGFkZCB0byBCQkZJTEVTCkJCRklMRVMgOj0gIiR7QkJGSUxFU30gJHtMQVlFUkRJUn0vcmVjaXBlcy8qLyouYmIgXArCoMKgIMKgIMKgIMKgIMKgIMKgICR7TEFZRVJESVIBMAEBAQE- X-Mailer: YahooMailWebService/0.8.173.622 Message-ID: <1391145760.92041.YahooMailNeo@web162606.mail.bf1.yahoo.com> Date: Thu, 30 Jan 2014 21:22:40 -0800 (PST) From: Andrew Luo To: "yocto@yoctoproject.org" MIME-Version: 1.0 Subject: Use of BBFILE_PATTERN in conf/layer.conf X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: Andrew Luo List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 31 Jan 2014 05:22:43 -0000 Content-Type: multipart/alternative; boundary="257012059-1627880454-1391145760=:92041" --257012059-1627880454-1391145760=:92041 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I see this example in the doc:=0A=0A=0A# We have a conf and classes directo= ry, add to BBPATH=0ABBPATH :=3D "${BBPATH}:${LAYERDIR}"=0A=0A# We have a re= cipes directory containing both .bb and .bbappend files, add to BBFILES=0AB= BFILES :=3D "${BBFILES} ${LAYERDIR}/recipes/*/*.bb \=0A=A0=A0 =A0 =A0 =A0 = =A0 =A0 ${LAYERDIR}/recipes/*/*.bbappend"=0A=0ABBFILE_COLLECTIONS +=3D "eme= nlow"=0ABBFILE_PATTERN_emenlow :=3D "^${LAYERDIR}/"=0ABBFILE_PRIORITY_emenl= ow =3D "6"=0A=0AThe doc says this about the BBFILE_PATTERN variable:=0A=0AV= ariable that expands to match files from BBFILES in a particular layer. BBF= ILE_PATTERN is used in the conf/layer.conf file and must contain the name o= f the specific layer (e.g. BBFILE_PATTERN_emenlow).=0A=0Aso it sounds like = the BBFILE_PATTERN is a regular expression to filter just the bb files belo= nging to this layer from all the BBFILES. =A0But when I set this variable t= o include also the recipes dir like so:=0A=0ABBFILE_PATTERN_emenlow :=3D "^= ${LAYERDIR}/recipes/", the layer name does not show up in bitbake-layers sh= ow-recipes command. =A0I mean this is just a more specific pattern for my r= ecipe files in the particular layer right? =A0Found that in the get_file_la= yer_dir function:=0A=0A=A0 =A0 def get_file_layerdir(self, filename):=0A=A0= =A0 =A0 =A0 for layer, _, regex, _ in self.bbhandler.cooker.recipecache.bb= file_config_priorities:=0A=A0 =A0 =A0 =A0 =A0 =A0 if regex.match(filename):= =0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 for layerdir in self.bblayers:=0A=A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if regex.match(os.path.join(layerdir, 'tes= t')) and re.match(layerdir, filename):=0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 return layerdir=0A=A0 =A0 =A0 =A0 return "?"=0A=0Aso looks = like anything more specific than the ${LAYERDIR} will not match /= test test string, so it won't work. =A0Is this intentional?=0A=0AThanks,=0A= =0AAndrew=0A --257012059-1627880454-1391145760=:92041 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
I see this example in the doc:


# We have a conf and classes directory, add to BBPATH
=0A
BBPATH :=3D "${BBPATH}:${LAYERDIR}"
=0A

=0A
# We have a recipes directory= containing both .bb and .bbappend files, add to BBFILES
=0A
BBFILES :=3D "${BBFILES} ${LAYERDIR}/recipes/*/*.bb \
=0A
             ${LAYERDIR}/reci= pes/*/*.bbappend"
=0A

=0A<= div style=3D"font-family: Courier; font-size: 10px; margin-top: 0px; margin= -bottom: 0px; ">BBFILE_COLLECTIONS +=3D "emenlow"
=0A
= BBFILE_PATTERN_emenlow :=3D "^${LAYERDIR}/"
=0A
BBFILE= _PRIORITY_emenlow =3D "6"

The doc says this about the BBFILE_PATTERN= variable:

Variable that expands to match files from BBFILES in a pa= rticular layer. BBFILE_PATTERN is used in the conf/layer.conf file and must contain the name of the specific layer (e.g. BBFILE_PATTERN_emenlow).

so it sounds like the BBFILE_PATTERN is= a regular expression to filter just the bb files belonging to this layer f= rom all the BBFILES.  But when I set this variable to include also the= recipes dir like so:

BBFILE_PATTERN_emenlow :=3D "^${LAYERDIR}/recipes/", the layer name does= not show up in bitbake-layers show-recipes command.  I mean this is j= ust a more specific pattern for my recipe files in the particular layer rig= ht?  Found that in the get_file_layer_dir function:

    def get_file_layerdir(self, filename)= :
        for layer, _, regex, _ in self.bbhan= dler.cooker.recipecache.bbfile_config_priorities:
     =       if regex.match(filename):
      &= nbsp;         for layerdir in self.bblayers:
 = ;           &nb= sp;       if regex.match(os.path.join(layerdir, 'test')) and= re.match(layerdir, filename):
         = ;               return layerdir
&nb= sp;       return "?"

so l= ooks like anything more specific than the ${LAYERDIR} will not match <la= yerdir>/test test string, so it won't work.  Is this intentional?

Thanks,

Andrew

--257012059-1627880454-1391145760=:92041--