xref: /linux/.gitignore (revision 96500610)
1# SPDX-License-Identifier: GPL-2.0-only
2#
3# NOTE! Don't add files that are generated in specific
4# subdirectories here. Add them in the ".gitignore" file
5# in that subdirectory instead.
6#
7# NOTE! Please use 'git ls-files -i -c --exclude-per-directory=.gitignore'
8# command after changing this file, to see if there are
9# any tracked files which get ignored after the change.
10#
11# Normal rules (sorted alphabetically)
12#
13.*
14*.a
15*.asn1.[ch]
16*.bin
17*.bz2
18*.c.[012]*.*
19*.cover
20*.dt.yaml
21*.dtb
22*.dtbo
23*.dtb.S
24*.dtbo.S
25*.dwo
26*.elf
27*.gcno
28*.gz
29*.i
30*.ko
31*.lex.c
32*.ll
33*.lst
34*.lz4
35*.lzma
36*.lzo
37*.mbx
38*.mod
39*.mod.c
40*.o
41*.o.*
42*.patch
43*.rmeta
44*.rpm
45*.rsi
46*.s
47*.so
48*.so.dbg
49*.su
50*.symtypes
51*.symversions
52*.tab.[ch]
53*.tar
54*.usyms
55*.xz
56*.zst
57Module.symvers
58modules.order
59
60#
61# Top-level generic files
62#
63/linux
64/modules-only.symvers
65/vmlinux
66/vmlinux.32
67/vmlinux.map
68/vmlinux.symvers
69/vmlinux-gdb.py
70/vmlinuz
71/System.map
72/Module.markers
73/modules.builtin
74/modules.builtin.modinfo
75/modules.nsdeps
76
77#
78# RPM spec file (make rpm-pkg)
79#
80/*.spec
81/rpmbuild/
82
83#
84# Debian directory (make deb-pkg)
85#
86/debian/
87
88#
89# Snap directory (make snap-pkg)
90#
91/snap/
92
93#
94# tar directory (make tar*-pkg)
95#
96/tar-install/
97
98#
99# We don't want to ignore the following even if they are dot-files
100#
101!.clang-format
102!.cocciconfig
103!.get_maintainer.ignore
104!.gitattributes
105!.gitignore
106!.mailmap
107!.rustfmt.toml
108
109#
110# Generated include files
111#
112/include/config/
113/include/generated/
114/include/ksym/
115/arch/*/include/generated/
116
117# stgit generated dirs
118patches-*
119
120# quilt's files
121patches
122series
123
124# ctags files
125tags
126TAGS
127
128# cscope files
129cscope.*
130ncscope.*
131
132# gnu global files
133GPATH
134GRTAGS
135GSYMS
136GTAGS
137
138# id-utils files
139ID
140
141*.orig
142*~
143\#*#
144
145#
146# Leavings from module signing
147#
148extra_certificates
149signing_key.pem
150signing_key.priv
151signing_key.x509
152x509.genkey
153
154# Kconfig presets
155/all.config
156/alldef.config
157/allmod.config
158/allno.config
159/allrandom.config
160/allyes.config
161
162# Kconfig savedefconfig output
163/defconfig
164
165# Kdevelop4
166*.kdev4
167
168# Clang's compilation database file
169/compile_commands.json
170
171# Documentation toolchain
172sphinx_*/
173
174# Rust analyzer configuration
175/rust-project.json
176