* [PATCH] populate_sdk_base.bbclass: Make it possible to overrise the create_shar method of populate_sdk_base.
@ 2012-10-03 12:51 Martin Ertsaas
2012-10-08 6:20 ` Martin Ertsås
0 siblings, 1 reply; 3+ messages in thread
From: Martin Ertsaas @ 2012-10-03 12:51 UTC (permalink / raw)
To: openembedded-core; +Cc: Thomas Kristensen
From: Thomas Kristensen <thkriste@cisco.com>
If you wish to change the install/unpack method of the sdk, this can now be done by making
your own create_shar method, and setting a POPULATE_SDK_CREATE_SHAR_COMMAND variable to your
new create_shar function.
Signed-off-by: Thomas Kristensen <thkriste@cisco.com>
Signed-off-by: Martin Ertsaas <mertsas@cisco.com>
---
meta/classes/populate_sdk_base.bbclass | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index 1c151d7..53b11a3 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -24,6 +24,8 @@ PID = "${@os.getpid()}"
EXCLUDE_FROM_WORLD = "1"
+POPULATE_SDK_CREATE_SHAR_COMMAND ?= "create_shar"
+
python () {
# If we don't do this we try and run the mapping hooks while parsing which is slow
# bitbake should really provide something to let us know this...
@@ -56,7 +58,7 @@ fakeroot python do_populate_sdk() {
bb.build.exec_func("tar_sdk", d)
- bb.build.exec_func("create_shar", d)
+ bb.build.exec_func(d.getVar("POPULATE_SDK_CREATE_SHAR_COMMAND", True), d)
}
fakeroot populate_sdk_image() {
--
1.7.8.6
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] populate_sdk_base.bbclass: Make it possible to overrise the create_shar method of populate_sdk_base.
2012-10-03 12:51 [PATCH] populate_sdk_base.bbclass: Make it possible to overrise the create_shar method of populate_sdk_base Martin Ertsaas
@ 2012-10-08 6:20 ` Martin Ertsås
2012-10-08 9:58 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Martin Ertsås @ 2012-10-08 6:20 UTC (permalink / raw)
To: Martin Ertsaas; +Cc: openembedded-core
On 10/03/12 14:51, Martin Ertsaas wrote:
> From: Thomas Kristensen <thkriste@cisco.com>
>
> If you wish to change the install/unpack method of the sdk, this can now be done by making
> your own create_shar method, and setting a POPULATE_SDK_CREATE_SHAR_COMMAND variable to your
> new create_shar function.
>
> Signed-off-by: Thomas Kristensen <thkriste@cisco.com>
> Signed-off-by: Martin Ertsaas <mertsas@cisco.com>
> ---
> meta/classes/populate_sdk_base.bbclass | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
> index 1c151d7..53b11a3 100644
> --- a/meta/classes/populate_sdk_base.bbclass
> +++ b/meta/classes/populate_sdk_base.bbclass
> @@ -24,6 +24,8 @@ PID = "${@os.getpid()}"
>
> EXCLUDE_FROM_WORLD = "1"
>
> +POPULATE_SDK_CREATE_SHAR_COMMAND ?= "create_shar"
> +
> python () {
> # If we don't do this we try and run the mapping hooks while parsing which is slow
> # bitbake should really provide something to let us know this...
> @@ -56,7 +58,7 @@ fakeroot python do_populate_sdk() {
>
> bb.build.exec_func("tar_sdk", d)
>
> - bb.build.exec_func("create_shar", d)
> + bb.build.exec_func(d.getVar("POPULATE_SDK_CREATE_SHAR_COMMAND", True), d)
> }
>
> fakeroot populate_sdk_image() {
Have anyone had the change to look at this? Would greatly appreciate
some feedback on this. Might also consider making similar overloads for
tar_sdk and friends as well if this is something the community wants.
- Martin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] populate_sdk_base.bbclass: Make it possible to overrise the create_shar method of populate_sdk_base.
2012-10-08 6:20 ` Martin Ertsås
@ 2012-10-08 9:58 ` Richard Purdie
0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-10-08 9:58 UTC (permalink / raw)
To: Martin Ertsås; +Cc: openembedded-core
On Mon, 2012-10-08 at 08:20 +0200, Martin Ertsås wrote:
> On 10/03/12 14:51, Martin Ertsaas wrote:
> > From: Thomas Kristensen <thkriste@cisco.com>
> >
> > If you wish to change the install/unpack method of the sdk, this can now be done by making
> > your own create_shar method, and setting a POPULATE_SDK_CREATE_SHAR_COMMAND variable to your
> > new create_shar function.
> >
> > Signed-off-by: Thomas Kristensen <thkriste@cisco.com>
> > Signed-off-by: Martin Ertsaas <mertsas@cisco.com>
> > ---
> > meta/classes/populate_sdk_base.bbclass | 4 +++-
> > 1 files changed, 3 insertions(+), 1 deletions(-)
> >
> > diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
> > index 1c151d7..53b11a3 100644
> > --- a/meta/classes/populate_sdk_base.bbclass
> > +++ b/meta/classes/populate_sdk_base.bbclass
> > @@ -24,6 +24,8 @@ PID = "${@os.getpid()}"
> >
> > EXCLUDE_FROM_WORLD = "1"
> >
> > +POPULATE_SDK_CREATE_SHAR_COMMAND ?= "create_shar"
> > +
> > python () {
> > # If we don't do this we try and run the mapping hooks while parsing which is slow
> > # bitbake should really provide something to let us know this...
> > @@ -56,7 +58,7 @@ fakeroot python do_populate_sdk() {
> >
> > bb.build.exec_func("tar_sdk", d)
> >
> > - bb.build.exec_func("create_shar", d)
> > + bb.build.exec_func(d.getVar("POPULATE_SDK_CREATE_SHAR_COMMAND", True), d)
> > }
> >
> > fakeroot populate_sdk_image() {
> Have anyone had the change to look at this? Would greatly appreciate
> some feedback on this. Might also consider making similar overloads for
> tar_sdk and friends as well if this is something the community wants.
My main feedback would be about the variable name. Something like
"SDK_PACKAGING_FUNC" might better describe what its doing.
This is coming in a bit late to make it into the release but which a
rename, will make it into master in due course.
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-10-08 10:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-03 12:51 [PATCH] populate_sdk_base.bbclass: Make it possible to overrise the create_shar method of populate_sdk_base Martin Ertsaas
2012-10-08 6:20 ` Martin Ertsås
2012-10-08 9:58 ` Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox