From external+codesourcery.com at magasweran.com Thu Jul 14 19:20:11 2011 From: external+codesourcery.com at magasweran.com (Lucas R. Magasweran) Date: Thu, 14 Jul 2011 12:20:11 -0700 Subject: Tip: Automate the installation of the CodeSourcery toolchain Message-ID: <1310671211.2551.91.camel@engws02.econolite.com> The command below can be used to automate the installation of the CodeSourcery toolchain. I needed this for a continuous integration automated build machine. Since I don't know how to make the installation non-interactive I scripted the responses. Hope this helps others looking to do the same. for i in {1..21}; do if [ $i -eq 14 ]; then echo "Y"; elif [ $i -eq 16 ]; then echo "${PWD}/tools"; elif [ $i -eq 17 ]; then echo "Y"; elif [ $i -eq 18 ]; then echo "4"; else echo ""; fi; done | ./tools/freescale-2010.09-55-powerpc-linux-gnu.bin 2>&1 | tail --lines=6 | head --lines=4 From carlos at codesourcery.com Thu Jul 14 20:27:37 2011 From: carlos at codesourcery.com (Carlos O'Donell) Date: Thu, 14 Jul 2011 16:27:37 -0400 Subject: [power-gnu-discuss] Tip: Automate the installation of the CodeSourcery toolchain In-Reply-To: <1310671211.2551.91.camel@engws02.econolite.com> References: <1310671211.2551.91.camel@engws02.econolite.com> Message-ID: <4E1F5139.2050507@codesourcery.com> On 7/14/2011 3:20 PM, Lucas R. Magasweran wrote: > The command below can be used to automate the installation of the > CodeSourcery toolchain. I needed this for a continuous integration > automated build machine. Since I don't know how to make the installation > non-interactive I scripted the responses. Hope this helps others looking > to do the same. > > for i in {1..21}; do if [ $i -eq 14 ]; then echo "Y"; elif [ $i -eq 16 > ]; then echo "${PWD}/tools"; elif [ $i -eq 17 ]; then echo "Y"; elif [ > $i -eq 18 ]; then echo "4"; else echo ""; fi; done | > ./tools/freescale-2010.09-55-powerpc-linux-gnu.bin 2>&1 | tail > --lines=6 | head --lines=4 Note: You should pass "-i console" to the installer to make it go into console install mode. Cheers, Carlos. -- Carlos O'Donell Mentor Graphics / CodeSourcery carlos at codesourcery.com +1 (613) 963 1026 From external+codesourcery.com at magasweran.com Wed Jul 27 18:19:54 2011 From: external+codesourcery.com at magasweran.com (Lucas R. Magasweran) Date: Wed, 27 Jul 2011 11:19:54 -0700 Subject: [power-gnu-discuss] Tip: Automate the installation of the CodeSourcery toolchain In-Reply-To: <4E1F5139.2050507@codesourcery.com> References: <1310671211.2551.91.camel@engws02.econolite.com> <4E1F5139.2050507@codesourcery.com> Message-ID: <1311790794.16411.13.camel@engws02.econolite.com> On Thu, 2011-07-14 at 16:27 -0400, Carlos O'Donell wrote: > Note: You should pass "-i console" to the installer to make it go into > console install mode. Thank you Carlos. That ensures the console installer is used even on a host with a graphical front-end. Nice catch! On a related note, I would like to install the Sourcery toolchain to an existing directory but the installer does not allow this. Is there a way to override this behavior? I will not use this force the update of a previous toolchain installation. =============================================================================== Directory contains old tools ---------------------------- The directory you have chosen contains old tools that might cause Sourcery G++ Lite for Power GNU/Linux to function incorrectly. Please choose another install directory. PRESS TO ACCEPT THE FOLLOWING -> Back: