From: Akhil Goyal Date: Wed, 26 Jul 2017 11:27:37 +0000 (+0530) Subject: crypto/dpaa2_sec: add check for gcc toolchain X-Git-Tag: spdx-start~2362 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=f1bd2f0fb4a66123a75d02ed336e6442fa12874b;p=dpdk.git crypto/dpaa2_sec: add check for gcc toolchain Fixes: 6a95466d78de ("crypto/dpaa2_sec: fix build with gcc 7.1") Signed-off-by: Akhil Goyal --- diff --git a/drivers/crypto/dpaa2_sec/Makefile b/drivers/crypto/dpaa2_sec/Makefile index c2a02ed15a..ae15c99fa8 100644 --- a/drivers/crypto/dpaa2_sec/Makefile +++ b/drivers/crypto/dpaa2_sec/Makefile @@ -46,9 +46,11 @@ CFLAGS += $(WERROR_FLAGS) endif CFLAGS += -D _GNU_SOURCE +ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y) ifeq ($(shell test $(GCC_VERSION) -gt 70 && echo 1), 1) CFLAGS += -Wno-implicit-fallthrough endif +endif CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa2_sec/ CFLAGS += -I$(RTE_SDK)/drivers/crypto/dpaa2_sec/mc