Git Product home page Git Product logo

cross-toolchains's Introduction

cross-toolchains

Script for build cross-toolchain for ARMEL, ARMBE, MIPSEL, MIPS, PowerPC, i686

Docker enviroment variables

For use that variables, set them with --build-arg

  • TARGET - Set custom target for toolchain

  • CFLAGS_FOR_TARGET - Set CFLAGS for build taret binaries

  • CXXFLAGS_FOR_TARGET - Set CXXFLAGS for build taret binaries

  • GCC_PARAMS - Set custom flags for build target GCC

  • GLIBC_EX_FLAGS - Set custom flags for build target glibc

  • SSL_MARCH - Set custom -march for build target openssl

For example:

docker build -t mipsel-linux-gnu \
    --build-arg ARCH=mipsel \
    --build-arg GCC_PARAMS="--with-float=soft" \
    .

Execute post scripts

If you need to perform some additional actions after the assembly of the toolchain is complete, add the following file:

docker build -t mipsel-linux-gnu \
    -v /path/to/your_script:/etc/post_toolchain_script.sh \
    --build-arg ARCH=mipsel .

Howto build the docker images

MIPS Little Endian x32

docker build --build-arg ARCH=mipsel -t mipsel-linux-gnu .

MIPS Big Endian x32

docker build --build-arg ARCH=mips -t mips-linux-gnu .

ARM Little Endian x32

docker build --build-arg ARCH=armel -t armel-linux-gnu .

ARM Big Endian x32

docker build --build-arg ARCH=armbe -t armbe-linux-gnu .

i686 Little Endian

docker build --build-arg ARCH=i686 -t i686-linux-gnu .

PowerPC Big Endian x32

docker build --build-arg ARCH=powerpc -t powerpc-linux-gnu .

cross-toolchains's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cross-toolchains's Issues

Compilers not available

It appears to be using distcc but is not available when run:

$ docker run -td -p 3623:3623 powerpc-linux-gnu
7bd4dbc610388d8cb7af23373008e5b6e0e8d3cc211a4eaec68e3b0a2e152ab2

$ docker container inspect -f '{{ .NetworkSettings.IPAddress }}' youthful_cori 
172.17.0.3

$ export DISTCC_HOSTS=172.17.0.3

$ distcc powerpc-linux-gnu-gcc hey.c 
distcc[1117400] (dcc_execvp) ERROR: failed to exec powerpc-linux-gnu-gcc: No such file or directory
distcc[1117399] ERROR: compile hey.c on localhost failed with exit code 110

GDB alpha versions bug.

When running tools.sh for build gdb with postfix 'a', e.g. gdb-7.0a.tar.gz or gdb-6.8a.tar.gz, bug occurs.
In tar.gz archive dir named without 'a' postfix, but script trying change directory to version+a suffix and fail. Also script create build directory with 'a' postfix, but sources in tar.gz archive contains in folder without 'a' postfix.

image

Check gdb 7.0a folders here:

image

image

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.