2005-10-18 17:26:15 +02:00
|
|
|
#
|
|
|
|
# NOTE! Don't add files that are generated in specific
|
|
|
|
# subdirectories here. Add them in the ".gitignore" file
|
|
|
|
# in that subdirectory instead.
|
|
|
|
#
|
2009-06-05 06:43:10 +02:00
|
|
|
# NOTE! Please use 'git ls-files -i --exclude-standard'
|
2008-06-26 09:54:34 +02:00
|
|
|
# command after changing this file, to see if there are
|
|
|
|
# any tracked files which get ignored after the change.
|
|
|
|
#
|
2005-10-18 17:26:15 +02:00
|
|
|
# Normal rules
|
|
|
|
#
|
|
|
|
.*
|
|
|
|
*.o
|
2007-07-31 09:37:25 +02:00
|
|
|
*.o.*
|
2005-10-18 17:26:15 +02:00
|
|
|
*.a
|
|
|
|
*.s
|
|
|
|
*.ko
|
2006-01-05 18:10:52 +01:00
|
|
|
*.so
|
2007-10-19 20:35:02 +02:00
|
|
|
*.so.dbg
|
2005-10-18 17:26:15 +02:00
|
|
|
*.mod.c
|
2006-09-16 21:15:42 +02:00
|
|
|
*.i
|
2006-09-16 21:15:43 +02:00
|
|
|
*.lst
|
2006-09-16 21:15:44 +02:00
|
|
|
*.symtypes
|
2007-12-31 14:26:12 +01:00
|
|
|
*.order
|
2008-06-26 09:54:34 +02:00
|
|
|
*.elf
|
|
|
|
*.bin
|
2015-04-16 21:49:24 +02:00
|
|
|
*.tar
|
2008-06-26 09:54:34 +02:00
|
|
|
*.gz
|
2009-11-24 06:34:03 +01:00
|
|
|
*.bz2
|
2009-06-10 18:25:10 +02:00
|
|
|
*.lzma
|
2011-02-22 10:48:06 +01:00
|
|
|
*.xz
|
2013-07-31 22:53:33 +02:00
|
|
|
*.lz4
|
2010-03-17 19:52:12 +01:00
|
|
|
*.lzo
|
2009-05-27 01:37:54 +02:00
|
|
|
*.patch
|
2009-06-22 11:18:32 +02:00
|
|
|
*.gcno
|
2014-04-14 08:56:15 +02:00
|
|
|
modules.builtin
|
|
|
|
Module.symvers
|
2014-07-30 20:50:18 +02:00
|
|
|
*.dwo
|
2015-08-20 11:53:28 +02:00
|
|
|
*.su
|
2016-05-24 00:09:38 +02:00
|
|
|
*.c.[012]*.*
|
2005-10-18 17:26:15 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Top-level generic files
|
|
|
|
#
|
2010-03-13 01:30:23 +01:00
|
|
|
/tags
|
|
|
|
/TAGS
|
|
|
|
/linux
|
|
|
|
/vmlinux
|
2015-04-24 19:27:40 +02:00
|
|
|
/vmlinux.32
|
2015-02-17 22:47:38 +01:00
|
|
|
/vmlinux-gdb.py
|
2010-03-13 01:30:23 +01:00
|
|
|
/vmlinuz
|
|
|
|
/System.map
|
|
|
|
/Module.markers
|
|
|
|
|
2011-07-01 01:42:50 +02:00
|
|
|
#
|
|
|
|
# Debian directory (make deb-pkg)
|
|
|
|
#
|
|
|
|
/debian/
|
|
|
|
|
2015-02-13 00:01:19 +01:00
|
|
|
#
|
|
|
|
# tar directory (make tar*-pkg)
|
|
|
|
#
|
|
|
|
/tar-install/
|
|
|
|
|
2010-03-13 01:30:23 +01:00
|
|
|
#
|
2016-04-27 19:06:49 +02:00
|
|
|
# git files that we don't want to ignore even if they are dot-files
|
2010-03-13 01:30:23 +01:00
|
|
|
#
|
2007-10-16 09:22:21 +02:00
|
|
|
!.gitignore
|
2008-06-26 09:54:34 +02:00
|
|
|
!.mailmap
|
scripts: add Linux .cocciconfig for coccinelle
Coccinelle supports reading .cocciconfig, the order of precedence for
variables for .cocciconfig is as follows:
o Your current user's home directory is processed first
o Your directory from which spatch is called is processed next
o The directory provided with the --dir option is processed last, if used
Since coccicheck runs through make, it naturally runs from the kernel
proper dir, as such the second rule above would be implied for picking up a
.cocciconfig when using 'make coccicheck'.
'make coccicheck' also supports using M= targets.If you do not supply
any M= target, it is assumed you want to target the entire kernel.
The kernel coccicheck script has:
if [ "$KBUILD_EXTMOD" = "" ] ; then
OPTIONS="--dir $srctree $COCCIINCLUDE"
else
OPTIONS="--dir $KBUILD_EXTMOD $COCCIINCLUDE"
fi
KBUILD_EXTMOD is set when an explicit target with M= is used. For both cases
the spatch --dir argument is used, as such third rule applies when
whether M= is used or not, and when M= is used the target directory can
have its own .cocciconfig file. When M= is not passed as an argument to
coccicheck the target directory is the same as the directory from where
spatch was called.
If not using the kernel's coccicheck target, keep the above precedence order
logic of .cocciconfig reading. If using the kernel's coccicheck target,
override any of the kernel's .coccicheck's settings using SPFLAGS.
We help Coccinelle when used against Linux with a set of sensible defaults
options for Linux with our own Linux .cocciconfig. This hints to coccinelle
git can be used for 'git grep' queries over coccigrep. A timeout of 200
seconds should suffice for now.
The options picked up by coccinelle when reading a .cocciconfig do not appear
as arguments to spatch processes running on your system, to confirm what
options will be used by Coccinelle run:
spatch --print-options-only
You can override with your own preferred index option by using SPFLAGS.
Coccinelle supports both glimpse and idutils. Glimpse had historically
provided the best performance, however recent benchmarks reveal idutils
is performing just as well. Due to some recent fixes however you however
will need at least coccinelle >= 1.0.6 if using idutils.
Coccinelle carries a script scripts/idutils_index.sh which creates the
idutils database with as follows:
mkid -i C --output .id-utils.index
If using just "--use-idutils" coccinelle expects your idutils database to be
on the top level of the kernel as a file named ".id-utils.index". If you do
not use this you can symlink your database file to it, or you can specify the
database file following the "--use-idutils" argument. Examples:
make SPFLAGS=--use-idutils coccicheck
This assumes you have $srctree/.id-utils.index, where $srctree is
the top level of the kernel.
make SPFLAGS="--use-idutils /full-path/to/ID" coccicheck
Here you specify the full path of the idutils ID database. Using
.cocciconfig is possible, however given the order of precedence followed
by Coccinelle, and since the kernel now carries its own .cocciconfig,
you will need to use SPFLAGS to use idutils if desired.
v4:
o Recommend upgrade for using idutils with coccinelle due to some
recent fixes.
o Refer to using --print-options-only for testing what options are
picked up by .cocciconfig reading.
o Expand commit log considerably explaining *why* .cocconfig from
two precedence rules are used when using coccicheck, and how to
properly override these if needed.
o Expand Documentation/coccinelle.txt
v3: Expand commit log a bit more
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Michal Marek <mmarek@suse.com>
2016-06-30 00:14:56 +02:00
|
|
|
!.cocciconfig
|
2005-10-18 17:26:15 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Generated include files
|
|
|
|
#
|
|
|
|
include/config
|
2009-04-18 23:51:08 +02:00
|
|
|
include/generated
|
2011-04-27 22:29:49 +02:00
|
|
|
arch/*/include/generated
|
2005-10-18 17:26:15 +02:00
|
|
|
|
2006-02-27 04:07:24 +01:00
|
|
|
# stgit generated dirs
|
|
|
|
patches-*
|
2006-07-17 07:37:06 +02:00
|
|
|
|
|
|
|
# quilt's files
|
|
|
|
patches
|
|
|
|
series
|
2006-12-22 10:07:32 +01:00
|
|
|
|
|
|
|
# cscope files
|
|
|
|
cscope.*
|
2008-05-22 03:23:10 +02:00
|
|
|
ncscope.*
|
2007-07-16 08:41:52 +02:00
|
|
|
|
2009-06-11 11:21:47 +02:00
|
|
|
# gnu global files
|
|
|
|
GPATH
|
|
|
|
GRTAGS
|
|
|
|
GSYMS
|
|
|
|
GTAGS
|
|
|
|
|
2015-04-16 23:02:41 +02:00
|
|
|
# id-utils files
|
|
|
|
ID
|
|
|
|
|
2007-07-16 08:41:52 +02:00
|
|
|
*.orig
|
2008-03-04 23:28:59 +01:00
|
|
|
*~
|
|
|
|
\#*#
|
2012-09-26 11:09:50 +02:00
|
|
|
|
|
|
|
#
|
|
|
|
# Leavings from module signing
|
|
|
|
#
|
|
|
|
extra_certificates
|
2015-07-20 22:16:30 +02:00
|
|
|
signing_key.pem
|
2012-09-26 11:09:50 +02:00
|
|
|
signing_key.priv
|
|
|
|
signing_key.x509
|
|
|
|
x509.genkey
|
2014-02-10 23:25:45 +01:00
|
|
|
|
|
|
|
# Kconfig presets
|
|
|
|
all.config
|
2014-11-25 17:42:54 +01:00
|
|
|
|
|
|
|
# Kdevelop4
|
|
|
|
*.kdev4
|