From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marko Kovacevic Subject: [PATCH v2] mk: fix external build failure Date: Mon, 5 Feb 2018 15:45:31 +0000 Message-ID: <20180205154531.19913-1-marko.kovacevic@intel.com> References: <20180205102243.16445-1-marko.kovacevic@intel.com> Cc: thomas@monjalon.net, olivier.matz@6wind.com, vipin.varghese@intel.com, Marko Kovacevic To: dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 75AD01B61F for ; Mon, 5 Feb 2018 16:45:53 +0100 (CET) In-Reply-To: <20180205102243.16445-1-marko.kovacevic@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Code commit for 'make -f' support, breaks the build in cases where entries in $(MAKEFILE_LIST) are absolute paths. This commit uses notdir and firstword to ensure that only the local filename is used. Fixes: 3a5c339d51a4 ("mk: support renamed Makefile in external project") Signed-off-by: Marko Kovacevic --- mk/internal/rte.extvars.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mk/internal/rte.extvars.mk b/mk/internal/rte.extvars.mk index 19594da..98c8606 100644 --- a/mk/internal/rte.extvars.mk +++ b/mk/internal/rte.extvars.mk @@ -20,7 +20,7 @@ ifeq ("$(origin M)", "command line") RTE_EXTMK := $(abspath $(M)) endif endif -RTE_EXTMK ?= $(RTE_SRCDIR)/$(firstword $(MAKEFILE_LIST)) +RTE_EXTMK ?= $(RTE_SRCDIR)/$(notdir $(firstword $(MAKEFILE_LIST))) export RTE_EXTMK # RTE_SDK_BIN must point to .config, include/ and lib/. -- 2.9.5