From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from tim.rpsys.net (93-97-173-237.zone5.bethere.co.uk [93.97.173.237]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id AA6FFE0030F for ; Fri, 3 Feb 2012 07:01:25 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id q13F1HJt021476; Fri, 3 Feb 2012 15:01:17 GMT Received: from tim.rpsys.net ([127.0.0.1]) by localhost (tim.rpsys.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 20022-08; Fri, 3 Feb 2012 15:01:14 +0000 (GMT) Received: from [192.168.3.10] ([192.168.3.10]) (authenticated bits=0) by tim.rpsys.net (8.13.6/8.13.8) with ESMTP id q13F1AK2021470 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 3 Feb 2012 15:01:11 GMT Message-ID: <1328281275.3895.117.camel@ted> From: Richard Purdie To: Gary Thomas Date: Fri, 03 Feb 2012 15:01:15 +0000 In-Reply-To: <4F2BE0D7.7040101@mlbassoc.com> References: <4F2B1AC9.9000904@mlbassoc.com> <1328263676.3895.86.camel@ted> <4F2BE0D7.7040101@mlbassoc.com> X-Mailer: Evolution 3.2.2- Mime-Version: 1.0 X-Virus-Scanned: amavisd-new at rpsys.net Cc: Poky Project Subject: Re: require statement does not honor .bbappend X-BeenThere: poky@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Poky build system developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2012 15:01:26 -0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit On Fri, 2012-02-03 at 06:27 -0700, Gary Thomas wrote: > On 2012-02-03 03:07, Richard Purdie wrote: > > On Thu, 2012-02-02 at 16:22 -0700, Gary Thomas wrote: > >> This is really a bitbake problem, but I'll bring it up here. > >> > >> I have a statement like this in one of my recipes: > >> require xyz.bb > >> > >> If I also have within my layers a xyz.bbappend file, it gets > >> processed when I build xyz, e.g. > >> % bitbake xyz > >> but is ignored when I only 'require' that recipe. > >> > >> Should it not be always processed? > > > > No, as designed and implemented you can't bbappend to anything being > > used as an include (or require), only the final .bb file. > > Bummer. What's the rationale behind this [restriction]? Trying to implement generic "append" files to conf and inc files was going to be a significant headache for the parser and cache logic, create a pile of ordering issues and was going to mean significant code changes. The bbappend files were simple to understand and easy to implement by comparison. At the time, bbappend was seen as a sideline feature by most so we went for the less invasive and simpler implementation (which was simpler to use too). Cheers, Richard