From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from astoria.ccjclearline.com (astoria.ccjclearline.com [64.235.106.9]) by mail.openembedded.org (Postfix) with ESMTP id 72BCF70253 for ; Wed, 9 Jul 2014 15:14:51 +0000 (UTC) Received: from [69.196.158.250] (port=45814 helo=crashcourse.ca) by astoria.ccjclearline.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.80) (envelope-from ) id 1X4ta8-0003pu-9u for bitbake-devel@lists.openembedded.org; Wed, 09 Jul 2014 11:14:52 -0400 Date: Wed, 9 Jul 2014 11:14:43 -0400 (EDT) From: "Robert P. J. Day" X-X-Sender: rpjday@localhost To: BitBake developer list Message-ID: User-Agent: Alpine 2.11 (LFD 23 2013-08-11) MIME-Version: 1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - astoria.ccjclearline.com X-AntiAbuse: Original Domain - lists.openembedded.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - crashcourse.ca X-Source: X-Source-Args: X-Source-Dir: Subject: possible clarification of EXPORT_FUNCTIONS for user manual X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jul 2014 15:14:57 -0000 Content-Type: TEXT/PLAIN; charset=US-ASCII so, just to make sure i'm understanding this correctly, in section 3.4.5 of BB user manual, discussion of EXPORT_FUNCTIONS talks about the general concept of exporting *functions*, but the entire section uses exclusively "do_" examples, which might mislead the reader into thinking it's good only for *tasks*. i decided to look through the oe-core layer for examples of exporting an actual function, and i found all of one example -- in meta/classes/debian.bbclass: python debian_package_name_hook () { ... snip ... } ... EXPORT_FUNCTIONS package_name_hook which seems like a valid example of exporting a function, except i can't find a single example of this function being used anywhere else. am i missing something? anyway, i guess my point is that that section could be tweaked to emphasize that exporting works for both functions and tasks, although the only function example i found seems unused. thoughts? rday -- ======================================================================== Robert P. J. Day Ottawa, Ontario, CANADA http://crashcourse.ca Twitter: http://twitter.com/rpjday LinkedIn: http://ca.linkedin.com/in/rpjday ========================================================================