* [Buildroot] FW: [PATCH] external toolchain: use relative path to external toolchain.
@ 2014-02-23 8:29 Noam Camus
2014-03-04 22:29 ` Yann E. MORIN
2014-04-20 9:12 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: Noam Camus @ 2014-02-23 8:29 UTC (permalink / raw)
To: buildroot
Now configuration may include relative path to external toolchain.
Signed-off-by: Noam Camus <noamc@ezchip.com>
---
toolchain/toolchain-external/toolchain-external.mk | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/toolchain/toolchain-external/toolchain-external.mk b/toolchain/toolchain-external/toolchain-external.mk
index a7bfafc..46f33a9 100644
--- a/toolchain/toolchain-external/toolchain-external.mk
+++ b/toolchain/toolchain-external/toolchain-external.mk
@@ -131,7 +131,7 @@ TOOLCHAIN_EXTERNAL_PREFIX=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PREFIX))
ifeq ($(BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD),y)
TOOLCHAIN_EXTERNAL_INSTALL_DIR=$(HOST_DIR)/opt/ext-toolchain
else
-TOOLCHAIN_EXTERNAL_INSTALL_DIR=$(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PATH))
+TOOLCHAIN_EXTERNAL_INSTALL_DIR=$(abspath $(call qstrip,$(BR2_TOOLCHAIN_EXTERNAL_PATH)))
endif
ifeq ($(TOOLCHAIN_EXTERNAL_INSTALL_DIR),)
--
1.7.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] FW: [PATCH] external toolchain: use relative path to external toolchain.
2014-02-23 8:29 [Buildroot] FW: [PATCH] external toolchain: use relative path to external toolchain Noam Camus
@ 2014-03-04 22:29 ` Yann E. MORIN
2014-04-20 9:12 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2014-03-04 22:29 UTC (permalink / raw)
To: buildroot
Noam, All,
On 2014-02-23 08:29 +0000, Noam Camus spake thusly:
> Now configuration may include relative path to external toolchain.
What is the use-case for providing a relative path?
Do not forget that relative paths are always relative to the top dir of
the Buildroot source tree, not the current directory.
For example, if you build out-of-tree, then the relative paths are still
relative to Buildroot's tree, not $(O), which can have some strange
consequences:
# ls -lF
buildroot/
ext-toolchain/
$ mkdir -p my/own/output/dir
$ cd my/own/output/dir
$ make -C ../../../../buildroot O=$(pwd) my_defconfig all
So, you would have to set BR2_TOOLCHAIN_EXTERNAL_PATH=../ext-toolchain,
which is not straightforward, as most users would expect to set a path
relative to the current working directory. [0]
But, if you want to use relative paths, you can do use $(TOPDIR) or
$(CONFIG_DIR) as a prefix.
So, I'm not really sure we want that.
[0] This is not Buildroot's fault, but a standard behaviour of make,
that prevents us from knowing the directory make was run from in the
first place. This information is lost, and can not be retrieved from
inside a Makefile.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] FW: [PATCH] external toolchain: use relative path to external toolchain.
2014-02-23 8:29 [Buildroot] FW: [PATCH] external toolchain: use relative path to external toolchain Noam Camus
2014-03-04 22:29 ` Yann E. MORIN
@ 2014-04-20 9:12 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2014-04-20 9:12 UTC (permalink / raw)
To: buildroot
Dear Noam Camus,
On Sun, 23 Feb 2014 08:29:34 +0000, Noam Camus wrote:
> Now configuration may include relative path to external toolchain.
>
> Signed-off-by: Noam Camus <noamc@ezchip.com>
> ---
> toolchain/toolchain-external/toolchain-external.mk | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
A week or two after you submitted this patch, Yann E. Morin asked some
questions about why this is needed (e-mail from March, 4th), and you
never came back with answers to Yann's questions. Since Yann basically
questions the usefulness of the patch, I'm going to mark this patch as
"Rejected" for now in our patchwork tool. If, despite Yann comments,
you feel that this patch is still useful for you, please resubmit with
a more detailed commit log that explains *why* it is needed.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-04-20 9:12 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-23 8:29 [Buildroot] FW: [PATCH] external toolchain: use relative path to external toolchain Noam Camus
2014-03-04 22:29 ` Yann E. MORIN
2014-04-20 9:12 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox