linux - Step to build a built in kernel module? -


i can build loadable module , working application successfully. i'm trying include driver in kernel driver folder built-in driver. when tried this, there no device file created in /dev folder. necessary steps built-in module ? there modification needed in existing module ?

thanks in advance

i believe question similar question compiling driver part of kernel, not module

the answer question mentioned modifying kernel makefiles include module object or directory.

in summary steps are:

  1. copy driver source code directory under <linux kernel src>/drivers.
  2. edit makefile add line:

    obj-y += your_driver_dir

  3. edit makefile in driver directory add line:

    obj-y := your_driver.o


Comments