- android-kernel-builder-docker
- Dockerized Android Kernel build Environments.
- build with GCC or Clang (latest prebuilt AOSP env.)
- worked on any Docker environments.
- Jioh L. Jung [email protected]
-
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/"
fastboot boot zImage
Tested with Poco F1/FrancoKernel, Poco F1/Derp