diff options
Diffstat (limited to 'meta/classes-global/utils.bbclass')
-rw-r--r-- | meta/classes-global/utils.bbclass | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/classes-global/utils.bbclass b/meta/classes-global/utils.bbclass index c9cae8930f..530a490ea8 100644 --- a/meta/classes-global/utils.bbclass +++ b/meta/classes-global/utils.bbclass | |||
@@ -367,3 +367,13 @@ check_git_config() { | |||
367 | git config --local user.name "${PATCH_GIT_USER_NAME}" | 367 | git config --local user.name "${PATCH_GIT_USER_NAME}" |
368 | fi | 368 | fi |
369 | } | 369 | } |
370 | |||
371 | # Sets fixed git committer and author for reproducible commits | ||
372 | reproducible_git_committer_author() { | ||
373 | export GIT_COMMITTER_NAME="${PATCH_GIT_USER_NAME}" | ||
374 | export GIT_COMMITTER_EMAIL="${PATCH_GIT_USER_EMAIL}" | ||
375 | export GIT_COMMITTER_DATE="$(date -d @${SOURCE_DATE_EPOCH})" | ||
376 | export GIT_AUTHOR_NAME="${PATCH_GIT_USER_NAME}" | ||
377 | export GIT_AUTHOR_EMAIL="${PATCH_GIT_USER_EMAIL}" | ||
378 | export GIT_AUTHOR_DATE="$(date -d @${SOURCE_DATE_EPOCH})" | ||
379 | } | ||