Makefile 尝试在Windows子系统中为Linux编译内核模块时出错

Makefile 尝试在Windows子系统中为Linux编译内核模块时出错,makefile,kernel,windows-subsystem-for-linux,Makefile,Kernel,Windows Subsystem For Linux,从该网站创建此make文件后运行make时 当我在WSL中运行make时,我得到make-C/lib/modules/4.4.0-17134-Microsoft/build M=/mnt/C/Users/tdwil/OneDrive/code/Documents/cfiles/systems/linuxkernel modules make[1]:***/lib/modules/4.4.0-17134-Microsoft/build:没有这样的文件或目录。停下来 Makefile:5:目标“全

从该网站创建此make文件后运行make时

当我在WSL中运行make时,我得到
make-C/lib/modules/4.4.0-17134-Microsoft/build M=/mnt/C/Users/tdwil/OneDrive/code/Documents/cfiles/systems/linuxkernel modules

make[1]:***/lib/modules/4.4.0-17134-Microsoft/build:没有这样的文件或目录。停下来

Makefile:5:目标“全部”的配方失败

make:**[全部]错误2


这是因为在WSL中make是不可能的吗?或者我键入的目录有误?

首先,WSL上没有Linux头。 Windows的另一个问题是Linux内核有几个不同大小写的文件名

最好在Linux机器或VM上编译内核或kenel模块