Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/phstudy/docker-aosp-kernel-builder
Docker image to build an AOSP kernel
https://github.com/phstudy/docker-aosp-kernel-builder
aosp docker-image google-pixel kernel
Last synced: about 1 month ago
JSON representation
Docker image to build an AOSP kernel
- Host: GitHub
- URL: https://github.com/phstudy/docker-aosp-kernel-builder
- Owner: phstudy
- Created: 2018-12-01T23:13:47.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-17T12:14:05.000Z (about 1 year ago)
- Last Synced: 2024-10-13T19:07:27.130Z (2 months ago)
- Topics: aosp, docker-image, google-pixel, kernel
- Language: Dockerfile
- Size: 4.88 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Docker AOSP kernel builder [![Docker Build Status](https://img.shields.io/docker/automated/study/docker-aosp-kernel-builder.svg)](https://hub.docker.com/r/study/docker-aosp-kernel-builder/)
Docker image to build an AOSP kernel## Example
### Linux
```
# Checkout kernel source and switch to `android-msm-marlin-3.18-pie-r2` branch (Google Pixel XL - marlin)
$ git clone --single-branch --branch android-msm-marlin-3.18-pie-r2 --depth 1 https://android.googlesource.com/kernel/msm# Build AOSP kernel for Google Pixel XL
$ cd msm
$ docker run --rm --volume $(pwd):/workdir study/docker-aosp-kernel-builder /bin/bash -c "make marlin_defconfig && make -j8"# Flash your kernel with fastboot
$ adb reboot bootloader
$ fastboot flash kernel arch/arm64/boot/Image.lz4-dtb
```### OSX
```
# AOSP kernel can only be built under [case-sensitive file system](https://source.android.com/setup/build/initializing#setting-up-a-mac-os-x-build-environment), so we need to create case-sensitive file system image
$ hdiutil create -type SPARSE -volname "AOSP kernel" -fs 'Case-sensitive Journaled HFS+' -size 8g aosp_kernel.dmg# Mount the image to `/Volumes/aosp_kernel_workspace`
$ hdiutil attach aosp_kernel.dmg.sparseimage -mountpoint /Volumes/aosp_kernel_workspace
$ cd /Volumes/aosp_kernel_workspace# Checkout kernel source and switch to `android-msm-marlin-3.18-pie-r2` branch (Google Pixel XL - marlin)
$ git clone --single-branch --branch android-msm-marlin-3.18-pie-r2 --depth 1 https://android.googlesource.com/kernel/msm# Build AOSP kernel for Google Pixel XL
$ cd msm
$ docker run --rm --volume $(pwd):/workdir study/docker-aosp-kernel-builder /bin/bash -c "make marlin_defconfig && make -j8"# Flash your kernel with fastboot
$ adb reboot bootloader
$ fastboot flash kernel arch/arm64/boot/Image.lz4-dtb# Umount the image
$ cd ~
$ hdiutil detach /Volumes/aosp_kernel_workspace
```