mirror of
https://git.yoctoproject.org/poky
synced 2026-04-18 21:32:12 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
98e852983c
commit
a5644b6811
11
meta/classes/reproducible_build_simple.bbclass
Normal file
11
meta/classes/reproducible_build_simple.bbclass
Normal file
@@ -0,0 +1,11 @@
|
||||
# Setup default environment for reproducible builds.
|
||||
|
||||
BUILD_REPRODUCIBLE_BINARIES = "1"
|
||||
|
||||
export PYTHONHASHSEED = "0"
|
||||
export PERL_HASH_SEED = "0"
|
||||
export TZ = 'UTC'
|
||||
export SOURCE_DATE_EPOCH ??= "1520598896"
|
||||
|
||||
REPRODUCIBLE_TIMESTAMP_ROOTFS ??= "1520598896"
|
||||
|
||||
Reference in New Issue
Block a user