GithubHelp home page GithubHelp logo

crosstool's Introduction

Embox Crosstool

Build Status

Embox maintains a number of crosstools (binutils, gcc, gdb) that are most likely to work for embox supported targets. This repo holds crosstool.sh, a script that builds crosstool for:

  • 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 text ARCH mean some architecture from listed above.

Prerequisites

sudo apt-get install libisl-dev libcloog-isl-dev gcc-multilib g++-multilib libncurses5-dev texinfo bzip2 xz-utils make flex file

Building

./crosstool.sh ARCH

It will download all necessary sources, unpack it, configure, compile and pack ARCH-elf-toolchain.tar.bz2

Installing

Unpack ARCH-elf-toolchain.tar.bz2 and add /dest/ARCH-elf-toolchain/bin to $PATH. Or, just run

./install_crosstool.sh ARCH

Using QEMU to run image

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

For Crosstool developers

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 everything git commit && git push # Suppose travis went OK git tag -f current # Tag latest commit with current tag, overriding previous tag value git push origin current # Push tag, triggers travis to publish result under current release

crosstool's People

Contributors

antonkozlov avatar frantony avatar deryugin avatar anton-bondarev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.