diff options
author | Juro Bystricky <juro.bystricky@intel.com> | 2018-03-10 10:57:49 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-12 15:06:32 -0700 |
commit | a5644b6811e7d9db10c72c02fcfdd0930169f23c (patch) | |
tree | 0e3fc4f7507bb1163b88338ca2c95e805159c7da | |
parent | 98e852983cf58e3004a88bcfb20430289f679140 (diff) | |
download | poky-a5644b6811e7d9db10c72c02fcfdd0930169f23c.tar.gz |
reproducible_build_simple.bbclass: simple environment for reproducible binaries
Export environmental variables needed for binary reproducibility with consistent values.
This class can be used either directly via:
INHERIT += "reproducible_build_simple"
or can be inherited by a more complex/complete bbclass, for example a bblass which
will crack SOURCE_DATE_EPOCH for each recipe.
(From OE-Core rev: 5c2685c5ee2f8210a36b9a8591491b6af0482084)
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/reproducible_build_simple.bbclass | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/meta/classes/reproducible_build_simple.bbclass b/meta/classes/reproducible_build_simple.bbclass new file mode 100644 index 0000000000..dd11cd98d6 --- /dev/null +++ b/meta/classes/reproducible_build_simple.bbclass | |||
@@ -0,0 +1,11 @@ | |||
1 | # Setup default environment for reproducible builds. | ||
2 | |||
3 | BUILD_REPRODUCIBLE_BINARIES = "1" | ||
4 | |||
5 | export PYTHONHASHSEED = "0" | ||
6 | export PERL_HASH_SEED = "0" | ||
7 | export TZ = 'UTC' | ||
8 | export SOURCE_DATE_EPOCH ??= "1520598896" | ||
9 | |||
10 | REPRODUCIBLE_TIMESTAMP_ROOTFS ??= "1520598896" | ||
11 | |||