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.
- 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
- Generate a .config file.
# cd /usr/src/kernels/kernel-5.10.0-60.18.0 # sudo make menuconfig
- Click Load in the following window:

- Click OK in the following window:

- Click Save in the following window:

- Click OK in the following window:

- Click Exit in the following window:

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

Parent topic: Compiling and Installing the Kernel