Openembedded Devel Discussions
 help / color / mirror / Atom feed
* Re: [PATCH] Add a waf bitbake class. (Koen Kooi)
@ 2010-06-21 19:57 Sean_Hudson
  2010-06-21 20:39 ` Tom Rini
  0 siblings, 1 reply; 5+ messages in thread
From: Sean_Hudson @ 2010-06-21 19:57 UTC (permalink / raw)
  To: openembedded-devel

On 18-06-10 21:58, Koen Kooi <k.kooi@student.utwente.nl> wrote:
------------------------------
> On 18-06-10 21:58, Sean_Hudson@Dell.com wrote:
> > Hi All,
> > 
> >   We are using waf for some of our modules and decided to add a class to make it easier to write recipes.
>
> Why is there still a staging method in there? Those have been deprecated
> for months now.

Thanks for taking the time to reply.  To answer your question, the waf class was cloned from the autotools.bbclass, so the staging stuff came from there.  Is there a better way to handle the staging?

It's a fairly trivial class, but I'm interested to hear if anyone had any additional thoughts on ways to improve the class?



^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [PATCH] Add a waf bitbake class. (Koen Kooi)
@ 2010-06-22 15:06 Sean_Hudson
  0 siblings, 0 replies; 5+ messages in thread
From: Sean_Hudson @ 2010-06-22 15:06 UTC (permalink / raw)
  To: openembedded-devel

[-- Attachment #1: Type: text/plain, Size: 1270 bytes --]

> Tom Rini wrote:
> > Sean_Hudson at Dell.com wrote:
> >> On 18-06-10 21:58, Koen Kooi <k.kooi at student.utwente.nl> wrote:
> >> ------------------------------
> >>> On 18-06-10 21:58, Sean_Hudson at Dell.com wrote:
> >>>> Hi All,
> >>>>
> >>>>   We are using waf for some of our modules and decided to add a
> >>>> class to make it easier to write recipes.
> >>> Why is there still a staging method in there? Those have been deprecated
> >>> for months now.
> >>
> >> Thanks for taking the time to reply.  To answer your question, the waf
> >> class was cloned from the autotools.bbclass, so the staging stuff came
> >> from there.  Is there a better way to handle the staging?
> >>
> >> It's a fairly trivial class, but I'm interested to hear if anyone had
> >> any additional thoughts on ways to improve the class?
> >
> > Koen's point is that for a long time now do_stage has been set as legacy
> > and 'do_install' should instead set things up such that a package can
> > then be installed into the sysroots/ directory and reused.  Like
> > autotools.bbclass does today :)
>
> And to be more clear, see is_legacy_staging in staging.bbclass

Thanks for clearing that up.  I've attached an updated version that drops the staging function.

[-- Attachment #2: waf.bbclass --]
[-- Type: application/octet-stream, Size: 516 bytes --]

# WAF project class.

DEPENDS += python

# Conditionally set the verbose option.
# WAF_VERBOSE="-v"

waf_do_compile() {
	./waf ${WAF_VERBOSE} build 
}

waf_do_clean() {
	./waf ${WAF_VERBOSE} clean
}

waf_do_configure() {
	if [ -x ${S}/waf ]; then
		${S}/waf ${WAF_VERBOSE} configure --prefix=${prefix} ${EXTRA_OECONF} "$@"
	else
		oefatal "executable waf script not found"
	fi
}

waf_do_install() {
	./waf ${WAF_VERBOSE} install --destdir="${D}" "$@"
}

EXPORT_FUNCTIONS do_compile do_clean do_configure do_install 

^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <AANLkTilMpRi2oaQWKO7BcgkhZeVojh7GA_-5_3SDG1A4@mail.gmail.com>]

end of thread, other threads:[~2010-07-30 21:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-21 19:57 [PATCH] Add a waf bitbake class. (Koen Kooi) Sean_Hudson
2010-06-21 20:39 ` Tom Rini
2010-06-21 20:58   ` Tom Rini
  -- strict thread matches above, loose matches on Subject: below --
2010-06-22 15:06 Sean_Hudson
     [not found] <AANLkTilMpRi2oaQWKO7BcgkhZeVojh7GA_-5_3SDG1A4@mail.gmail.com>
     [not found] ` <113134CF306E8E4CACC27BE5937261B20931AA0A82@AUSX7MCPS303.AMER.DELL.COM>
     [not found]   ` <AANLkTikN2OKgSvwW4vQ4h5tegaxdkDmYZpmMK7Fy+a1g@mail.gmail.com>
     [not found]     ` <113134CF306E8E4CACC27BE5937261B20931FB4CF0@AUSX7MCPS303.AMER.DELL.COM>
2010-07-30 21:41       ` AJ ONeal

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