Commit ed621cc4a5f6fd41cf02b2408273474d46ac4cac

Authored by Nicolas Palix
Committed by Michal Marek
1 parent 9e39555077

Coccinelle: Add support to the SPFLAGS variable

The SPFLAGS variable allows to pass additional options
to spatch, e.g. -use_glimpse.

Signed-off-by: Nicolas Palix <nicolas.palix@imag.fr>
Signed-off-by: Michal Marek <mmarek@suse.cz>

Showing 2 changed files with 11 additions and 2 deletions Side-by-side Diff

Documentation/coccinelle.txt
... ... @@ -114,7 +114,7 @@
114 114 For example, to check drivers/net/wireless/ one may write:
115 115  
116 116 make coccicheck M=drivers/net/wireless/
117   -
  117 +
118 118 To apply Coccinelle on a file basis, instead of a directory basis, the
119 119 following command may be used:
120 120  
... ... @@ -134,6 +134,15 @@
134 134 In this mode, there is no information about semantic patches
135 135 displayed, and no commit message proposed.
136 136  
  137 + Additional flags
  138 +~~~~~~~~~~~~~~~~~~
  139 +
  140 +Additional flags can be passed to spatch through the SPFLAGS
  141 +variable.
  142 +
  143 + make SPFLAGS=--use_glimpse coccicheck
  144 +
  145 +See spatch --help to learn more about spatch options.
137 146  
138 147 Proposing new semantic patches
139 148 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
... ... @@ -11,7 +11,7 @@
11 11 VERBOSE=0
12 12 fi
13 13  
14   -FLAGS="-very_quiet"
  14 +FLAGS="$SPFLAGS -very_quiet"
15 15  
16 16 # spatch only allows include directories with the syntax "-I include"
17 17 # while gcc also allows "-Iinclude" and "-include include"