Android build environment for Fairphone 2
10K+
Creates an Android build environment for Fairphone 2 based on official build instructions provided by Fairphone.
Get a pre-built image from Docker hub with docker pull jftr/fairphone2-build-env or use the Dockerfile to build yourself.
After building the image, build environment for Fairphone 2 is setup:
repo is installedIn order to make all changes persistent, /var/fairphone_os/ should be mounted as a shared volume by using docker run with the -v $PATH_ON_HOST/:/var/fairphone_os/ option (where $PATH_ON_HOST is the path at which you would want to store the repository and builds on your host. This should be empty initially).
All steps you need to take are described in the official build instructions. In short:
All these steps (and some additions discussed on the Fairphone community board) can be executed with the default command of the image:
$ mkdir fairphone_os
$ PATH_ON_HOST=`readlink -f fairphone_os`
$ docker run -v $PATH_ON_HOST:/var/fairphone_os/ jftr/fairphone2-build-env
Alternatively you can get a shell and build manually (or continue an interrupted build without re-downloading all repositories):
$ docker run -v $PATH_ON_HOST:/var/fairphone_os/ -i -t jftr/fairphone2-build-env /bin/bash
Once your build is complete, you can find it in $PATH_ON_HOST.
Use your host to flash the image to your Fairphone.
ccache is not configured). Pull requests are welcome.openjdk. This seems to be due to a kernel bug.devicemapper storage backend.Content type
Image
Digest
Size
274.5 MB
Last updated
over 8 years ago
docker pull jftr/fairphone2-build-env