From: Marko Kovacevic Date: Mon, 5 Feb 2018 15:45:31 +0000 (+0000) Subject: mk: fix external build X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=c36fddd4372305ecf7a25a8417aa720571177a54;p=dpdk.git mk: fix external build 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") Cc: stable@dpdk.org Signed-off-by: Marko Kovacevic --- diff --git a/mk/internal/rte.extvars.mk b/mk/internal/rte.extvars.mk index 19594dacc1..98c860628a 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/.