Openembedded Core Discussions
 help / color / mirror / Atom feed
* How to reuse code in oe-core environment
@ 2011-06-29 23:02 Andreas Mueller
  2011-06-29 23:57 ` Khem Raj
  2011-06-29 23:59 ` Chris Larson
  0 siblings, 2 replies; 6+ messages in thread
From: Andreas Mueller @ 2011-06-29 23:02 UTC (permalink / raw)
  To: openembedded-core

Hi,

I am playing around with oe-core try to find a way of reusing code for multiple 
recipes. In oe I did create foo.inc with

foo() {
	# code to reuse
}

and called foo from several recipes. In oe-core the run.* scripts are much more 
stripped of unnecessary.  All the code included by 'require' seems to miss, so 
the function foo() will not be found. 

My searches for examples did not lead to a hook so what is the suggested 
solution for reusing code for multiple recipes in oe-core?

regards

Andreas



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-06-30  0:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-29 23:02 How to reuse code in oe-core environment Andreas Mueller
2011-06-29 23:57 ` Khem Raj
2011-06-29 23:59 ` Chris Larson
2011-06-30  0:32   ` Mark Hatle
2011-06-30  0:42     ` Andreas Mueller
2011-06-30  0:39   ` Andreas Mueller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox