How do I compile the driver source file in Linux?

Phương Linh

New member
How do I compile the driver source file in Linux?
Answer
To actually compile drivers do the following:
  1. Copy the driver source files to a location of your choice.
  2. Change to the directory containing the driver source files; this is usually a directory with .c, and .h files in it.
  3. To make the drivers, type “make -C /path/to/kernel/source SUBDIRS=$PWD modules”.
 

Tìm kiếm

Back
Top