alexanderwolz / aosp-docker

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:Apache License 2.0


Languages

Language:Dockerfile 100.0%