diff options
author | David Hendricks <david.hendricks@gmail.com> | 2020-07-02 14:36:14 -0700 |
---|---|---|
committer | Nico Huber <nico.h@gmx.de> | 2021-10-01 11:22:05 +0000 |
commit | 24495cd46ee28cf60728719b8de421299ba48c44 (patch) | |
tree | 9ab406e5d4751bcf6c6dd6f8c13409c939fab9e7 /util | |
parent | 98b537befdabc3bf6457a84fb4981be8456d6f9a (diff) | |
download | flashrom-24495cd46ee28cf60728719b8de421299ba48c44.tar.gz flashrom-24495cd46ee28cf60728719b8de421299ba48c44.tar.bz2 flashrom-24495cd46ee28cf60728719b8de421299ba48c44.zip |
util/ich_descriptors_tool: Use GNU-style printf in MinGW
This allows MinGW targets to use certain printf formatting
identifiers such as "%v" by adding -D__USE_MINGW_ANSI_STDIO=1 to
the CFLAGS. This is also done in flashrom's top-level Makefile.
Reported on https://github.com/flashrom/flashrom/issues/149
Change-Id: I644be8b5b607cc77b4be2121c443f0d41d8da687
Signed-off-by: David Hendricks <david.hendricks@gmail.com>
Reviewed-on: https://review.coreboot.org/c/flashrom/+/43052
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/ich_descriptors_tool/Makefile | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/ich_descriptors_tool/Makefile b/util/ich_descriptors_tool/Makefile index c32e30be..89624312 100644 --- a/util/ich_descriptors_tool/Makefile +++ b/util/ich_descriptors_tool/Makefile @@ -41,6 +41,10 @@ EXEC_SUFFIX := .exe CFLAGS += -Wno-format endif +ifeq ($(TARGET_OS), MinGW) +CFLAGS += -D__USE_MINGW_ANSI_STDIO=1 +endif + ifeq ($(WARNERROR), yes) CFLAGS += -Werror endif |