From: Marko Kovacevic Date: Mon, 22 Jan 2018 10:59:05 +0000 (+0000) Subject: mk: support renamed Makefile in external project X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3a5c339d51a4;p=dpdk.git mk: support renamed Makefile in external project The build system made a recursive call to "make" after creating the build directory. This recursive call used the hard-coded filename "Makefile", which prevented builds from working if the file was renamed and make called using "make -f". Taking the filename from MAKEFILES_LIST make variable fixes this. Fixes: af75078fece3 ("first public release") Cc: stable@dpdk.org Signed-off-by: Marko Kovacevic Acked-by: Vipin Varghese --- diff --git a/mk/internal/rte.extvars.mk b/mk/internal/rte.extvars.mk index 94f27e929b..19594dacc1 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)/Makefile +RTE_EXTMK ?= $(RTE_SRCDIR)/$(firstword $(MAKEFILE_LIST)) export RTE_EXTMK # RTE_SDK_BIN must point to .config, include/ and lib/.