summaryrefslogtreecommitdiff
path: root/util/cbfstool/Makefile.inc
diff options
context:
space:
mode:
Diffstat (limited to 'util/cbfstool/Makefile.inc')
-rw-r--r--util/cbfstool/Makefile.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/util/cbfstool/Makefile.inc b/util/cbfstool/Makefile.inc
index ad2e1200ae..f9aef2e795 100644
--- a/util/cbfstool/Makefile.inc
+++ b/util/cbfstool/Makefile.inc
@@ -15,6 +15,10 @@ cbfsobj += cbfstool.o
CBFSTOOLFLAGS=-DCOMPACT -g
+ifeq ($(shell uname -s | cut -c-7 2>/dev/null), MINGW32)
+CBFSTOOLFLAGS+=-mno-ms-bitfields
+endif
+
$(objutil)/cbfstool:
mkdir -p $@