How do I cross compile a single module?

拈花ヽ惹草 提交于 2019-12-12 05:50:06

问题


What I need to cross compile is the USB gadget serial driver (g_serial.ko). I have my toolchain installed and checked out the sources from kernel.org. Now what to do to just compile that single module? Thanks in advance!!


回答1:


From the kernel source directory

make ARCH=arm CROSS_COMPILE=/your/cross/compile/prefix M=path/to/module/directory

or

make ARCH=arm CROSS_COMPILE=/your/cross/compile/prefix path/to/module/directory


来源:https://stackoverflow.com/questions/16522637/how-do-i-cross-compile-a-single-module

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!