2005-10-18 09:26:15 -06: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-04 22:43:10 -06:00
|
|
|
# NOTE! Please use 'git ls-files -i --exclude-standard'
|
2008-06-26 01:54:34 -06:00
|
|
|
# command after changing this file, to see if there are
|
|
|
|
# any tracked files which get ignored after the change.
|
|
|
|
#
|
2017-10-30 09:33:45 -06:00
|
|
|
# Normal rules (sorted alphabetically)
|
2005-10-18 09:26:15 -06:00
|
|
|
#
|
|
|
|
.*
|
2017-10-30 09:33:45 -06:00
|
|
|
*.a
|
|
|
|
*.bin
|
|
|
|
*.bz2
|
|
|
|
*.c.[012]*.*
|
2017-10-30 09:33:46 -06:00
|
|
|
*.dtb
|
|
|
|
*.dtb.S
|
2017-10-30 09:33:45 -06:00
|
|
|
*.dwo
|
|
|
|
*.elf
|
|
|
|
*.gcno
|
|
|
|
*.gz
|
|
|
|
*.i
|
|
|
|
*.ko
|
|
|
|
*.ll
|
|
|
|
*.lst
|
|
|
|
*.lz4
|
|
|
|
*.lzma
|
|
|
|
*.lzo
|
|
|
|
*.mod.c
|
2005-10-18 09:26:15 -06:00
|
|
|
*.o
|
2007-07-31 01:37:25 -06:00
|
|
|
*.o.*
|
2017-10-30 09:33:45 -06:00
|
|
|
*.order
|
|
|
|
*.patch
|
2005-10-18 09:26:15 -06:00
|
|
|
*.s
|
2006-01-05 10:10:52 -07:00
|
|
|
*.so
|
2007-10-19 12:35:02 -06:00
|
|
|
*.so.dbg
|
2017-10-30 09:33:45 -06:00
|
|
|
*.su
|
2006-09-16 13:15:44 -06:00
|
|
|
*.symtypes
|
2015-04-16 13:49:24 -06:00
|
|
|
*.tar
|
2011-02-22 02:48:06 -07:00
|
|
|
*.xz
|
2014-04-14 00:56:15 -06:00
|
|
|
Module.symvers
|
2017-10-30 09:33:45 -06:00
|
|
|
modules.builtin
|
2005-10-18 09:26:15 -06:00
|
|
|
|
|
|
|
#
|
|
|
|
# Top-level generic files
|
|
|
|
#
|
2010-03-12 17:30:23 -07:00
|
|
|
/tags
|
|
|
|
/TAGS
|
|
|
|
/linux
|
|
|
|
/vmlinux
|
2015-04-24 11:27:40 -06:00
|
|
|
/vmlinux.32
|
2015-02-17 14:47:38 -07:00
|
|
|
/vmlinux-gdb.py
|
2010-03-12 17:30:23 -07:00
|
|
|
/vmlinuz
|
|
|
|
/System.map
|
|
|
|
/Module.markers
|
|
|
|
|
2017-09-29 19:10:10 -06:00
|
|
|
#
|
|
|
|
# RPM spec file (make rpm-pkg)
|
|
|
|
#
|
|
|
|
/*.spec
|
|
|
|
|
2011-06-30 17:42:50 -06:00
|
|
|
#
|
|
|
|
# Debian directory (make deb-pkg)
|
|
|
|
#
|
|
|
|
/debian/
|
|
|
|
|
2015-02-12 16:01:19 -07:00
|
|
|
#
|
|
|
|
# tar directory (make tar*-pkg)
|
|
|
|
#
|
|
|
|
/tar-install/
|
|
|
|
|
2010-03-12 17:30:23 -07:00
|
|
|
#
|
2016-04-27 11:06:49 -06:00
|
|
|
# git files that we don't want to ignore even if they are dot-files
|
2010-03-12 17:30:23 -07:00
|
|
|
#
|
2007-10-16 01:22:21 -06:00
|
|
|
!.gitignore
|
2008-06-26 01:54:34 -06: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-29 16:14:56 -06:00
|
|
|
!.cocciconfig
|
2005-10-18 09:26:15 -06:00
|
|
|
|
|
|
|
#
|
|
|
|
# Generated include files
|
|
|
|
#
|
|
|
|
include/config
|
2009-04-18 15:51:08 -06:00
|
|
|
include/generated
|
2011-04-27 14:29:49 -06:00
|
|
|
arch/*/include/generated
|
2005-10-18 09:26:15 -06:00
|
|
|
|
2006-02-26 20:07:24 -07:00
|
|
|
# stgit generated dirs
|
|
|
|
patches-*
|
2006-07-16 23:37:06 -06:00
|
|
|
|
|
|
|
# quilt's files
|
|
|
|
patches
|
|
|
|
series
|
2006-12-22 02:07:32 -07:00
|
|
|
|
|
|
|
# cscope files
|
|
|
|
cscope.*
|
2008-05-21 19:23:10 -06:00
|
|
|
ncscope.*
|
2007-07-16 00:41:52 -06:00
|
|
|
|
2009-06-11 03:21:47 -06:00
|
|
|
# gnu global files
|
|
|
|
GPATH
|
|
|
|
GRTAGS
|
|
|
|
GSYMS
|
|
|
|
GTAGS
|
|
|
|
|
2015-04-16 15:02:41 -06:00
|
|
|
# id-utils files
|
|
|
|
ID
|
|
|
|
|
2007-07-16 00:41:52 -06:00
|
|
|
*.orig
|
2008-03-04 15:28:59 -07:00
|
|
|
*~
|
|
|
|
\#*#
|
2012-09-26 03:09:50 -06:00
|
|
|
|
|
|
|
#
|
|
|
|
# Leavings from module signing
|
|
|
|
#
|
|
|
|
extra_certificates
|
2015-07-20 14:16:30 -06:00
|
|
|
signing_key.pem
|
2012-09-26 03:09:50 -06:00
|
|
|
signing_key.priv
|
|
|
|
signing_key.x509
|
|
|
|
x509.genkey
|
2014-02-10 15:25:45 -07:00
|
|
|
|
|
|
|
# Kconfig presets
|
|
|
|
all.config
|
2014-11-25 09:42:54 -07:00
|
|
|
|
|
|
|
# Kdevelop4
|
|
|
|
*.kdev4
|