summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Monjalon <thomas.monjalon@6wind.com>2014-07-03 00:07:15 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2014-07-03 00:10:30 +0200
commit3417cd687e5ec3e6ea695a8349aea2e8d545724a (patch)
treee6dcab25e30a388853c66955fd98f54387861db9
parent304caba12643169b321757a949d514321929762a (diff)
downloaddpdk-3417cd687e5ec3e6ea695a8349aea2e8d545724a.zip
dpdk-3417cd687e5ec3e6ea695a8349aea2e8d545724a.tar.gz
dpdk-3417cd687e5ec3e6ea695a8349aea2e8d545724a.tar.xz
examples: ignore linux apps on bsd
Do not try to build Linux examples in a BSD environment. Reported-by: Bruce Richardson <bruce.richardson@intel.com> Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
-rw-r--r--examples/Makefile2
-rw-r--r--examples/exception_path/Makefile7
-rw-r--r--examples/netmap_compat/bridge/Makefile8
-rwxr-xr-xexamples/qos_sched/Makefile7
-rw-r--r--examples/vhost/Makefile8
5 files changed, 27 insertions, 5 deletions
diff --git a/examples/Makefile b/examples/Makefile
index 4353b84..d0624f6 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -51,7 +51,7 @@ DIRS-y += l2fwd
DIRS-$(CONFIG_RTE_LIBRTE_IVSHMEM) += l2fwd-ivshmem
DIRS-y += l3fwd
DIRS-$(CONFIG_RTE_LIBRTE_ACL) += l3fwd-acl
-DIRS-y += l3fwd-power
+DIRS-$(CONFIG_RTE_LIBRTE_POWER) += l3fwd-power
DIRS-y += l3fwd-vf
DIRS-y += link_status_interrupt
DIRS-y += load_balancer
diff --git a/examples/exception_path/Makefile b/examples/exception_path/Makefile
index 76f71d9..959914a 100644
--- a/examples/exception_path/Makefile
+++ b/examples/exception_path/Makefile
@@ -39,9 +39,10 @@ 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
+all:
+else
# binary name
APP = exception_path
@@ -53,3 +54,5 @@ CFLAGS += -O3
CFLAGS += $(WERROR_FLAGS)
include $(RTE_SDK)/mk/rte.extapp.mk
+
+endif
diff --git a/examples/netmap_compat/bridge/Makefile b/examples/netmap_compat/bridge/Makefile
index 13eb229..50d96e8 100644
--- a/examples/netmap_compat/bridge/Makefile
+++ b/examples/netmap_compat/bridge/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 = bridge
@@ -52,3 +58,5 @@ CFLAGS += -O3 -I$(SRCDIR)/../lib -I$(SRCDIR)/../netmap
CFLAGS += $(WERROR_FLAGS)
include $(RTE_SDK)/mk/rte.extapp.mk
+
+endif
diff --git a/examples/qos_sched/Makefile b/examples/qos_sched/Makefile
index 48713f9..f59645f 100755
--- a/examples/qos_sched/Makefile
+++ b/examples/qos_sched/Makefile
@@ -39,9 +39,10 @@ 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
+all:
+else
# binary name
APP = qos_sched
@@ -55,3 +56,5 @@ CFLAGS_args.o := -D_GNU_SOURCE
CFLAGS_cfg_file.o := -D_GNU_SOURCE
include $(RTE_SDK)/mk/rte.extapp.mk
+
+endif
diff --git a/examples/vhost/Makefile b/examples/vhost/Makefile
index 47e054d..f45f83f 100644
--- a/examples/vhost/Makefile
+++ b/examples/vhost/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 = vhost-switch
@@ -50,3 +56,5 @@ CFLAGS += $(WERROR_FLAGS)
LDFLAGS += -lfuse
include $(RTE_SDK)/mk/rte.extapp.mk
+
+endif