From: Yong Liu <yong.liu@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH] examples/ethtool, l3fwd-power: fix build on FreeBSD
Date: Mon, 14 Dec 2015 10:32:52 +0800 [thread overview]
Message-ID: <1450060372-20115-1-git-send-email-yong.liu@intel.com> (raw)
Userspace ethtool and l3fwd-power not support FreeBSD. So skip them when build
samples.
Signed-off-by: Marvin Liu <yong.liu@intel.com>
diff --git a/examples/ethtool/Makefile b/examples/ethtool/Makefile
index 94f8ee3..995cd25 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 d0f8e6d..783772a 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
--
1.9.3
next reply other threads:[~2015-12-14 2:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-14 2:32 Yong Liu [this message]
2015-12-14 10:05 ` Thomas Monjalon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1450060372-20115-1-git-send-email-yong.liu@intel.com \
--to=yong.liu@intel.com \
--cc=dev@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).