mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
Coccinelle: Update information about the minimal version required
The naming convention of options has changed one year ago. The options have been recently updated in the cocci file and in scripts/coccicheck. This patch also adds this information in the documentation. Signed-off-by: Nicolas Palix <nicolas.palix@imag.fr> Signed-off-by: Michal Marek <mmarek@suse.cz>
This commit is contained in:
parent
93f1446849
commit
ec97946ed0
@ -6,15 +6,17 @@ Copyright 2010 Gilles Muller <Gilles.Muller@lip6.fr>
|
|||||||
Getting Coccinelle
|
Getting Coccinelle
|
||||||
~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
The semantic patches included in the kernel use the 'virtual rule'
|
The semantic patches included in the kernel use features and options
|
||||||
feature which was introduced in Coccinelle version 0.1.11.
|
which are provided by Coccinelle version 1.0.0-rc11 and above.
|
||||||
|
Using earlier versions will fail as the option names used by
|
||||||
|
the Coccinelle files and coccicheck have been updated.
|
||||||
|
|
||||||
Coccinelle (>=0.2.0) is available through the package manager
|
Coccinelle is available through the package manager
|
||||||
of many distributions, e.g. :
|
of many distributions, e.g. :
|
||||||
|
|
||||||
- Debian (>=squeeze)
|
- Debian
|
||||||
- Fedora (>=13)
|
- Fedora
|
||||||
- Ubuntu (>=10.04 Lucid Lynx)
|
- Ubuntu
|
||||||
- OpenSUSE
|
- OpenSUSE
|
||||||
- Arch Linux
|
- Arch Linux
|
||||||
- NetBSD
|
- NetBSD
|
||||||
@ -36,11 +38,6 @@ as a regular user, and install it with
|
|||||||
|
|
||||||
sudo make install
|
sudo make install
|
||||||
|
|
||||||
The semantic patches in the kernel will work best with Coccinelle version
|
|
||||||
0.2.4 or later. Using earlier versions may incur some parse errors in the
|
|
||||||
semantic patch code, but any results that are obtained should still be
|
|
||||||
correct.
|
|
||||||
|
|
||||||
Using Coccinelle on the Linux kernel
|
Using Coccinelle on the Linux kernel
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
#
|
||||||
|
# This script requires at least spatch
|
||||||
|
# version 1.0.0-rc11.
|
||||||
|
#
|
||||||
|
|
||||||
SPATCH="`which ${SPATCH:=spatch}`"
|
SPATCH="`which ${SPATCH:=spatch}`"
|
||||||
|
|
||||||
trap kill_running SIGTERM SIGINT
|
trap kill_running SIGTERM SIGINT
|
||||||
|
Loading…
Reference in New Issue
Block a user