From patchwork Sat Feb 14 18:52:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Wiles, Keith" X-Patchwork-Id: 3332 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id D0064B508; Sat, 14 Feb 2015 19:52:13 +0100 (CET) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id DDBC3B4F2 for ; Sat, 14 Feb 2015 19:52:11 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga103.jf.intel.com with ESMTP; 14 Feb 2015 10:46:59 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,577,1418112000"; d="scan'208";a="652239692" Received: from jganesh-mobl1.amr.corp.intel.com ([10.254.16.126]) by orsmga001.jf.intel.com with ESMTP; 14 Feb 2015 10:52:08 -0800 Received: by jganesh-mobl1.amr.corp.intel.com (Postfix, from userid 506) id 3AC521A4DD60; Sat, 14 Feb 2015 12:52:07 -0600 (CST) From: Keith Wiles To: dev@dpdk.org Date: Sat, 14 Feb 2015 12:52:07 -0600 Message-Id: <1423939927-37376-1-git-send-email-keith.wiles@intel.com> X-Mailer: git-send-email 2.3.0 Subject: [dpdk-dev] [PATCH] Add support to read target/generic/rte.vars.mk file for external builds 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The external build of applications does not import the target/generic/rte.vars.mk file, which is needed for locating DPDK headers and libraries. Signed-off-by: Keith Wiles --- mk/rte.extvars.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mk/rte.extvars.mk b/mk/rte.extvars.mk index 49fc9f2..2811ff9 100644 --- a/mk/rte.extvars.mk +++ b/mk/rte.extvars.mk @@ -82,3 +82,10 @@ RTE_MACHINE := $(CONFIG_RTE_MACHINE:"%"=%) RTE_EXEC_ENV := $(CONFIG_RTE_EXEC_ENV:"%"=%) RTE_TOOLCHAIN := $(CONFIG_RTE_TOOLCHAIN:"%"=%) RTE_MK_EXT := $(CONFIG_RTE_MK_EXT:"%"=%) + +ifneq ($(wildcard $(RTE_SDK)/mk/target/$(RTE_TARGET)/rte.vars.mk),) +include $(RTE_SDK)/mk/target/$(RTE_TARGET)/rte.vars.mk +else +include $(RTE_SDK)/mk/target/generic/rte.vars.mk +endif +