]> code.ossystems Code Review - openembedded-core.git/commit
kernel/reproducibility: kernel modules need SOURCE_DATE_EPOCH export
authorBruce Ashfield <bruce.ashfield@gmail.com>
Wed, 13 May 2020 14:24:35 +0000 (10:24 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 15 May 2020 15:24:15 +0000 (16:24 +0100)
commit82cdfcdccfedd320ebc0cdc778c7d4966198b96f
tree35532e6e6eb9dbf076882cc0921d677094871c0b
parentd2fdd473db5446b0e96ad4f774121129fbf94e0e
kernel/reproducibility: kernel modules need SOURCE_DATE_EPOCH export

If CONFIG_IKHEADERS is set to =m, then reproducibility issues creep
into the modules build, since the variables we are setting for the
main kernel build are not present.

Since the source code must be available for a possibly git query
on the timestamp, there didn't seem to be an easy way to move the
environment variable setting to a common routine. As such, we
duplicate the block of code that exports the required variables for
reproducible builds. There is a maintenance risk to this, but any
issues should be easy enough to catch.

Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel.bbclass