summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2017-10-01 11:18:18 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2017-10-01 11:18:18 +0200
commit667cb27fe9ae1c5aa4e4509e4046c1b53450cfb8 (patch)
treecab8a21f0068342c68505c95a22d4a9f953c1ed8
parentb31bcdfe82f88d3b9adbbc2299e4f18a0e92c1d6 (diff)
downloadptxdist-667cb27fe9ae1c5aa4e4509e4046c1b53450cfb8.tar.gz
ptxdist-667cb27fe9ae1c5aa4e4509e4046c1b53450cfb8.tar.xz
optee-client: fix building with gcc-7.x and icecc
Icecc splits preprocessing and compiling. As a result comments are no longer available at compile time and building fails with: src/rpmb.c: In function 'rpmb_data_req': src/rpmb.c:675:6: error: this statement may fall through [-Werror=implicit-fallthrough=] src/rpmb.c:681:2: note: here Compile with '-C' to preserve comments. This can have side effects, so it cannot be enabled globally. Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/optee-client.make3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules/optee-client.make b/rules/optee-client.make
index 25835ed1e..8726f7733 100644
--- a/rules/optee-client.make
+++ b/rules/optee-client.make
@@ -36,6 +36,9 @@ OPTEE_CLIENT_MAKE_ENV := \
BINDIR=/usr/bin \
INCLUDEDIR=/usr/include
+ifdef PTXDIST_ICECC
+OPTEE_CLIENT_CFLAGS := -C
+endif
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------