Skip to content
Easy to build chromebook toolchains environment with docker
Shell Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cross-armv7
cross-armv8
cross-x64
cross-x86
dist
packages
.gitignore
Dockerfile.in
LICENSE
Makefile
README.md
compressdoc
create_package
env.docker

README.md

chrome-cross

Toolchain builder for chromebrew

Support X86, X86-64, ARM and AARCH64 chipsets, but not tested on AARCH64 yet

Overview

Made building environment of toolchains for all chromebook chipsets for the ease of maintenance.

Prerequisites

You will need a 64 bits linux box with docker implemented.

Usage

Make packages using cross compiler by following commands. This may download docker images for cross comppiler.

make armv7 | armv8 | x64 | x86 | all

You will get toolchains under dist directory.

$ ls dist
binutils-2.25-chromeos-aarch64.tar.xz       isl-0.18-chromeos-i686.tar.xz
binutils-2.25-chromeos-aarch64.tar.xz.sha1  isl-0.18-chromeos-i686.tar.xz.sha1
binutils-2.25-chromeos-armv7l.tar.xz        isl-0.18-chromeos-x86_64.tar.xz
binutils-2.25-chromeos-armv7l.tar.xz.sha1   isl-0.18-chromeos-x86_64.tar.xz.sha1
binutils-2.25-chromeos-i686.tar.xz          libssh2-1.8.0-chromeos-aarch64.tar.xz
binutils-2.25-chromeos-i686.tar.xz.sha1     libssh2-1.8.0-chromeos-aarch64.tar.xz.sha1
binutils-2.25-chromeos-x86_64.tar.xz        libssh2-1.8.0-chromeos-armv7l.tar.xz
binutils-2.25-chromeos-x86_64.tar.xz.sha1   libssh2-1.8.0-chromeos-armv7l.tar.xz.sha1
cloog-0.18.4-chromeos-aarch64.tar.xz        libssh2-1.8.0-chromeos-i686.tar.xz
cloog-0.18.4-chromeos-aarch64.tar.xz.sha1   libssh2-1.8.0-chromeos-i686.tar.xz.sha1
cloog-0.18.4-chromeos-armv7l.tar.xz         libssh2-1.8.0-chromeos-x86_64.tar.xz
cloog-0.18.4-chromeos-armv7l.tar.xz.sha1    libssh2-1.8.0-chromeos-x86_64.tar.xz.sha1
cloog-0.18.4-chromeos-i686.tar.xz           linux-headers-3.18-chromeos-aarch64.tar.xz
cloog-0.18.4-chromeos-i686.tar.xz.sha1      linux-headers-3.18-chromeos-aarch64.tar.xz.sha1
cloog-0.18.4-chromeos-x86_64.tar.xz         linux-headers-3.18-chromeos-armv7l.tar.xz
cloog-0.18.4-chromeos-x86_64.tar.xz.sha1    linux-headers-3.18-chromeos-armv7l.tar.xz.sha1
create_package.sh                           linux-headers-3.18-chromeos-i686.tar.xz
curl-7.54.1-chromeos-aarch64.tar.xz         linux-headers-3.18-chromeos-i686.tar.xz.sha1
curl-7.54.1-chromeos-aarch64.tar.xz.sha1    linux-headers-3.18-chromeos-x86_64.tar.xz
curl-7.54.1-chromeos-armv7l.tar.xz          linux-headers-3.18-chromeos-x86_64.tar.xz.sha1
curl-7.54.1-chromeos-armv7l.tar.xz.sha1     mpc-1.0.3-chromeos-aarch64.tar.xz
curl-7.54.1-chromeos-i686.tar.xz            mpc-1.0.3-chromeos-aarch64.tar.xz.sha1
curl-7.54.1-chromeos-i686.tar.xz.sha1       mpc-1.0.3-chromeos-armv7l.tar.xz
curl-7.54.1-chromeos-x86_64.tar.xz          mpc-1.0.3-chromeos-armv7l.tar.xz.sha1
curl-7.54.1-chromeos-x86_64.tar.xz.sha1     mpc-1.0.3-chromeos-i686.tar.xz
expat-2.2.1-chromeos-aarch64.tar.xz         mpc-1.0.3-chromeos-i686.tar.xz.sha1
expat-2.2.1-chromeos-aarch64.tar.xz.sha1    mpc-1.0.3-chromeos-x86_64.tar.xz
expat-2.2.1-chromeos-armv7l.tar.xz          mpc-1.0.3-chromeos-x86_64.tar.xz.sha1
expat-2.2.1-chromeos-armv7l.tar.xz.sha1     mpfr-3.1.5-chromeos-aarch64.tar.xz
expat-2.2.1-chromeos-i686.tar.xz            mpfr-3.1.5-chromeos-aarch64.tar.xz.sha1
expat-2.2.1-chromeos-i686.tar.xz.sha1       mpfr-3.1.5-chromeos-armv7l.tar.xz
expat-2.2.1-chromeos-x86_64.tar.xz          mpfr-3.1.5-chromeos-armv7l.tar.xz.sha1
expat-2.2.1-chromeos-x86_64.tar.xz.sha1     mpfr-3.1.5-chromeos-i686.tar.xz
gcc-4.9.4-chromeos-aarch64.tar.xz           mpfr-3.1.5-chromeos-i686.tar.xz.sha1
gcc-4.9.4-chromeos-aarch64.tar.xz.sha1      mpfr-3.1.5-chromeos-x86_64.tar.xz
gcc-4.9.4-chromeos-armv7l.tar.xz            mpfr-3.1.5-chromeos-x86_64.tar.xz.sha1
gcc-4.9.4-chromeos-armv7l.tar.xz.sha1       ncurses-5.9-chromeos-aarch64.tar.xz
gcc-4.9.4-chromeos-i686.tar.xz              ncurses-5.9-chromeos-aarch64.tar.xz.sha1
gcc-4.9.4-chromeos-i686.tar.xz.sha1         ncurses-5.9-chromeos-armv7l.tar.xz
gcc-4.9.4-chromeos-x86_64.tar.xz            ncurses-5.9-chromeos-armv7l.tar.xz.sha1
gcc-4.9.4-chromeos-x86_64.tar.xz.sha1       ncurses-5.9-chromeos-i686.tar.xz
git-2.13.0-chromeos-aarch64.tar.xz          ncurses-5.9-chromeos-i686.tar.xz.sha1
git-2.13.0-chromeos-aarch64.tar.xz.sha1     ncurses-5.9-chromeos-x86_64.tar.xz
git-2.13.0-chromeos-armv7l.tar.xz           ncurses-5.9-chromeos-x86_64.tar.xz.sha1
git-2.13.0-chromeos-armv7l.tar.xz.sha1      openssl-1.0.2l-chromeos-aarch64.tar.xz
git-2.13.0-chromeos-i686.tar.xz             openssl-1.0.2l-chromeos-aarch64.tar.xz.sha1
git-2.13.0-chromeos-i686.tar.xz.sha1        openssl-1.0.2l-chromeos-armv7l.tar.xz
git-2.13.0-chromeos-x86_64.tar.xz           openssl-1.0.2l-chromeos-armv7l.tar.xz.sha1
git-2.13.0-chromeos-x86_64.tar.xz.sha1      openssl-1.0.2l-chromeos-i686.tar.xz
glibc-2.19-chromeos-aarch64.tar.xz          openssl-1.0.2l-chromeos-i686.tar.xz.sha1
glibc-2.19-chromeos-aarch64.tar.xz.sha1     openssl-1.0.2l-chromeos-x86_64.tar.xz
glibc-2.19-chromeos-armv7l.tar.xz           openssl-1.0.2l-chromeos-x86_64.tar.xz.sha1
glibc-2.19-chromeos-armv7l.tar.xz.sha1      readline-6.3p8-chromeos-aarch64.tar.xz
glibc-2.19-chromeos-i686.tar.xz             readline-6.3p8-chromeos-aarch64.tar.xz.sha1
glibc-2.19-chromeos-i686.tar.xz.sha1        readline-6.3p8-chromeos-armv7l.tar.xz
glibc-2.19-chromeos-x86_64.tar.xz           readline-6.3p8-chromeos-armv7l.tar.xz.sha1
glibc-2.19-chromeos-x86_64.tar.xz.sha1      readline-6.3p8-chromeos-i686.tar.xz
glibc-2.23-chromeos-aarch64.tar.xz          readline-6.3p8-chromeos-i686.tar.xz.sha1
glibc-2.23-chromeos-aarch64.tar.xz.sha1     readline-6.3p8-chromeos-x86_64.tar.xz
glibc-2.23-chromeos-armv7l.tar.xz           readline-6.3p8-chromeos-x86_64.tar.xz.sha1
glibc-2.23-chromeos-armv7l.tar.xz.sha1      ruby-2.4.1-chromeos-aarch64.tar.xz
glibc-2.23-chromeos-i686.tar.xz             ruby-2.4.1-chromeos-aarch64.tar.xz.sha1
glibc-2.23-chromeos-i686.tar.xz.sha1        ruby-2.4.1-chromeos-armv7l.tar.xz
glibc-2.23-chromeos-x86_64.tar.xz           ruby-2.4.1-chromeos-armv7l.tar.xz.sha1
glibc-2.23-chromeos-x86_64.tar.xz.sha1      ruby-2.4.1-chromeos-i686.tar.xz
gmp-6.1.2-chromeos-aarch64.tar.xz           ruby-2.4.1-chromeos-i686.tar.xz.sha1
gmp-6.1.2-chromeos-aarch64.tar.xz.sha1      ruby-2.4.1-chromeos-x86_64.tar.xz
gmp-6.1.2-chromeos-armv7l.tar.xz            ruby-2.4.1-chromeos-x86_64.tar.xz.sha1
gmp-6.1.2-chromeos-armv7l.tar.xz.sha1       zlib-1.2.11-chromeos-aarch64.tar.xz
gmp-6.1.2-chromeos-i686.tar.xz              zlib-1.2.11-chromeos-aarch64.tar.xz.sha1
gmp-6.1.2-chromeos-i686.tar.xz.sha1         zlib-1.2.11-chromeos-armv7l.tar.xz
gmp-6.1.2-chromeos-x86_64.tar.xz            zlib-1.2.11-chromeos-armv7l.tar.xz.sha1
gmp-6.1.2-chromeos-x86_64.tar.xz.sha1       zlib-1.2.11-chromeos-i686.tar.xz
isl-0.18-chromeos-aarch64.tar.xz            zlib-1.2.11-chromeos-i686.tar.xz.sha1
isl-0.18-chromeos-aarch64.tar.xz.sha1       zlib-1.2.11-chromeos-x86_64.tar.xz
isl-0.18-chromeos-armv7l.tar.xz             zlib-1.2.11-chromeos-x86_64.tar.xz.sha1
isl-0.18-chromeos-armv7l.tar.xz.sha1

