summaryrefslogtreecommitdiff
path: root/chip
diff options
context:
space:
mode:
authorVadim Sukhomlinov <sukhomlinov@google.com>2021-09-29 17:14:33 -0700
committerCommit Bot <commit-bot@chromium.org>2021-10-01 18:12:57 +0000
commit88768bef5f6356fd415321e228a2e4627112ec27 (patch)
treed49ceaded2f75840f2b477381cd8ed62fb0568bf /chip
parentc13fecc4b009ea4ec6583896cea4cea07390df68 (diff)
downloadchrome-ec-88768bef5f6356fd415321e228a2e4627112ec27.tar.gz
chip/g: fix gcc 11.2 build issues
For some reason didn't spot earlier another unnecessary complains of gcc 11.2 in private-cr5x builds with make buildall -j. Made it so BOARD can override settings done by CHIP even though CHIP is loaded later. These settings should apply to both CFLAGS and LDFLAGS due to LTO build. BUG=none TEST=make buildall -j Signed-off-by: Vadim Sukhomlinov <sukhomlinov@google.com> Change-Id: I8880c518b23778cccf969909e330e9e2d62b5fae Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3194984 Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org> Reviewed-by: Vadim Bendebury <vbendeb@chromium.org> Tested-by: Vadim Sukhomlinov <sukhomlinov@chromium.org> Commit-Queue: Vadim Sukhomlinov <sukhomlinov@chromium.org> Auto-Submit: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Diffstat (limited to 'chip')
-rw-r--r--chip/g/build.mk3
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/g/build.mk b/chip/g/build.mk
index c5227412c3..b7bf498cd2 100644
--- a/chip/g/build.mk
+++ b/chip/g/build.mk
@@ -7,6 +7,9 @@
CORE:=cortex-m
CFLAGS_CPU+=-march=armv7-m -mcpu=cortex-m3
+# Flags to reduce unnecessary warnings with gcc 11.2
+CFLAGS_CHIP :=-Wno-stringop-overflow -Wno-array-parameter -Wno-stringop-overread
+
ifeq ($(CONFIG_DCRYPTO),y)
INCLUDE_ROOT := $(abspath ./include)
CPPFLAGS += -I$(abspath .)