* [PATCH 1/1] toaster: add buildstats to toaster config file
@ 2013-12-18 19:26 Alex DAMIAN
2013-12-19 21:21 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Alex DAMIAN @ 2013-12-18 19:26 UTC (permalink / raw)
To: bitbake-devel; +Cc: Alexandru DAMIAN
From: Alexandru DAMIAN <alexandru.damian@intel.com>
Toaster needs buildstats to be enabled in order to
be able to collect task running stats. This patch
adds buildstats to the running configuration in toaster mode.
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
---
bin/toaster | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/bin/toaster b/bin/toaster
index 38e71ac..d6c3175 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -61,10 +61,13 @@ function webserverStartAll()
}
# Helper functions to add a special configuration file
+function initConfiguration()
+{
+ echo "#Created by toaster start script" > ${BUILDDIR}/conf/$1
+}
function addtoConfiguration()
{
- echo "#Created by toaster start script" > ${BUILDDIR}/conf/$2
echo $1 >> ${BUILDDIR}/conf/$2
}
@@ -167,7 +170,9 @@ fi
case $CMD in
start )
start_success=1
+ initConfiguration toaster.conf
addtoConfiguration "INHERIT+=\"toaster buildhistory\"" toaster.conf
+ addtoConfiguration "USER_CLASSES+=\"buildstats\"" toaster.conf
if ! webserverStartAll; then
echo "Failed ${CMD}."
return 4
--
1.8.3.2
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/1] toaster: add buildstats to toaster config file
2013-12-18 19:26 [PATCH 1/1] toaster: add buildstats to toaster config file Alex DAMIAN
@ 2013-12-19 21:21 ` Richard Purdie
2014-01-03 12:56 ` Damian, Alexandru
0 siblings, 1 reply; 3+ messages in thread
From: Richard Purdie @ 2013-12-19 21:21 UTC (permalink / raw)
To: Alex DAMIAN; +Cc: bitbake-devel
On Wed, 2013-12-18 at 19:26 +0000, Alex DAMIAN wrote:
> From: Alexandru DAMIAN <alexandru.damian@intel.com>
>
> Toaster needs buildstats to be enabled in order to
> be able to collect task running stats. This patch
> adds buildstats to the running configuration in toaster mode.
>
> Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
> ---
> bin/toaster | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/bin/toaster b/bin/toaster
> index 38e71ac..d6c3175 100755
> --- a/bin/toaster
> +++ b/bin/toaster
> @@ -61,10 +61,13 @@ function webserverStartAll()
> }
>
> # Helper functions to add a special configuration file
> +function initConfiguration()
> +{
> + echo "#Created by toaster start script" > ${BUILDDIR}/conf/$1
> +}
>
> function addtoConfiguration()
> {
> - echo "#Created by toaster start script" > ${BUILDDIR}/conf/$2
> echo $1 >> ${BUILDDIR}/conf/$2
> }
>
> @@ -167,7 +170,9 @@ fi
> case $CMD in
> start )
> start_success=1
> + initConfiguration toaster.conf
> addtoConfiguration "INHERIT+=\"toaster buildhistory\"" toaster.conf
> + addtoConfiguration "USER_CLASSES+=\"buildstats\"" toaster.conf
> if ! webserverStartAll; then
> echo "Failed ${CMD}."
> return 4
Why not just add this to the INHERIT? I'm trying to figure out if
USER_CLASSES is special in some way and when we should use one and when
we should use the other...
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH 1/1] toaster: add buildstats to toaster config file
2013-12-19 21:21 ` Richard Purdie
@ 2014-01-03 12:56 ` Damian, Alexandru
0 siblings, 0 replies; 3+ messages in thread
From: Damian, Alexandru @ 2014-01-03 12:56 UTC (permalink / raw)
To: Richard Purdie; +Cc: bitbake-devel
[-- Attachment #1: Type: text/plain, Size: 1951 bytes --]
Just now saw this email - sorry for the delay,
I used USER_CLASSES just because this is how it's enabled in the default
local.conf ...
Alex
On Thu, Dec 19, 2013 at 9:21 PM, Richard Purdie <
richard.purdie@linuxfoundation.org> wrote:
> On Wed, 2013-12-18 at 19:26 +0000, Alex DAMIAN wrote:
> > From: Alexandru DAMIAN <alexandru.damian@intel.com>
> >
> > Toaster needs buildstats to be enabled in order to
> > be able to collect task running stats. This patch
> > adds buildstats to the running configuration in toaster mode.
> >
> > Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
> > ---
> > bin/toaster | 7 ++++++-
> > 1 file changed, 6 insertions(+), 1 deletion(-)
> >
> > diff --git a/bin/toaster b/bin/toaster
> > index 38e71ac..d6c3175 100755
> > --- a/bin/toaster
> > +++ b/bin/toaster
> > @@ -61,10 +61,13 @@ function webserverStartAll()
> > }
> >
> > # Helper functions to add a special configuration file
> > +function initConfiguration()
> > +{
> > + echo "#Created by toaster start script" > ${BUILDDIR}/conf/$1
> > +}
> >
> > function addtoConfiguration()
> > {
> > - echo "#Created by toaster start script" > ${BUILDDIR}/conf/$2
> > echo $1 >> ${BUILDDIR}/conf/$2
> > }
> >
> > @@ -167,7 +170,9 @@ fi
> > case $CMD in
> > start )
> > start_success=1
> > + initConfiguration toaster.conf
> > addtoConfiguration "INHERIT+=\"toaster buildhistory\""
> toaster.conf
> > + addtoConfiguration "USER_CLASSES+=\"buildstats\"" toaster.conf
> > if ! webserverStartAll; then
> > echo "Failed ${CMD}."
> > return 4
>
> Why not just add this to the INHERIT? I'm trying to figure out if
> USER_CLASSES is special in some way and when we should use one and when
> we should use the other...
>
> Cheers,
>
> Richard
>
>
>
--
Alex Damian
Yocto Project
SSG / OTC
[-- Attachment #2: Type: text/html, Size: 2909 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-03 12:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-18 19:26 [PATCH 1/1] toaster: add buildstats to toaster config file Alex DAMIAN
2013-12-19 21:21 ` Richard Purdie
2014-01-03 12:56 ` Damian, Alexandru
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.