[dpdk-dev,v1] mk: fix external build failure
Checks
Commit Message
Updated the make build to fix external build issues
Fixes: 3a5c339d51a4 ("mk: support renamed Makefile in external project")
Cc: stable@dpdk.org
Signed-off-by: Marko Kovacevic <marko.kovacevic@intel.com>
---
mk/internal/rte.extvars.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
05/02/2018 11:22, Marko Kovacevic:
> Updated the make build to fix external build issues
Please explain what is the issue.
> Fixes: 3a5c339d51a4 ("mk: support renamed Makefile in external project")
> Cc: stable@dpdk.org
No need to Cc stable when fixing a bug which is not in a major release.
> 05/02/2018 11:22, Marko Kovacevic:
> > Updated the make build to fix external build issues
>
> Please explain what is the issue.
>
> > Fixes: 3a5c339d51a4 ("mk: support renamed Makefile in external project")
> > Cc: stable@dpdk.org
>
> No need to Cc stable when fixing a bug which is not in a major release.
Olivier reported an issue this morning, that my commit was breaking
the build of one of our external module:
make[5]: /path/to/ext-module//path/to/ext-module/Makefile: No such file or directory
make[5]: *** No rule to make target '/path/to/ext-module//path/to/ext-module/Makefile'. Stop.
The reason is that entries in $(MAKEFILE_LIST) can be absolute.
Marko.
05/02/2018 11:53, Kovacevic, Marko:
> > 05/02/2018 11:22, Marko Kovacevic:
> > > Updated the make build to fix external build issues
> >
> > Please explain what is the issue.
> >
> > > Fixes: 3a5c339d51a4 ("mk: support renamed Makefile in external project")
> > > Cc: stable@dpdk.org
> >
> > No need to Cc stable when fixing a bug which is not in a major release.
>
> Olivier reported an issue this morning, that my commit was breaking
> the build of one of our external module:
>
> make[5]: /path/to/ext-module//path/to/ext-module/Makefile: No such file or directory
> make[5]: *** No rule to make target '/path/to/ext-module//path/to/ext-module/Makefile'. Stop.
>
> The reason is that entries in $(MAKEFILE_LIST) can be absolute.
I know that :)
I was asking to update the commit message in a v2 actually.
05/02/2018 11:22, Marko Kovacevic:
> Updated the make build to fix external build issues
>
> Fixes: 3a5c339d51a4 ("mk: support renamed Makefile in external project")
> Cc: stable@dpdk.org
>
> Signed-off-by: Marko Kovacevic <marko.kovacevic@intel.com>
Applied, thanks
05/02/2018 11:53, Kovacevic, Marko:
> > 05/02/2018 11:22, Marko Kovacevic:
> > > Updated the make build to fix external build issues
> >
> > Please explain what is the issue.
> >
> > > Fixes: 3a5c339d51a4 ("mk: support renamed Makefile in external project")
> > > Cc: stable@dpdk.org
> >
> > No need to Cc stable when fixing a bug which is not in a major release.
Sorry for the confusion.
In this case, Cc stable is needed because it fixes a fix of a bug
seen with previous releases.
@@ -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/.