- Notifications
You must be signed in to change notification settings - Fork2
embox/crosstool
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Embox maintains a number of crosstools (binutils, gcc, gdb) that are most likely to workfor embox supported targets. This repo holdscrosstool.sh
, a script that builds crosstoolfor:
i386
microblaze
mips
msp430
powerpc
sparc
For prebuild linux binary please refer to Release section.
The rest of README describes how to build crosstool by yourself.In following textARCH
mean some architecture from listed above.
sudo apt-get install libisl-dev libcloog-isl-dev gcc-multilib g++-multilib libncurses5-dev texinfo bzip2 xz-utils make flex file
./crosstool.sh ARCH
It will download all necessary sources, unpack it, configure, compile and packARCH-elf-toolchain.tar.bz2
Unpack ARCH-elf-toolchain.tar.bz2 and add /dest/ARCH-elf-toolchain/bin to $PATH. Or, just run
./install_crosstool.sh ARCH
In some distros (e.g. Debian) default QEMU version doesn't support some features (e.g. overo ARM machine type), so we recommend to use Linaro QEMU as it's compatible with Embox auto_qemu.sh script.
Source could be obtained here:
https://launchpad.net/qemu-linaro/trunk/2014.01/+download/qemu-linaro-1.7.0-2014.01.tar.gz
Before you start, make sure that you don't have QEMU installed from repos
sudo apt-get remove qemu*
Then you will need some packages to build qemu from source
sudo apt-get install zlib1g-dev libglib2.0-dev autoconf libtool libpixman-1-dev device-tree-compiler libfdt-dev
Finally, you can build and install it
cd /path/to/source/qemu-linaro-1.7.0-2014.01/ && ./configure && make && sudo make install
Once you've updated crosstool.sh or target subscript, pushed you changes, and got OK status from travis,you could tag you commit, then travis will rebuild the crosstools and publish build artifacts in Release section.Workflow is like:
git commit && git push # Suppose travis failed to build everythinggit commit && git push # Suppose travis went OKgit tag -f current # Tag latest commit with
current
tag, overriding previous tag valuegit push origin current # Push tag, triggers travis to publish result undercurrent
release
About
Script to build toolchain for various architectures