root@slackwarecn:~# mount /mnt/cdrom
root@slackwarecn:~# cd /mnt/cdrom/kernels
root@slackwarecn:/mnt/cdrom/kernels# ls
VERSIONS.TXT generic/ memtest/ speakup.s/
root@slackwarecn:/mnt/cdrom/kernels# ls genric
System.map-generic-6.3.0 config-generic-6.3.0.loongarch64 vmlinuz
对于更细致的配置任务,我们也有多种选项。 Linux 内核可以通过三种主要方式进行配置。第一个是 config,将逐一显示每个选项让你进行配置。这是这个过程实在过于冗长,几乎已经没有人使用它了。
root@slackwarecn:/usr/src/linux# make config
HOSTCC scripts/basic/fixdep
HOSTCC scripts/kconfig/conf.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/conf
#
# configuration written to .config
#
root@slackwarecn:~/build-slack/Linux/linux# make config
*
* Linux/loongarch 6.3.0 Kernel Configuration
*
*
* General setup
*
Compile also drivers which will not load (COMPILE_TEST) [N/y/?] n
Compile the kernel with warnings as errors (WERROR) [N/y/?] n
Local version - append to kernel release (LOCALVERSION) [] -test
Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n
root@slackwarecn:/usr/src/linux# make modules
CALL scripts/checksyscalls.sh
CC [M] mm/zsmalloc.o
CC [M] fs/quota/quota_v1.o
CC [M] fs/quota/quota_v2.o
CC [M] fs/quota/quota_tree.o
CC [M] fs/cramfs/inode.o
... many thousands of lines omitted ...