Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ziozzang/android-kernel-builder-docker

Dockerized Android Kernel build Environments. for Android PIE(with gcc/clang)
https://github.com/ziozzang/android-kernel-builder-docker

android android-pie beryllium boot-image build clang custom-kernel developer-environment docker example gcc kernel mtk poco-f1 pocophone qualcomm xda xiaomi

Last synced: 10 days ago
JSON representation

Dockerized Android Kernel build Environments. for Android PIE(with gcc/clang)

Awesome Lists containing this project

README

        

# Tl;DR
* android-kernel-builder-docker
* Dockerized Android Kernel build Environments.
* build with GCC or Clang (latest prebuilt AOSP env.)
* worked on any Docker environments.

# Author
* Jioh L. Jung

# Usages
## Build
* Prerequisit
* Must be mounted kernel git source at "/kernel"
* or clone at any directory.

* Build with gcc

```
docker run \
-it --rm \
--privileged=true \
--volume $(pwd)/derp:/kernel \
--entrypoint=bash \
ziozzang/android-build-tools -c "build_kernel_gcc beryllium_defconfig"
```

* Build with Clang

```
docker run \
-it --rm \
--privileged=true \
--volume $(pwd)/derp:/kernel \
--entrypoint=bash \
ziozzang/android-build-tools -c "build_kernel_gcc beryllium_defconfig"
```

* Build inside container

```
# default shell will be zsh.
docker run \
-it --rm \
--privileged=true \
--volume $(pwd)/derp:/kernel \
ziozzang/android-build-tools

# Inside container
git clone ........
build_kernel_gcc some_predefined_defconfig

# or...
build_kernel_clang some_predefined_defconfig

```

* second parameter is generally provided by kernel developer.
* for example Franco Kernel for Pocophone F1 is 'franco_defconfig'
* for qualcomm or MTK, configuration is exised on "./arch/arm64/configs/"

## Boot with Android Devices
```
fastboot boot zImage
```

# Test
Tested with Poco F1/FrancoKernel, Poco F1/Derp