numam-dpdk/mk
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
..
arch use SPDX tag for RehiveTech copyright files 2018-04-11 01:47:43 +02:00
exec-env mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
internal mk: fix external build 2018-02-05 23:39:04 +01:00
machine use SPDX tag for RehiveTech copyright files 2018-04-11 01:47:43 +02:00
target/generic mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
toolchain mk: fix cross build 2018-07-11 21:13:25 +02:00
rte.app.mk net/tap: support TSO (TCP Segment Offload) 2018-07-03 01:35:58 +02:00
rte.bsdmodule.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.combinedlib.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.cpuflags.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.extapp.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.extlib.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.extobj.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.extshared.mk use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
rte.extsubdir.mk use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
rte.gnuconfigure.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.hostapp.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.hostlib.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.install.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.lib.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.module.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.obj.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.sdkbuild.mk mk: fix kernel modules build dependency 2018-03-30 13:01:17 +02:00
rte.sdkconfig.mk mk: fix make defconfig on FreeBSD 2018-04-23 22:55:36 +02:00
rte.sdkdepdirs.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.sdkdoc.mk use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
rte.sdkexamples.mk use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
rte.sdkgcov.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.sdkinstall.mk use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
rte.sdkroot.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.sdktest.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.shared.mk use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
rte.subdir.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00
rte.vars.mk mk: use SPDX tag for Intel copyright files 2018-01-04 22:41:39 +01:00