From: Yong Liu Date: Mon, 14 Dec 2015 02:32:52 +0000 (+0800) Subject: examples: skip unsupported ethtool and l3fwd-power on FreeBSD X-Git-Tag: spdx-start~7737 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=20dcb28f65697b0c35f4bdacd173da0b88949472;p=dpdk.git examples: skip unsupported ethtool and l3fwd-power on FreeBSD Userspace ethtool and l3fwd-power not support FreeBSD. So skip them when build samples. Signed-off-by: Marvin Liu --- diff --git a/examples/ethtool/Makefile b/examples/ethtool/Makefile index 94f8ee3c8b..995cd25beb 100644 --- a/examples/ethtool/Makefile +++ b/examples/ethtool/Makefile @@ -39,10 +39,11 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc include $(RTE_SDK)/mk/rte.vars.mk ifneq ($(CONFIG_RTE_EXEC_ENV),"linuxapp") -$(error This application can only operate in a linuxapp environment, \ +$(info This application can only operate in a linuxapp environment, \ please change the definition of the RTE_TARGET environment variable) -endif +else DIRS-y += lib ethtool-app +endif include $(RTE_SDK)/mk/rte.extsubdir.mk diff --git a/examples/l3fwd-power/Makefile b/examples/l3fwd-power/Makefile index d0f8e6dbf3..783772a799 100644 --- a/examples/l3fwd-power/Makefile +++ b/examples/l3fwd-power/Makefile @@ -38,6 +38,12 @@ RTE_TARGET ?= x86_64-native-linuxapp-gcc include $(RTE_SDK)/mk/rte.vars.mk +ifneq ($(CONFIG_RTE_EXEC_ENV),"linuxapp") +$(info This application can only operate in a linuxapp environment, \ +please change the definition of the RTE_TARGET environment variable) +all: +else + # binary name APP = l3fwd-power @@ -54,3 +60,4 @@ CFLAGS_main.o += -Wno-return-type endif include $(RTE_SDK)/mk/rte.extapp.mk +endif