Dear Wiki user, You have subscribed to a wiki page or wiki category on "Fedora Project Wiki" for change notification. The following page has been changed by RahulSundaram: http://fedoraproject.org/wiki/Docs/Beats/Kernel The comment on the change is: add instructions on installing kernel-devel with feedback from bz #187582 ------------------------------------------------------------------------------ == Building Only Kernel Modules == - An exploded source tree is not required to build a kernel module, such as your own device driver, against the currently in-use kernel. For example, to build the `foo.ko` module, create the following `Makefile` in the directory containing the `foo.c` file: + An exploded source tree is not required to build a kernel module, such as your own device driver, against the currently in-use kernel. Only the kernel-devel package is required to build external modules. If you havent selected it during installation, you can use Pirut, Applications=> Add/Remove software or yum to install it. Run the following command to install the kernel-devel package using yum. + + {{{ + + su -c 'yum install kernel-devel' + + }}} + + For example, to build the `foo.ko` module, create the following `Makefile` in the directory containing the `foo.c` file: {{{ obj-m := foo.o