Compile the source code in the Linux kernel driver as a module?

Two steps:

1 arranged in a drive module as make menuconfig (eg: CONFIG_RTC_XXX = m)

2. Specify the path and compiling, driving compiling drivers / net in the kernel root

make SUBDIRS=drivers/net modules

Guess you like

Origin www.cnblogs.com/huakaimanlin/p/12367712.html