Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要交叉编译的是 USB gadget 串行驱动程序 (g_serial.ko)。我已经安装了我的工具链并检查了 kernel.org 的源代码。现在怎么做才能编译那个单一的模块?提前致谢!!
从内核源目录
make ARCH=arm CROSS_COMPILE=/your/cross/compile/prefix M=path/to/module/directory
或者
make ARCH=arm CROSS_COMPILE=/your/cross/compile/prefix path/to/module/directory