[OE-core] [PATCH] kernel.bbclass: improve reproducibility
Richard Purdie
richard.purdie at linuxfoundation.org
Tue Apr 3 14:45:48 UTC 2018
On Tue, 2018-04-03 at 10:11 -0400, Bruce Ashfield wrote:
> On Tue, Apr 3, 2018 at 9:59 AM, Richard Purdie
> <richard.purdie at linuxfoundation.org> wrote:
> >
> > On Tue, 2018-04-03 at 08:58 -0400, Bruce Ashfield wrote:
> > >
> > > On Tue, Apr 3, 2018 at 12:23 AM, Jonathan Liu <net147 at gmail.com>
> > > wrote:
> > > >
> > > >
> > > > Set KBUILD_BUILD_VERSION=1 to avoid build version being
> > > > incremented
> > > > on
> > > > every build. It is visible in the output of "cat /proc/version"
> > > > after
> > > > the hash character.
> > > It is possible that someone might actually want this feature, for
> > > debug or
> > > different build variants.
> > >
> > > So this would be better as a variable that can be overridden.
> > Surely users can override it in this form (like the USER/HOST
> > variants
> > already there)?
> I've never used the user/host variant, so I don't know.
>
> How can you override an exported variable in a shell function in a
> bbclass ? I've never tried.
>
> I know for a fact, that I wouldn't want this on by default, hence my
> comment.
KBUILD_BUILD_VERSION[unexport] = "1"
will override the export flag...
Cheers,
Richard
More information about the Openembedded-core
mailing list