DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] mk: fix external builds with relative output dir
@ 2017-04-26 21:01 Jan Blunck
  2017-04-30 20:49 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Blunck @ 2017-04-26 21:01 UTC (permalink / raw)
  To: dev

In case the output directory (O=) is undefined or a relative directory lets
turn it into an absolute path before passing it on. Otherwise the output
directory is created relative to the subdir, e.g. pktgen/app/build/... and
pktgen/lib/lua/src/build/...

Signed-off-by: Jan Blunck <jblunck@infradead.org>
---
 mk/rte.extsubdir.mk | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/mk/rte.extsubdir.mk b/mk/rte.extsubdir.mk
index 3e733d8..d21791b 100644
--- a/mk/rte.extsubdir.mk
+++ b/mk/rte.extsubdir.mk
@@ -33,8 +33,8 @@ MAKEFLAGS += --no-print-directory
 ALL_DEPDIRS := $(patsubst DEPDIRS-%,%,$(filter DEPDIRS-%,$(.VARIABLES)))
 
 # output directory
-O ?= .
-BASE_OUTPUT ?= $(O)
+O ?= $(CURDIR)
+BASE_OUTPUT ?= $(abspath $(O))
 CUR_SUBDIR ?= .
 
 .PHONY: all
-- 
2.7.4

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] mk: fix external builds with relative output dir
  2017-04-26 21:01 [dpdk-dev] [PATCH] mk: fix external builds with relative output dir Jan Blunck
@ 2017-04-30 20:49 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2017-04-30 20:49 UTC (permalink / raw)
  To: Jan Blunck; +Cc: dev

26/04/2017 23:01, Jan Blunck:
> In case the output directory (O=) is undefined or a relative directory lets
> turn it into an absolute path before passing it on. Otherwise the output
> directory is created relative to the subdir, e.g. pktgen/app/build/... and
> pktgen/lib/lua/src/build/...
> 
> Signed-off-by: Jan Blunck <jblunck@infradead.org>

Applied, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-04-30 20:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-26 21:01 [dpdk-dev] [PATCH] mk: fix external builds with relative output dir Jan Blunck
2017-04-30 20:49 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).