summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng Bao <fishbaozi@gmail.com>2012-10-22 16:39:24 +0800
committerPatrick Georgi <patrick@georgi-clan.de>2012-10-22 21:49:46 +0200
commitc31cdd8662e770fb17a9c78e2fc508967c4795f2 (patch)
treebfe91004a4c3c371dfbd9aff011f11901e60d060
parent0fd93d62d232d22e4bbeeb272fb909f615076d2c (diff)
cbfstool: Add -mno-ms-bitfields on (mingw)
The default gcc on mingw will process the __attribute__ ((packed)) in a different way other than non-win system. Change-Id: Iac9f4476c922472d0b447f1c3ef60e8e13bd902f Signed-off-by: Zheng Bao <zheng.bao@amd.com> Signed-off-by: Zheng Bao <fishbaozi@gmail.com> Reviewed-on: http://review.coreboot.org/1603 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
-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 $@