From e70e26861eaf735a296807a909d7c5c2a568a1c2 Mon Sep 17 00:00:00 2001 From: Thomas Monjalon Date: Thu, 19 Apr 2018 18:02:31 +0200 Subject: [PATCH] net/mvpp2: fix build The iterator RTE_ETH_FOREACH_DEV (added in below commit) requires to enable experimental APIs. Fixing also the config option rename in the build test. Fixes: 8728ccf37615 ("fix ethdev ports enumeration") Fixes: fe93968722af ("net/mrvl: rename PMD as mvpp2") Reported-by: Ferruh Yigit Signed-off-by: Thomas Monjalon Tested-by: Ferruh Yigit --- devtools/test-build.sh | 2 +- drivers/net/mvpp2/Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/devtools/test-build.sh b/devtools/test-build.sh index 3362edcc5b..28e0324171 100755 --- a/devtools/test-build.sh +++ b/devtools/test-build.sh @@ -202,7 +202,7 @@ config () # test -z "$LIBMUSDK_PATH" || \ sed -ri 's,(PMD_MRVL_CRYPTO=)n,\1y,' $1/.config test -z "$LIBMUSDK_PATH" || \ - sed -ri 's,(MRVL_PMD=)n,\1y,' $1/.config + sed -ri 's,(MVPP2_PMD=)n,\1y,' $1/.config build_config_hook $1 $2 $3 # Explicit enabler/disabler (uppercase) diff --git a/drivers/net/mvpp2/Makefile b/drivers/net/mvpp2/Makefile index 2383ec18cc..db4576f9c8 100644 --- a/drivers/net/mvpp2/Makefile +++ b/drivers/net/mvpp2/Makefile @@ -27,6 +27,7 @@ CFLAGS += -I$(LIBMUSDK_PATH)/include CFLAGS += -DMVCONF_TYPES_PUBLIC CFLAGS += -DMVCONF_DMA_PHYS_ADDR_T_PUBLIC CFLAGS += $(WERROR_FLAGS) +CFLAGS += -DALLOW_EXPERIMENTAL_API CFLAGS += -O3 LDLIBS += -L$(LIBMUSDK_PATH)/lib LDLIBS += -lmusdk -- 2.20.1