Rate This Document
Findability
Accuracy
Completeness
Readability

Creating a .config File

The first step to compile the kernel is to create a .config file in which the functions and features that need to be enabled are declared.

  1. Copy the config file to the source code directory and rename it .config.
    # cp ~/dependency/patchForKernel/openEuler_22.03/kernel_5.10.0/kernel/config-5.10.0-60.18.0.50.oe2203.aarch64 /usr/src/kernels/kernel-5.10.0-60.18.0
    # cd /usr/src/kernels/kernel-5.10.0-60.18.0
    # mv config-5.10.0-60.18.0.50.oe2203.aarch64 .config
  2. Generate a .config file.
    # cd /usr/src/kernels/kernel-5.10.0-60.18.0
    # sudo make menuconfig
  3. Click Load in the following window:

  4. Click OK in the following window:

  5. Click Save in the following window:

  6. Click OK in the following window:

  7. Click Exit in the following window:

  8. Go to the initial window and click Exit. The .config file is created in the current folder.