mirror of
https://review.coreboot.org/flashrom.git
synced 2025-04-27 23:22:37 +02:00
Set LC_ALL globally in Makefile
This won't work for the majority of relevant commands because they use the $(shell) function and GNU make does not relay variables exported within the makefile to their evironment. Corresponding to flashrom svn r1914. Signed-off-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at> Acked-by: Stefan Tauner <stefan.tauner@alumni.tuwien.ac.at>
This commit is contained in:
parent
4c72315c10
commit
1ca7c7ff1b
12
Makefile
12
Makefile
@ -77,8 +77,18 @@ PKG_CONFIG += --static
|
|||||||
LDFLAGS += -static
|
LDFLAGS += -static
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Set LC_ALL=C to minimize influences of the locale.
|
||||||
|
# However, this won't work for the majority of relevant commands because they use the $(shell) function and
|
||||||
|
# GNU make does not relay variables exported within the makefile to their evironment.
|
||||||
|
LC_ALL=C
|
||||||
|
export LC_ALL
|
||||||
|
|
||||||
dummy_for_make_3_80:=$(shell printf "Build started on %s\n\n" "$$(date)" >$(BUILD_DETAILS_FILE))
|
dummy_for_make_3_80:=$(shell printf "Build started on %s\n\n" "$$(date)" >$(BUILD_DETAILS_FILE))
|
||||||
|
|
||||||
|
# Provide an easy way to execute a command, print its output to stdout and capture any error message on stderr
|
||||||
|
# in the build details file together with the original stdout output.
|
||||||
debug_shell = $(shell export LC_ALL=C ; { echo 'exec: export LC_ALL=C ; { $(1) ; }' >&2; { $(1) ; } | tee -a $(BUILD_DETAILS_FILE) ; echo >&2 ; } 2>>$(BUILD_DETAILS_FILE))
|
debug_shell = $(shell export LC_ALL=C ; { echo 'exec: export LC_ALL=C ; { $(1) ; }' >&2; { $(1) ; } | tee -a $(BUILD_DETAILS_FILE) ; echo >&2 ; } 2>>$(BUILD_DETAILS_FILE))
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# General OS-specific settings.
|
# General OS-specific settings.
|
||||||
# 1. Prepare for later by gathering information about host and target OS
|
# 1. Prepare for later by gathering information about host and target OS
|
||||||
@ -1087,7 +1097,7 @@ export: $(PROGRAM).8
|
|||||||
@svn export -r BASE . $(EXPORTDIR)/flashrom-$(RELEASENAME)
|
@svn export -r BASE . $(EXPORTDIR)/flashrom-$(RELEASENAME)
|
||||||
@sed "s/^SVNVERSION.*/SVNVERSION := $(SVNVERSION)/" Makefile >$(EXPORTDIR)/flashrom-$(RELEASENAME)/Makefile
|
@sed "s/^SVNVERSION.*/SVNVERSION := $(SVNVERSION)/" Makefile >$(EXPORTDIR)/flashrom-$(RELEASENAME)/Makefile
|
||||||
@cp $(PROGRAM).8 "$(EXPORTDIR)/flashrom-$(RELEASENAME)/$(PROGRAM).8"
|
@cp $(PROGRAM).8 "$(EXPORTDIR)/flashrom-$(RELEASENAME)/$(PROGRAM).8"
|
||||||
@LC_ALL=C svn log >$(EXPORTDIR)/flashrom-$(RELEASENAME)/ChangeLog
|
@svn log >$(EXPORTDIR)/flashrom-$(RELEASENAME)/ChangeLog
|
||||||
@echo Exported $(EXPORTDIR)/flashrom-$(RELEASENAME)/
|
@echo Exported $(EXPORTDIR)/flashrom-$(RELEASENAME)/
|
||||||
|
|
||||||
tarball: export
|
tarball: export
|
||||||
|
Loading…
x
Reference in New Issue
Block a user