diff options
author | Swift Geek <swiftgeek@gmail.com> | 2018-12-08 04:31:35 +0000 |
---|---|---|
committer | Gogs <gogitservice@gmail.com> | 2018-12-08 04:31:35 +0000 |
commit | 2a94bb22ac1c5aac391da97cc857d2fd2ea8a240 (patch) | |
tree | 6ff95320ca3432d94e088e1c17f8c6ab2e18aa65 /libreboot | |
parent | 2e30f820dc8a451cf4f67b6e6b0e6d63501c19fd (diff) | |
parent | 2d9030f4da7b849bcea57c6a4e54852b1e7a24b9 (diff) | |
download | librebootfr-2a94bb22ac1c5aac391da97cc857d2fd2ea8a240.tar.gz librebootfr-2a94bb22ac1c5aac391da97cc857d2fd2ea8a240.zip |
Merge branch 'reproducible' of and_who/libreboot into master
Diffstat (limited to 'libreboot')
-rwxr-xr-x | libreboot | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -63,7 +63,7 @@ libreboot_usage() { printf 1>&2 '%s\n' ' TOOLS_FORCE - Tools to always perform actions for' printf 1>&2 '%s\n' ' RELEASE_KEY - GPG key to use for release' printf 1>&2 '%s\n' ' VBOOT_KEYS_PATH - Path to the vboot keys' - printf 1>&2 '%s\n' ' LIBFAKETIME_PATH - Path to the libfaketime shared library' + printf 1>&2 '%s\n' ' LIBFAKETIME_PATH - Path to libfaketime' printf 1>&2 '%s\n' ' TASKS - Number of simultaneous tasks to run' printf 1>&2 '%s\n' ' VERSION - Version string to use' @@ -220,6 +220,8 @@ libreboot_setup_reproducible_builds_variables() { else RANDOM_SEED="$RANDOM" # True randomness is unnecessary fi + + export RANDOM_SEED fi # Also used by GCC, but as an environment variable @@ -231,9 +233,11 @@ libreboot_setup_reproducible_builds_variables() { else SOURCE_DATE_EPOCH="$(date +%s)" fi + + export SOURCE_DATE_EPOCH fi - # Relevant only when libfaketime is preloaded + # Relevant only when libfaketime path is given in $BUILD_SYSTEM.conf if [[ -n "$LIBFAKETIME_PATH" ]]; then BUILD_DATE_FMT="%Y-%m-%d %H:%M:%S" BUILD_DATE="$(date -u -d "@$SOURCE_DATE_EPOCH" "+$BUILD_DATE_FMT" 2>/dev/null || date -u -r "$SOURCE_DATE_EPOCH" "+$BUILD_DATE_FMT" 2>/dev/null || date -u "+$BUILD_DATE_FMT")" @@ -241,6 +245,8 @@ libreboot_setup_reproducible_builds_variables() { LC_ALL='C.UTF-8' LD_PRELOAD="$LIBFAKETIME_PATH" TZ='UTC' + + export BUILD_DATE_FMT BUILD_DATE FAKETIME LC_ALL LD_PRELOAD TZ fi } |