]> git.droids-corp.org - dpdk.git/commitdiff
examples: skip unsupported ethtool and l3fwd-power on FreeBSD
authorYong Liu <yong.liu@intel.com>
Mon, 14 Dec 2015 02:32:52 +0000 (10:32 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 14 Dec 2015 09:36:52 +0000 (10:36 +0100)
Userspace ethtool and l3fwd-power not support FreeBSD.
So skip them when build samples.

Signed-off-by: Marvin Liu <yong.liu@intel.com>
examples/ethtool/Makefile
examples/l3fwd-power/Makefile

index 94f8ee3c8b39f2cb6e0d721a31a0e8139120df92..995cd25beb16263e5a5ad5d15f996427d1989e60 100644 (file)
@@ -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
index d0f8e6dbf3da46544cfeb029c4d5305616a20de9..783772a79912d36aff42c7c4296f3c6d44231f11 100644 (file)
@@ -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