[power-gnu-discuss] Tip: Automate the installation of the CodeSourcery toolchain

Carlos O'Donell carlos at codesourcery.com
Thu Jul 14 20:27:37 UTC 2011


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



More information about the power-gnu-discuss mailing list