Giter VIP home page Giter VIP logo

aosp-docker's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.