Linux Kernel Development (Second Edition) [Electronic resources]

Robert Love

نسخه متنی -صفحه : 215/ 144
نمايش فراداده

Installing Modules

Compiled modules are installed into /lib/modules/ version /kernel/. For example, with a kernel version of 2.6.10, the compiled fishing pole module would live at /lib/modules/2.6.10/kernel/drivers/char/fishing.ko if you stuck it directly in drivers/char/. The following build command is used to install compiled modules into the correct location:

make modules_install Naturally, this needs to be run as root.