diff options
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/reproducible_build.bbclass | 11 | ||||
-rw-r--r-- | meta/classes/reproducible_build_simple.bbclass | 9 |
2 files changed, 0 insertions, 20 deletions
diff --git a/meta/classes/reproducible_build.bbclass b/meta/classes/reproducible_build.bbclass index 0f45b782e5..f38be1a765 100644 --- a/meta/classes/reproducible_build.bbclass +++ b/meta/classes/reproducible_build.bbclass | |||
@@ -51,15 +51,6 @@ | |||
51 | # | 51 | # |
52 | # Once the value is determined, it is stored in the recipe's SDE_FILE. | 52 | # Once the value is determined, it is stored in the recipe's SDE_FILE. |
53 | 53 | ||
54 | BUILD_REPRODUCIBLE_BINARIES ??= '1' | ||
55 | inherit reproducible_build_simple | ||
56 | |||
57 | SDE_DIR = "${WORKDIR}/source-date-epoch" | ||
58 | SDE_FILE = "${SDE_DIR}/__source_date_epoch.txt" | ||
59 | SDE_DEPLOYDIR = "${WORKDIR}/deploy-source-date-epoch" | ||
60 | |||
61 | # A SOURCE_DATE_EPOCH of '0' might be misinterpreted as no SDE | ||
62 | export SOURCE_DATE_EPOCH_FALLBACK ??= "1302044400" | ||
63 | 54 | ||
64 | SSTATETASKS += "do_deploy_source_date_epoch" | 55 | SSTATETASKS += "do_deploy_source_date_epoch" |
65 | 56 | ||
@@ -103,5 +94,3 @@ do_unpack[postfuncs] += "create_source_date_epoch_stamp" | |||
103 | def get_source_date_epoch_value(d): | 94 | def get_source_date_epoch_value(d): |
104 | return oe.reproducible.epochfile_read(d.getVar('SDE_FILE'), d) | 95 | return oe.reproducible.epochfile_read(d.getVar('SDE_FILE'), d) |
105 | 96 | ||
106 | export SOURCE_DATE_EPOCH ?= "${@get_source_date_epoch_value(d)}" | ||
107 | BB_HASHBASE_WHITELIST += "SOURCE_DATE_EPOCH" | ||
diff --git a/meta/classes/reproducible_build_simple.bbclass b/meta/classes/reproducible_build_simple.bbclass deleted file mode 100644 index 393372993d..0000000000 --- a/meta/classes/reproducible_build_simple.bbclass +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
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 SOURCE_DATE_EPOCH ??= "1520598896" | ||
8 | |||
9 | REPRODUCIBLE_TIMESTAMP_ROOTFS ??= "1520598896" | ||