我正在尝试使用Oracel虚拟机和18.04.1-Ubuntu镜像构建最新的Linux内核(GitHub)。
我已经安装了所需的软件包,可能还安装了更多。这是我安装的软件包的一部分:
完整列表可以在这里找到。
我从GitHub克隆存储库后,在
看起来 make 需要一些额外的配置文件
谢谢!
我已经安装了所需的软件包,可能还安装了更多。这是我安装的软件包的一部分:
sudo apt-get update
sudo apt-get install git fakeroot build-essential ncurses-dev xz-utils libssl-dev bc bison flex libelf-def kernel-package
完整列表可以在这里找到。
我从GitHub克隆存储库后,在
linux
文件夹中运行了以下命令。$ cp /boot/config-$(uname -r) .config
$ make menuconfig
scripts/kconfig/mconf Kconfig
.config:1118:warning: symbol value 'm' invalid for NF_CT_PROTO_GRE
.config:1923:warning: symbol value 'm' invalid for NET_DEVLINK
.config:7865:warning: symbol value 'm' invalid for ASHMEM
.config:8724:warning: symbol value 'm' invalid for ANDROID_BINDER_IPC
.config:8725:warning: symbol value 'm' invalid for ANDROID_BINDERFS
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
我保存并退出了menuconfig
。最终运行make
出现了以下错误。
$ make -j2
Makefile:608: include/config/auto.conf: No such file or directory
Makefile:660: include/config/auto.conf.cmd: No such file or directory
HOSTCC scripts/kconfig/conf.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --syncconfig Kconfig
*** Error during sync of the configuration.
scripts/kconfig/Makefile:73: recipe for target 'syncconfig' failed
make[2]: *** [syncconfig] Error 1
Makefile:562: recipe for target 'syncconfig' failed
make[1]: *** [syncconfig] Error 2
Makefile:678: recipe for target 'include/config/auto.conf.cmd' failed
make: *** [include/config/auto.conf.cmd] Error 2
make: *** Deleting file 'include/config/auto.conf.cmd'
看起来 make 需要一些额外的配置文件
include/config/auto.conf
。有人能给我提示吗?谢谢!
git clean -xdf; export ARCH=...; cp /boot/config-$(uname -r) .config; make olddefconfig; make -j2
- 0andriy$ make olddefconfig Makefile:555: arch/.../Makefile: 没有那个文件或目录 make: *** 没有指定目标的规则。 停止。
- Nawinexport ARCH=x86_64
描述的过程,但仍然导致`Makefile: 608:include / config / auto.conf:没有那个文件或目录scripts / kconfig / conf --syncconfig Kconfig***同步配置期间发生错误。 - Nawinexport ARCH=ia64
也没有起作用,但我在执行make olddefconfig
期间已经出现了错误。 - Nawin$ make olddefconfig ./arch/ia64/scripts/check-segrel.S: Assembler messages: ./arch/ia64/scripts/check-segrel.S:2: Error: unknown pseudo-op:
.rodata' ./arch/ia64/scripts/check-segrel.S:3: Error: no such instruction:data4 @segrel(start)' objdump: '/tmp/out8220': No such file objdump: section '.rodata' mentioned in a -j option, but not found in any input file ./arch/ia64/scripts/toolchain-flags: 20: [: !=: unexpected operator ./arch/ia64/scripts/check-text-align.S: Assembler messages:
- Nawin