Go to file
Gavin Hu ebaa070de8 mk: fix cross build
The "-Wimplicit-fallthrough=2" option was introduced into gcc 7.0, it was
enabled when the cross compiler gcc is greater than 7.0, but for the host
side buildtools/pmdinfogen, if the native gcc is older than 7.0, or the
host cc compiler is clang, it should not be enabled.

The fix is to differentiate the host gcc Werror options from the cross gcc.

gcc -Wp,-MD,./.pmdinfogen.o.d.tmp  -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -Wmissing-declarations -Wold-style-definition
-Wpointer-arith -Wcast-align -Wnested-externs -Wcast-qual
-Wformat-nonliteral -Wformat-security -Wundef -Wwrite-strings -Wdeprecated
-Werror -Wimplicit-fallthrough=2 -Dbbb -Wno-format-truncation -g
-I/dpdk/build/include    -o pmdinfogen.o -c
~/dpdk/buildtools/pmdinfogen/pmdinfogen.c gcc: error:
unrecognized command line option ‘-Wimplicit-fallthrough=2’

Fixes: ced3e6f8 ("mk: adjust gcc flags for new gcc 7 warnings")
Cc: stable@dpdk.org

Signed-off-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Reviewed-by: Steve Capper <steve.capper@arm.com>
Tested-by: Ali Alnubani <alialnu@mellanox.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
2018-07-11 21:13:25 +02:00
app app/crypto-perf: honour min headroom/tailroom 2018-07-11 03:57:24 +02:00
buildtools mk: fix cross build 2018-07-11 21:13:25 +02:00
config cryptodev: remove max number of sessions parameter 2018-07-11 03:57:24 +02:00
devtools devtools: fix ARM builds test with meson 2018-06-14 17:46:02 +02:00
doc doc: add asymmetric crypto in programmer guide 2018-07-11 03:57:25 +02:00
drivers crypto/scheduler: add minimum head/tailroom requirement 2018-07-11 03:57:24 +02:00
examples examples/multi_process: build l2fwd_fork app 2018-07-11 19:22:40 +02:00
kernel igb_uio: fix build with lock down checks 2018-07-11 18:49:21 +02:00
lib cryptodev: add asymmetric capability 2018-07-11 03:57:25 +02:00
license license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00
mk mk: fix cross build 2018-07-11 21:13:25 +02:00
pkg version: 18.05.0 2018-05-30 22:55:57 +02:00
test test/crypto: add DH and DSA tests 2018-07-11 03:57:25 +02:00
usertools usertools: add Cavium TIM as an event device 2018-04-16 11:11:06 +02:00
.gitattributes improve git diff 2016-11-13 15:25:12 +01:00
.gitignore doc: add compression driver and ISA-L PMD guides 2018-05-10 17:46:20 +01:00
GNUmakefile move kernel modules directories 2018-03-21 23:04:21 +01:00
MAINTAINERS maintainers: update for Mellanox PMDs 2018-07-11 19:10:42 +02:00
Makefile license: use SPDX tag in root makefile 2018-01-04 22:41:38 +01:00
meson_options.txt net/mvpp2: add to meson build 2018-04-19 14:10:44 +02:00
meson.build version: 18.08-rc0 2018-06-01 12:58:36 +02:00
README license: introduce SPDX identifiers 2018-01-04 22:41:38 +01:00

DPDK is a set of libraries and drivers for fast packet processing.
It supports many processor architectures and both FreeBSD and Linux.

The DPDK uses the Open Source BSD-3-Clause license for the core libraries
and drivers. The kernel components are GPL-2.0 licensed.

Please check the doc directory for release notes,
API documentation, and sample application information.

For questions and usage discussions, subscribe to: users@dpdk.org
Report bugs and issues to the development mailing list: dev@dpdk.org