• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

.gitignoreD22-Nov-202310

DockerfileD22-Nov-20231.2 KiB

README.mdD22-Nov-2023670

README.md

1The Dockerfile in this directory sets up an Ubuntu Trusty image ready to build
2a variety of Android branches (>= Lollipop). It's particulary useful to build
3older branches that required 14.04 if you've upgraded to something newer.
4
5First, build the image:
6```
7# Copy your host gitconfig, or create a stripped down version
8$ cp ~/.gitconfig gitconfig
9$ docker build --build-arg userid=$(id -u) --build-arg groupid=$(id -g) --build-arg username=$(id -un) -t android-build-trusty .
10```
11
12Then you can start up new instances with:
13```
14$ docker run -it --rm -v $ANDROID_BUILD_TOP:/src android-build-trusty
15> cd /src; source build/envsetup.sh
16> lunch aosp_arm-eng
17> m -j50
18```
19