From mboxrd@z Thu Jan 1 00:00:00 1970 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) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Feb 2018 07:45:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,465,1511856000"; d="scan'208";a="28185219" Received: from silpixa00399502.ir.intel.com (HELO silpixa00399502.ger.corp.intel.com) ([10.237.223.218]) by fmsmga001.fm.intel.com with ESMTP; 05 Feb 2018 07:45:50 -0800 From: Marko Kovacevic To: dev@dpdk.org Cc: thomas@monjalon.net, olivier.matz@6wind.com, vipin.varghese@intel.com, Marko Kovacevic Date: Mon, 5 Feb 2018 15:45:31 +0000 Message-Id: <20180205154531.19913-1-marko.kovacevic@intel.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20180205102243.16445-1-marko.kovacevic@intel.com> References: <20180205102243.16445-1-marko.kovacevic@intel.com> Subject: [dpdk-dev] [PATCH v2] mk: fix external build failure X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Feb 2018 15:45:53 -0000 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