[Fedora Project Wiki] Update of "Docs/Beats/Kernel" by SamFolkWilliams

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 SamFolkWilliams:
http://fedoraproject.org/wiki/Docs/Beats/Kernel?action=diff&rev2=98&rev1=97

The comment on the change is:
Removed last bits of kernel building

------------------------------------------------------------------------------
  
  Refer to http://kernel.org/pub/linux/docs/lkml/reporting-bugs.html for information on reporting bugs in the Linux kernel.  You may also use http://bugzilla.redhat.com for reporting bugs that are specific to Fedora. 
  
- === Following Generic Textbooks ===
  
- Many of the tutorials, examples, and textbooks about Linux kernel development assume the kernel sources are installed under the `/usr/src/linux/` directory. If you make a symbolic link, as shown below, you should be able to use those learning materials with the Fedora packages. Install the appropriate kernel sources, as shown earlier, and then run the following command:
- 
- {{{su -c 'ln -s /usr/src/kernels/<version>.<release>-<arch> /usr/src/linux'
- }}}
- 
- Enter the `root` password when prompted.
  
  === Preparing for Kernel Development ===
  
@@ -92, +85 @@

  
  /!\ For information on kernel development and working with custom kernels, refer to http://fedoraproject.org/wiki/Docs/CustomKernel.
  
- === 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. Only the `kernel-devel` package is required to build external modules. If you did not select it during installation, use '''Pirut''' to install it (via ''Applications > Add/Remove Software'') or use {{{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
- 
- KDIR  := /lib/modules/$(shell uname -r)/build
- PWD   := $(shell pwd)
- 
- default:
-     $(MAKE) -C $(KDIR) M=$(PWD) modules
- }}}
- 
- Issue the {{{make}}} command to build the `foo.ko` module.
- 

--
Fedora-relnotes-content mailing list
Fedora-relnotes-content@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-relnotes-content

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Gnome Users]     [KDE Users]

  Powered by Linux