如何交叉编译单个模块?

时间:2013-05-13 12:57:16

标签: arm linux-device-driver cross-compiling

我需要交叉编译的是USB小工具串行驱动程序(g_serial.ko)。我安装了我的工具链并检查了kernel.org中的源代码。 现在该怎么做才能编译单个模块? 在此先感谢!!

1 个答案:

答案 0 :(得分:1)

来自内核源目录

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
相关问题