mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-28 13:46:32 +00:00
reproducibility: override locale and timezone
And export BR2_REPRODUCIBLE for post-build / post-image scripts. [Peter: Extend commit message, move export together with our other exports, add comment explaining why we override local/timezone] Signed-off-by: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
71574a65e8
commit
a5f3513b22
8
Makefile
8
Makefile
@ -213,6 +213,13 @@ ifeq ($(filter $(noconfig_targets),$(MAKECMDGOALS)),)
|
|||||||
-include $(BR2_CONFIG)
|
-include $(BR2_CONFIG)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# timezone and locale may affect build output
|
||||||
|
ifeq ($(BR2_REPRODUCIBLE),y)
|
||||||
|
export TZ=UTC
|
||||||
|
export LANG=C
|
||||||
|
export LC_ALL=C
|
||||||
|
endif
|
||||||
|
|
||||||
# To put more focus on warnings, be less verbose as default
|
# To put more focus on warnings, be less verbose as default
|
||||||
# Use 'make V=1' to see the full commands
|
# Use 'make V=1' to see the full commands
|
||||||
ifeq ("$(origin V)", "command line")
|
ifeq ("$(origin V)", "command line")
|
||||||
@ -410,6 +417,7 @@ endif
|
|||||||
# Scripts in support/ or post-build scripts may need to reference
|
# Scripts in support/ or post-build scripts may need to reference
|
||||||
# these locations, so export them so it is easier to use
|
# these locations, so export them so it is easier to use
|
||||||
export BR2_CONFIG
|
export BR2_CONFIG
|
||||||
|
export BR2_REPRODUCIBLE
|
||||||
export TARGET_DIR
|
export TARGET_DIR
|
||||||
export STAGING_DIR
|
export STAGING_DIR
|
||||||
export HOST_DIR
|
export HOST_DIR
|
||||||
|
Loading…
x
Reference in New Issue
Block a user