Robber Pen
Robber Pen

Reputation: 1093

Android AOSP make kernel menuconfig

What is kernel 'make menuconfig' in android AOSP

I tried make kernel from AOSP. it could build kernel only. But how about if I want to customize kernel config from menuconfig

Regards Peter

Upvotes: 4

Views: 3963

Answers (2)

Allen Shaw
Allen Shaw

Reputation: 1492

There's a config.sh script for menuconfig in android kernel source.

Here's the step:

  1. download android kernel source code

    repo init -u https://android.googlesource.com/kernel/manifest -b BRANCH

    repo sync

  2. run menuconfig

    BUILD_CONFIG=common/build.config.gki.aarch64 build/config.sh menuconfig

  3. modify menuconfigs and save .config

  4. build kernel

    BUILD_CONFIG=common/build.config.gki.aarch64 build/build.sh

Reference: https://source.android.com/docs/setup/build/building-kernels

Upvotes: 2

msquared
msquared

Reputation: 174

Building Android kernels for various devices is documented on source.android.com. It covers the Android Common Kernels as well as some widely used devices that can be built directly from AOSP. While there are no specific instructions for make menuconfig, it contains a section on how to customize the kernel build with specific kernel configuration options.

Such kernel options can of course be discovered through make menuconfig as usual.

Upvotes: -1

Related Questions