Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 15893
b: refs/heads/master
c: 98a1e44
h: refs/heads/master
i:
  15891: 25cb2c3
v: v3
  • Loading branch information
Brian Strand authored and Sam Ravnborg committed Dec 16, 2005
1 parent 14edb79 commit 61c2c08
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cb1a7b4df7e2ffc7c97891e8f350ce5db50df3b9
refs/heads/master: 98a1e444111c9fd3f7a2b55225f7febf4209c020
24 changes: 12 additions & 12 deletions trunk/Documentation/kbuild/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ included in the kernel tree.
What is covered within this file is mainly information to authors
of modules. The author of an external modules should supply
a makefile that hides most of the complexity so one only has to type
'make' to buld the module. A complete example will be present in
'make' to build the module. A complete example will be present in
chapter �. Creating a kbuild file for an external module".


Expand Down Expand Up @@ -69,7 +69,7 @@ when building an external module.

--- 2.2 Available targets

$KDIR refers to path to kernel source top-level directory
$KDIR refers to the path to the kernel source top-level directory

make -C $KDIR M=`pwd`
Will build the module(s) located in current directory.
Expand All @@ -87,19 +87,19 @@ when building an external module.
make -C $KDIR M=$PWD modules_install
Install the external module(s).
Installation default is in /lib/modules/<kernel-version>/extra,
but may be prefixed with INSTALL_MOD_PATH - see separate chater.
but may be prefixed with INSTALL_MOD_PATH - see separate chapter.

make -C $KDIR M=$PWD clean
Remove all generated files for the module - the kernel
source directory is not moddified.
source directory is not modified.

make -C $KDIR M=`pwd` help
help will list the available target when building external
modules.

--- 2.3 Available options:

$KDIR refer to path to kernel src
$KDIR refers to the path to the kernel source top-level directory

make -C $KDIR
Used to specify where to find the kernel source.
Expand Down Expand Up @@ -206,11 +206,11 @@ following files:

KERNELDIR := /lib/modules/`uname -r`/build
all::
$(MAKE) -C $KERNELDIR M=`pwd` $@
$(MAKE) -C $(KERNELDIR) M=`pwd` $@

# Module specific targets
genbin:
echo "X" > 8123_bini.o_shipped
echo "X" > 8123_bin.o_shipped

endif

Expand Down Expand Up @@ -341,13 +341,13 @@ directory and therefore needs to deal with this in their kbuild file.
EXTRA_CFLAGS := -Iinclude
8123-y := 8123_if.o 8123_pci.o 8123_bin.o

Note that in the assingment there is no space between -I and the path.
This is a kbuild limitation and no space must be present.
Note that in the assignment there is no space between -I and the path.
This is a kbuild limitation: there must be no space present.


=== 6. Module installation

Modules which are included in the kernel is installed in the directory:
Modules which are included in the kernel are installed in the directory:

/lib/modules/$(KERNELRELEASE)/kernel

Expand All @@ -365,7 +365,7 @@ External modules are installed in the directory:
=> Install dir: /frodo/lib/modules/$(KERNELRELEASE)/kernel

INSTALL_MOD_PATH may be set as an ordinary shell variable or as in the
example above be specified on the commandline when calling make.
example above be specified on the command line when calling make.
INSTALL_MOD_PATH has effect both when installing modules included in
the kernel as well as when installing external modules.

Expand All @@ -384,7 +384,7 @@ External modules are installed in the directory:

=== 7. Module versioning

Module versioning are enabled by the CONFIG_MODVERSIONS tag.
Module versioning is enabled by the CONFIG_MODVERSIONS tag.

Module versioning is used as a simple ABI consistency check. The Module
versioning creates a CRC value of the full prototype for an exported symbol and
Expand Down

0 comments on commit 61c2c08

Please sign in to comment.