Skip to content

Docker Build Container for Android Open Source Project (AOSP) v14+ providing needed environment and toolchain for building Android artifacts

License

Notifications You must be signed in to change notification settings

alexanderwolz/aosp-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Container for AOSP (Docker)

GitHub release (latest by date) GitHub GitHub GitHub GitHub GitHub code size in bytes GitHub all releases

About

This repository holds a Dockerfile to provide the needed toolchain for building AOSP14+

Install Docker CE and Compose

  1. Install Docker CE and Docker-Compose on your host machine (recommended: Debian, 30GB+, 8 Cores, 250GB+ HDD)
  2. see https://docs.docker.com/engine/install/debian/ and https://docs.docker.com/compose/install/

Run

  1. checkout repo and change config/gitconfig file using your full name and email
  2. docker-compose up -d --build
  3. docker exec -it aosp_builder bash

Download AOSP source

This follows the normal AOSP approach, e.g.

  1. repo init --depth=1 -u https://android.googlesource.com/platform/manifest -b android-14.0.0_r14
  2. repo sync -c --no-tags --no-clone-bundle -j$(nproc --all)

See also Android tags

Build AOSP

This follows the normal AOSP approach, e.g.

  1. source build/envsetup.sh
  2. lunch aosp_car_arm64
  3. rm -rf /aosp/out (cleans build target folder)
  4. m -j$(nproc --all)

Tips

Use screen on your docker host if you connect via ssh

  1. screen -S aosp creates a screen session
  2. screen -r aosp attaches to a screen session
  3. screen -d or CTRL+a + CTRL+d detaches a screen session
  4. exit closes a screen session

About

Docker Build Container for Android Open Source Project (AOSP) v14+ providing needed environment and toolchain for building Android artifacts

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published