* Overriding bitbake functions
@ 2017-06-06 7:16 vijaikumar k
2017-06-07 6:26 ` Paul Eggleton
0 siblings, 1 reply; 4+ messages in thread
From: vijaikumar k @ 2017-06-06 7:16 UTC (permalink / raw)
To: bitbake-devel
Hi All,
I need to override an append function in bitbake. Just wondering if
there is a way to do it.
do_configure()
do_configure_append()
do_configure_append_mymachine()
I want to replace/override do_configure_append() with
do_configure_append_mymachine(). Is this possible? I do not want to
disturb do_configure and do_configure_append function. All the
functions are in the same bb file.
Thanks,
Vijai Kumar K
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Overriding bitbake functions
2017-06-06 7:16 Overriding bitbake functions vijaikumar k
@ 2017-06-07 6:26 ` Paul Eggleton
2017-06-07 6:27 ` vijaikumar k
0 siblings, 1 reply; 4+ messages in thread
From: Paul Eggleton @ 2017-06-07 6:26 UTC (permalink / raw)
To: vijaikumar k; +Cc: bitbake-devel
On Tuesday, 6 June 2017 9:16:02 AM CEST vijaikumar k wrote:
> I need to override an append function in bitbake. Just wondering if
> there is a way to do it.
>
> do_configure()
> do_configure_append()
> do_configure_append_mymachine()
>
> I want to replace/override do_configure_append() with
> do_configure_append_mymachine(). Is this possible? I do not want to
> disturb do_configure and do_configure_append function. All the
> functions are in the same bb file.
_append operations stack up, they can't override eachother, so if MACHINE is
"mymachine" then the final do_configure that gets executed will consist of
do_configure, do_configure_append, and do_configure_append_mymachine. You
should set the contents of those accordingly.
Cheers,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Overriding bitbake functions
2017-06-07 6:26 ` Paul Eggleton
@ 2017-06-07 6:27 ` vijaikumar k
0 siblings, 0 replies; 4+ messages in thread
From: vijaikumar k @ 2017-06-07 6:27 UTC (permalink / raw)
To: Paul Eggleton; +Cc: bitbake-devel
[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]
Thanks Paul. That was really helpful.
On Jun 7, 2017 11:56 AM, "Paul Eggleton" <paul.eggleton@linux.intel.com>
wrote:
> On Tuesday, 6 June 2017 9:16:02 AM CEST vijaikumar k wrote:
> > I need to override an append function in bitbake. Just wondering if
> > there is a way to do it.
> >
> > do_configure()
> > do_configure_append()
> > do_configure_append_mymachine()
> >
> > I want to replace/override do_configure_append() with
> > do_configure_append_mymachine(). Is this possible? I do not want to
> > disturb do_configure and do_configure_append function. All the
> > functions are in the same bb file.
>
> _append operations stack up, they can't override eachother, so if MACHINE
> is
> "mymachine" then the final do_configure that gets executed will consist of
> do_configure, do_configure_append, and do_configure_append_mymachine. You
> should set the contents of those accordingly.
>
> Cheers,
> Paul
>
> --
>
> Paul Eggleton
> Intel Open Source Technology Centre
>
[-- Attachment #2: Type: text/html, Size: 1399 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Overriding bitbake functions
@ 2017-06-06 7:10 vijaikumar k
0 siblings, 0 replies; 4+ messages in thread
From: vijaikumar k @ 2017-06-06 7:10 UTC (permalink / raw)
To: bitbake-devel
[-- Attachment #1: Type: text/plain, Size: 432 bytes --]
Hi All,
I need to override an append function in bitbake. Just wondering if there
is a way to do it.
do_configure()
do_configure_append()
do_configure_append_mymachine()
I want to replace/override do_configure_append() with
do_configure_append_mymachine(). Is this possible? I do not want to disturb
do_configure and do_configure_append function. All the functions are in the
same bb file.
Thanks,
Vijai Kumar K
[-- Attachment #2: Type: text/html, Size: 1831 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-06-07 6:27 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-06 7:16 Overriding bitbake functions vijaikumar k
2017-06-07 6:26 ` Paul Eggleton
2017-06-07 6:27 ` vijaikumar k
-- strict thread matches above, loose matches on Subject: below --
2017-06-06 7:10 vijaikumar k
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.