Tip: Automate the installation of the CodeSourcery toolchain
Lucas R. Magasweran
external+codesourcery.com at magasweran.com
Thu Jul 14 19:20:11 UTC 2011
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
More information about the power-gnu-discuss
mailing list