How to compile a separate module of the Linux kernel?

1. The module is configured to [M]

2. Compile

  make modules SUBDIRS =. / drivers / rtc (5.3 kernel modules to the make M =. / Drivers / RTC)

3. Install

  make modules_install SUBDIRS=./drivers/rtc (5.3的内核为make modules_install M=./drivers/rtc)

Guess you like

Origin www.cnblogs.com/dakewei/p/11081830.html