]> 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)
committerSteve Sakoman <steve@sakoman.com>
Mon, 1 Jun 2020 17:16:00 +0000 (07:16 -1000)
commitf511d78164581f80e7b8c592fe88ffbf38738150
treee3809016ed68b3334e35a7ecdae7fbb80d3ee27a
parentbb126c867adbe3eca3f30670e7b2e84bf98e97cf
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>
(cherry picked from commit 82cdfcdccfedd320ebc0cdc778c7d4966198b96f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/kernel.bbclass