Script for build cross-toolchain for ARMEL, ARMBE, MIPSEL, MIPS, PowerPC, i686
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" \
.
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 .
docker build --build-arg ARCH=mipsel -t mipsel-linux-gnu .
docker build --build-arg ARCH=mips -t mips-linux-gnu .
docker build --build-arg ARCH=armel -t armel-linux-gnu .
docker build --build-arg ARCH=armbe -t armbe-linux-gnu .
docker build --build-arg ARCH=i686 -t i686-linux-gnu .
docker build --build-arg ARCH=powerpc -t powerpc-linux-gnu .