File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -175,13 +175,20 @@ For example, to check drivers/net/wireless/ one may write::
175
175
make coccicheck M=drivers/net/wireless/
176
176
177
177
To apply Coccinelle on a file basis, instead of a directory basis, the
178
- following command may be used::
178
+ C variable is used by the makefile to select which files to work with.
179
+ This variable can be used to run scripts for the entire kernel, a
180
+ specific directory, or for a single file.
179
181
180
- make C=1 CHECK="scripts/coccicheck"
182
+ For example, to check drivers/bluetooth/bfusb.c, the value 1 is
183
+ passed to the C variable to check files that make considers
184
+ need to be compiled.::
181
185
182
- To check only newly edited code, use the value 2 for the C flag, i.e.::
186
+ make C=1 CHECK=scripts/coccicheck drivers/bluetooth/bfusb.o
183
187
184
- make C=2 CHECK="scripts/coccicheck"
188
+ The value 2 is passed to the C variable to check files regardless of
189
+ whether they need to be compiled or not.::
190
+
191
+ make C=2 CHECK=scripts/coccicheck drivers/bluetooth/bfusb.o
185
192
186
193
In these modes, which work on a file basis, there is no information
187
194
about semantic patches displayed, and no commit message proposed.
You can’t perform that action at this time.
0 commit comments