If you want to not stripped version of binary packages, please type following instead.

NOSTRIP=yes make armv7 | armv8 | x64 | x86 | all

Packages

Made following packages for armv7, armv8, x64 and x86.

  • linuxheaders, binutils, glibc219, glibc223, gmp, mpfr, mpc, isl, cloog and gcc
  • zlib, openssl, libssh2, curl, expat, git, ncurses, readline and ruby

All of them are stripped and manual/info-compressed by default.

Other packages

I would like to compile other packages also using this environemt, but it is difficult to do so since it requires Chromeos environment. For example, a package may require /usr/lib/libcrypt.so, but this cross compiling environment has only /usr/local/lib stuff. Chromeos environment contains such /usr/lib stuff.

I may enhance this system or use dockcross for such purpose, but it's not finished yet.

RPATH configuration

All binary and shared libraries are compiled with appropriate -rpath options like below.

chipset uname -m rpaths
armv7 armv7l /usr/local/lib
armv8 aarch64 /usr/local/lib:/usr/local/lib64
x64 x86_64 /usr/local/lib:/usr/local/lib64
x86 i686 /usr/local/lib

I'm not sure what I should do for /usr/local/lib32, so I'm currently not using it.

Cross Compiler

If you would like to create cross compiler by your self, use following commands.

make cross-armv7 | cross-armv8 | cross-x64 | cross-x86 | cross

Version Hitory

Version Description
v1.8 Strip and compress manual/info
v1.7 Add libssh2, git, ruby and others
v1.6 Change to use gcc-4.9.4
v1.5 Change to use gcc-7.1.0
v1.4 Change armv8 configuration to use armv7 configuration
v1.3 Remove static libraries
v1.2 Add FORTRAN
v1.1 Change to use isl and cloog for gcc
v1.0 First release

License

@ 2016-2017 Kazushi (Jam) Marukawa, All rights reserved.

This project including all of its source files is released under the terms of GNU General Public License (version 3 or later)

Thanks lyxell for GCC/musl toolchains for Chrome OS

You can’t perform that action at this time.