From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XONtu-0008Rz-Be for ptxdist@pengutronix.de; Mon, 01 Sep 2014 11:27:50 +0200 Received: from mol by ptx.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1XONto-0008Nj-AI for ptxdist@pengutronix.de; Mon, 01 Sep 2014 11:27:44 +0200 Date: Mon, 1 Sep 2014 11:27:44 +0200 From: Michael Olbrich Message-ID: <20140901092744.GG12397@pengutronix.de> References: <1408053056-2883-1-git-send-email-dev@lynxeye.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1408053056-2883-1-git-send-email-dev@lynxeye.de> Subject: Re: [ptxdist] [PATCH] fix toolchain build with active icecc Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de On Fri, Aug 15, 2014 at 12:31:44PM +0200, Lucas Stach wrote: > From: Lucas Stach > > 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 > --- > 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