From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yong Liu Subject: [PATCH] examples/ethtool, l3fwd-power: fix build on FreeBSD Date: Mon, 14 Dec 2015 10:32:52 +0800 Message-ID: <1450060372-20115-1-git-send-email-yong.liu@intel.com> To: dev@dpdk.org 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) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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