All of lore.kernel.org
 help / color / mirror / Atom feed
* kernel.bbclass auto PR generation
@ 2017-04-18  8:03 Michael Thalmeier
  0 siblings, 0 replies; only message in thread
From: Michael Thalmeier @ 2017-04-18  8:03 UTC (permalink / raw)
  To: Richard Purdie; +Cc: openembedded-core

Hi,

In our build environment we have a buildbot building nightly
clean builds of our images and a PRSERV instance managing the
auto PR generation.

With this setup we encountered the problem, that on each build
the kernel PR is incremented by 3, even if nothing has changed,
so the PR should be equal to the last value.

After investigating I found that currently the kernel bbclass
will call package_get_auto_pr three times (do_package, do_install,
do_deploy). As the package_get_auto_pr function uses the BB_TASKHASH
variable, that is different for each of these tasks,
on each call the PR is incremented by 1.

This has two different effects:
1. The kernel and modules image in the deploy directory do not
   have the same PR as the kernel package itself.
2. Each time a clean build of the kernel is performed, the PR
   is incremented by three instead of staying at the previous value.

I found that this was introduced with commit:
1392f95 kernel.bbclass: Ensure we have correct version information in deploy data

How can this behaviour be fixed?

Best regards,
Michael
-- 

Michael Thalmeier
(Development)
HALE electronic GmbH
Eugen-Müller-Straße 18, 5020 Salzburg, Austria
Tel: +43 (662) 439011 0
Fax: +43 (662) 439011 9
michael.thalmeier@hale.at
Firmenbuchnummer: FN 66801m HG Salzburg


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-04-18  8:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-18  8:03 kernel.bbclass auto PR generation Michael Thalmeier

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.