From: Michael Olbrich <m.olbrich@pengutronix.de>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH] fix toolchain build with active icecc
Date: Mon, 1 Sep 2014 11:27:44 +0200 [thread overview]
Message-ID: <20140901092744.GG12397@pengutronix.de> (raw)
In-Reply-To: <1408053056-2883-1-git-send-email-dev@lynxeye.de>
On Fri, Aug 15, 2014 at 12:31:44PM +0200, Lucas Stach wrote:
> From: Lucas Stach <l.stach@pengutronix.de>
>
> For toolchain builds to work when icecc is activated
> we still need to create the host environment, otherwise
> we provide an empty ICECC_VERSION and hilarity ensues.
>
> As we don't have a selected_toolchain in this case,
> simply check if we already have a packaged env, otherwise
> create one.
I've commited a different fix. Please test.
Michael
> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
> ---
> For now I only checked that the build finishes
> successfully with this patch, but didn't check if the
> resulting toolchain works correctly.
> ---
> bin/ptxdist | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
>
> diff --git a/bin/ptxdist b/bin/ptxdist
> index aafccf8..0718607 100755
> --- a/bin/ptxdist
> +++ b/bin/ptxdist
> @@ -618,6 +618,24 @@ check_compiler() {
>
> if ptxd_get_ptxconf PTXCONF_BUILD_TOOLCHAIN >/dev/null; then
> PATH="${wrapper_dir}:${PATH}"
> + if [ -n "${PTXDIST_ICECC}" ]; then
> + local icecc_dir="${sysroot_host}/lib/icecc"
> + if ! "${PTXDIST_ICECC}" --version | grep -q 'ICECC 1\.'; then
> + ptxd_bailout "PTXdist only supports icecc 1.x"
> + fi
> + if ! stat -t "${icecc_dir}/host"/*.tar.gz >/dev/null 2>&1; then
> + mkdir -p "${icecc_dir}/host" &&
> + (
> + echo "Creating icecc host environment..."
> + cd "${icecc_dir}/host"
> + "${PTXDIST_ICECC_CREATE_ENV}" --gcc \
> + "${wrapper_dir}/real/gcc" \
> + "${wrapper_dir}/real/g++" > /dev/null 2>&1 || \
> + ptxd_bailout "Failed!"
> + )
> + fi
> + export ICECC_VERSION_HOST="$(ls "${icecc_dir}/host"/*.tar.gz)"
> + fi
> return
> fi
>
> --
> 1.9.3
>
>
>
> --
> ptxdist mailing list
> ptxdist@pengutronix.de
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
--
ptxdist mailing list
ptxdist@pengutronix.de
prev parent reply other threads:[~2014-09-01 9:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-14 21:50 Lucas Stach
2014-09-01 9:27 ` Michael Olbrich [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=20140901092744.GG12397@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
/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