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