Step 4 : Configure Kernel ========================= .. tab-set:: .. tab-item:: Configure Kernel * In this program, you are going to learn .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow * How to ? .. panels:: :container: container pb-4 :column: col-lg-12 p-2 :card: shadow Topics in this section, * :ref:`How to Configure Kernel ` .. _barelinux_x86-64_step4_0: .. tab-set:: .. tab-item:: Steps to Configure Kernel * The Linux kernel source code comes with the default configuration. * However, you can adjust it to your needs. To do so, follow the steps below: .. code-block:: c $ cd linux-6.0.7 * Copy the existing Linux config file using the cp command: .. code-block:: c linux-6.0.7$ cp -v /boot/config-$(uname -r) .config "/boot/config-6.5.0-18-generic" -> ".config" * To make changes to the configuration file, run the make command: .. code-block:: c $ make menuconfig * The command launches several scripts that open the configuration menu: .. code-block:: c linux-6.0.7$ make menuconfig HOSTCC scripts/basic/fixdep UPD scripts/kconfig/mconf-cfg HOSTCC scripts/kconfig/mconf.o HOSTCC scripts/kconfig/lxdialog/checklist.o HOSTCC scripts/kconfig/lxdialog/inputbox.o HOSTCC scripts/kconfig/lxdialog/menubox.o HOSTCC scripts/kconfig/lxdialog/textbox.o HOSTCC scripts/kconfig/lxdialog/util.o HOSTCC scripts/kconfig/lxdialog/yesno.o HOSTCC scripts/kconfig/confdata.o HOSTCC scripts/kconfig/expr.o LEX scripts/kconfig/lexer.lex.c YACC scripts/kconfig/parser.tab.[ch] HOSTCC scripts/kconfig/lexer.lex.o HOSTCC scripts/kconfig/menu.o HOSTCC scripts/kconfig/parser.tab.o HOSTCC scripts/kconfig/preprocess.o HOSTCC scripts/kconfig/symbol.o HOSTCC scripts/kconfig/util.o HOSTLD scripts/kconfig/mconf