小编bla*_*bla的帖子

尝试在旧 Linux 内核上交叉编译以太网驱动程序时出现问题

我目前正在尝试针对旧版 Linux 内核交叉编译网络驱动程序,版本为 2.6.27.7,但编译失败并打印:

make[1]: entering directory « /home/johann/Desktop/linux-2.6.27.7 »
Building modules, stage 2.
MODPOST 0 modules
make[1]: leaving directory « /home/johann/Desktop/linux-2.6.27.7 »
Run Code Online (Sandbox Code Playgroud)

我运行的命令是从来源中找到的自述文件中获取的:

make KSRC=<source> KDIR=<build>
Run Code Online (Sandbox Code Playgroud)

这是它的样子:

#
# Makefile to build the be2net network driver
#

# find a source path that exists among the possible paths
ver = $(shell uname -r)
paths := /lib/modules/$(ver)/source /lib/modules/$(ver)/build
exists = $(shell [ -e $(path)/include/linux ] && echo $(path))
paths := $(foreach path, $(paths), $(exists))
ifeq (,$(KSRC))
    KSRC := $(firstword $(paths)) …
Run Code Online (Sandbox Code Playgroud)

networking drivers cross-compilation linux-kernel

5
推荐指数
1
解决办法
1140
查看次数