Skip to contentSkip to conversation

examples/ethtool, l3fwd-power: fix build on FreeBSD

PATCH Applied Yong Liu 2 participants 2 messages Dec 14, 2015

lore
Share & tools
lore

Yong Liu

author
#0 lore raw

PATCH 1/1 examples/ethtool, l3fwd-power: fix build on FreeBSD

Userspace ethtool and l3fwd-power not support FreeBSD. So skip them when build samples.

examples/ethtool/Makefile +3 -2
index 94f8ee3..995cd25 100644
@@ -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
examples/l3fwd-power/Makefile +7 -0
index d0f8e6d..783772a 100644
@@ -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
Signature · 1 line
1.9.3