Skip to content

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

License

Notifications You must be signed in to change notification settings

ziozzang/android-kernel-builder-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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