From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id AEFBD5A43 for ; Mon, 14 Dec 2015 03:33:03 +0100 (CET) Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga101.fm.intel.com with ESMTP; 13 Dec 2015 18:33:02 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.20,425,1444719600"; d="scan'208";a="706714363" Received: from shilc102.sh.intel.com ([10.239.39.44]) by orsmga003.jf.intel.com with ESMTP; 13 Dec 2015 18:33:00 -0800 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shilc102.sh.intel.com with ESMTP id tBE2WtVW017093; Mon, 14 Dec 2015 10:32:55 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id tBE2Wr27020151; Mon, 14 Dec 2015 10:32:55 +0800 Received: (from yliu84x@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id tBE2Wrhl020147; Mon, 14 Dec 2015 10:32:53 +0800 From: Yong Liu To: dev@dpdk.org Date: Mon, 14 Dec 2015 10:32:52 +0800 Message-Id: <1450060372-20115-1-git-send-email-yong.liu@intel.com> X-Mailer: git-send-email 1.7.4.1 Subject: [dpdk-dev] [PATCH] examples/ethtool, l3fwd-power: fix build on FreeBSD X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Dec 2015 02:33:06 -0000 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 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