diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/kbuild/modules.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Documentation/kbuild/modules.txt b/Documentation/kbuild/modules.txt index 7e77f93634ea..87d858df4e34 100644 --- a/Documentation/kbuild/modules.txt +++ b/Documentation/kbuild/modules.txt | |||
@@ -13,6 +13,7 @@ In this document you will find information about: | |||
13 | --- 2.2 Available targets | 13 | --- 2.2 Available targets |
14 | --- 2.3 Available options | 14 | --- 2.3 Available options |
15 | --- 2.4 Preparing the kernel tree for module build | 15 | --- 2.4 Preparing the kernel tree for module build |
16 | --- 2.5 Building separate files for a module | ||
16 | === 3. Example commands | 17 | === 3. Example commands |
17 | === 4. Creating a kbuild file for an external module | 18 | === 4. Creating a kbuild file for an external module |
18 | === 5. Include files | 19 | === 5. Include files |
@@ -131,6 +132,16 @@ when building an external module. | |||
131 | Therefore a full kernel build needs to be executed to make | 132 | Therefore a full kernel build needs to be executed to make |
132 | module versioning work. | 133 | module versioning work. |
133 | 134 | ||
135 | --- 2.5 Building separate files for a module | ||
136 | It is possible to build single files which is part of a module. | ||
137 | This works equal for the kernel, a module and even for external | ||
138 | modules. | ||
139 | Examples (module foo.ko, consist of bar.o, baz.o): | ||
140 | make -C $KDIR M=`pwd` bar.lst | ||
141 | make -C $KDIR M=`pwd` bar.o | ||
142 | make -C $KDIR M=`pwd` foo.ko | ||
143 | make -C $KDIR M=`pwd` / | ||
144 | |||
134 | 145 | ||
135 | === 3. Example commands | 146 | === 3. Example commands |
136 | 147 | ||