From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/2] toolchain-external: add a check for unsupported toolchains
Date: Mon, 1 Feb 2016 16:47:49 +0100 [thread overview]
Message-ID: <20160201164749.29d9afd5@free-electrons.com> (raw)
In-Reply-To: <56AF7262.1080002@gmail.com>
Hello,
On Mon, 1 Feb 2016 15:57:38 +0100, Romain Naour wrote:
> > The variable should not be named non_existent_sysroot since it may
> > exist. Also, you could use the existing toolchain_find_libc_a function,
> > no? So maybe:
> >
> > libc_a_path=$(call toolchain_find_libc_a,$${__CROSS_CC}) ; \
>
> ok for the variable naming, but I didn't used toolchain_find_libc_a directly
> because realpath -f is used by this function.
>
> The path returned is $PWD/libc.a when something go wrong with the sysroot.
> So the test would be test -d in this case but I think it's better to test the
> path returned by __CROSS_CC directly against "libc.a".
Ah, right. So just keep your code as it was: call gcc directly with
-print-file-name.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
prev parent reply other threads:[~2016-02-01 15:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-01 13:40 [Buildroot] [PATCH v2 1/2] toolchain-external: add a check for unsupported toolchains Romain Naour
2016-02-01 13:40 ` [Buildroot] [PATCH v2 2/2] toolchain-external: move the sysroot toolchain support check to helper function Romain Naour
2016-02-01 13:43 ` Romain Naour
2016-02-01 14:35 ` Thomas Petazzoni
2016-02-01 14:38 ` [Buildroot] [PATCH v2 1/2] toolchain-external: add a check for unsupported toolchains Thomas Petazzoni
2016-02-01 14:57 ` Romain Naour
2016-02-01 15:47 ` Thomas Petazzoni [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160201164749.29d9afd5@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox