blob: 72ef86a5570d28015d0ccb95ccd212bf8820c1c2 [file] [log] [blame]
Linus Torvalds1e651742005-10-18 08:26:15 -07001#
2# NOTE! Don't add files that are generated in specific
3# subdirectories here. Add them in the ".gitignore" file
4# in that subdirectory instead.
5#
Matt Kraaiff2f5ff2009-06-04 21:43:10 -07006# NOTE! Please use 'git ls-files -i --exclude-standard'
Eduard - Gabriel Munteanuf72e9df2008-06-26 10:54:34 +03007# command after changing this file, to see if there are
8# any tracked files which get ignored after the change.
9#
Masahiro Yamada1377dd32017-10-31 00:33:45 +090010# Normal rules (sorted alphabetically)
Linus Torvalds1e651742005-10-18 08:26:15 -070011#
12.*
Masahiro Yamada1377dd32017-10-31 00:33:45 +090013*.a
Masahiro Yamada4fa8bc92018-03-23 22:04:37 +090014*.asn1.[ch]
Masahiro Yamada1377dd32017-10-31 00:33:45 +090015*.bin
16*.bz2
17*.c.[012]*.*
Rob Herring4f0e3a52018-09-06 13:26:07 -050018*.dt.yaml
Masahiro Yamada10b62a22017-10-31 00:33:46 +090019*.dtb
20*.dtb.S
Masahiro Yamada1377dd32017-10-31 00:33:45 +090021*.dwo
22*.elf
23*.gcno
24*.gz
25*.i
26*.ko
Masahiro Yamada59889302018-03-23 22:04:30 +090027*.lex.c
Masahiro Yamada1377dd32017-10-31 00:33:45 +090028*.ll
29*.lst
30*.lz4
31*.lzma
32*.lzo
Masahiro Yamadab7dca6d2019-07-17 15:17:57 +090033*.mod
Masahiro Yamada1377dd32017-10-31 00:33:45 +090034*.mod.c
Linus Torvalds1e651742005-10-18 08:26:15 -070035*.o
Alexey Dobriyan96918a32007-07-31 00:37:25 -070036*.o.*
Masahiro Yamada1377dd32017-10-31 00:33:45 +090037*.patch
Linus Torvalds1e651742005-10-18 08:26:15 -070038*.s
Brian Gerst20ede272006-01-05 12:10:52 -050039*.so
Thomas Gleixnerf3227272007-10-19 20:35:02 +020040*.so.dbg
Rasmus Villemoese2557282015-08-20 11:53:28 +020041*.su
Masahiro Yamada1377dd32017-10-31 00:33:45 +090042*.symtypes
Masahiro Yamada59889302018-03-23 22:04:30 +090043*.tab.[ch]
Masahiro Yamada1377dd32017-10-31 00:33:45 +090044*.tar
45*.xz
46Module.symvers
47modules.builtin
Masahiro Yamadaa564bde2019-08-19 13:18:07 +090048modules.order
Linus Torvalds1e651742005-10-18 08:26:15 -070049
50#
51# Top-level generic files
52#
Linus Torvalds6db823c2010-03-12 16:30:23 -080053/tags
54/TAGS
55/linux
56/vmlinux
Florian Fainellid0fe1162015-04-24 10:27:40 -070057/vmlinux.32
Daniel Thompson2478a8a2015-02-17 13:47:38 -080058/vmlinux-gdb.py
Linus Torvalds6db823c2010-03-12 16:30:23 -080059/vmlinuz
60/System.map
61/Module.markers
Alexey Gladkov898490c2019-04-29 18:11:14 +020062/modules.builtin.modinfo
Masahiro Yamadabbc55bd2019-10-29 21:38:07 +090063/modules.nsdeps
Linus Torvalds6db823c2010-03-12 16:30:23 -080064
65#
Masahiro Yamadaaf60e202017-09-30 10:10:10 +090066# RPM spec file (make rpm-pkg)
67#
68/*.spec
69
70#
Greg Dietscheb7568282011-06-30 18:42:50 -050071# Debian directory (make deb-pkg)
72#
73/debian/
74
75#
Paolo Pisati5704d452017-11-27 12:07:34 +010076# Snap directory (make snap-pkg)
77#
78/snap/
79
80#
Andrey Skvortsovdd10ca62015-02-12 15:01:19 -080081# tar directory (make tar*-pkg)
82#
83/tar-install/
84
85#
Masahiro Yamadaf46e65d2019-05-11 12:13:54 +090086# We don't want to ignore the following even if they are dot-files
Linus Torvalds6db823c2010-03-12 16:30:23 -080087#
Masahiro Yamadaf46e65d2019-05-11 12:13:54 +090088!.clang-format
89!.cocciconfig
90!.get_maintainer.ignore
91!.gitattributes
Denis V. Lunev9e447a72007-10-16 11:22:21 +040092!.gitignore
Eduard - Gabriel Munteanuf72e9df2008-06-26 10:54:34 +030093!.mailmap
Linus Torvalds1e651742005-10-18 08:26:15 -070094
95#
96# Generated include files
97#
Masahiro Yamada1e356632019-04-30 00:17:53 +090098/include/config/
99/include/generated/
100/include/ksym/
101/arch/*/include/generated/
Linus Torvalds1e651742005-10-18 08:26:15 -0700102
Mauro Carvalho Chehab1d519602006-02-27 00:07:24 -0300103# stgit generated dirs
104patches-*
Qi Yong8ccf2832006-07-17 13:37:06 +0800105
106# quilt's files
107patches
108series
Tobias Klauser132e2bc2006-12-22 01:07:32 -0800109
110# cscope files
111cscope.*
Jike Song9723c042008-05-22 09:23:10 +0800112ncscope.*
Alexey Dobriyan3f1b0e12007-07-15 23:41:52 -0700113
Jani Nikulaf2ac5e72009-06-11 12:21:47 +0300114# gnu global files
115GPATH
116GRTAGS
117GSYMS
118GTAGS
119
Andi Kleena37161c2015-04-16 14:02:41 -0700120# id-utils files
121ID
122
Alexey Dobriyan3f1b0e12007-07-15 23:41:52 -0700123*.orig
Chris Dearman70886552008-03-04 14:28:59 -0800124*~
125\#*#
David Howellsaddbcdb2012-09-26 10:09:50 +0100126
127#
128# Leavings from module signing
129#
130extra_certificates
David Woodhousefb117942015-07-20 21:16:30 +0100131signing_key.pem
David Howellsaddbcdb2012-09-26 10:09:50 +0100132signing_key.priv
133signing_key.x509
David Howellsaddbcdb2012-09-26 10:09:50 +0100134x509.genkey
Borislav Petkov25fba9b2014-02-10 14:25:45 -0800135
136# Kconfig presets
Masahiro Yamada7fb1fc42019-05-07 21:48:46 +0900137/all.config
138/alldef.config
139/allmod.config
140/allno.config
141/allrandom.config
142/allyes.config
Boaz Harroshdfe04872014-11-25 18:42:54 +0200143
144# Kdevelop4
145*.kdev4
Toru Komatsu26c4c712019-07-24 09:22:33 +0900146
147# Clang's compilation database file
148/compile_commands.json