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 --exclude-standard'
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*.dt.yaml
20*.dtb
21*.dtbo
22*.dtb.S
23*.dwo
24*.elf
25*.gcno
26*.gz
27*.i
28*.ko
29*.lex.c
30*.ll
31*.lst
32*.lz4
33*.lzma
34*.lzo
35*.mod
36*.mod.c
37*.o
38*.o.*
39*.patch
40*.rmeta
41*.rsi
42*.s
43*.so
44*.so.dbg
45*.su
46*.symtypes
47*.symversions
48*.tab.[ch]
49*.tar
50*.usyms
51*.xz
52*.zst
53Module.symvers
54modules.order
55
56#
57# Top-level generic files
58#
59/linux
60/modules-only.symvers
61/vmlinux
62/vmlinux.32
63/vmlinux.map
64/vmlinux.symvers
65/vmlinux-gdb.py
66/vmlinuz
67/System.map
68/Module.markers
69/modules.builtin
70/modules.builtin.modinfo
71/modules.nsdeps
72
73#
74# RPM spec file (make rpm-pkg)
75#
76/*.spec
77
78#
79# Debian directory (make deb-pkg)
80#
81/debian/
82
83#
84# Snap directory (make snap-pkg)
85#
86/snap/
87
88#
89# tar directory (make tar*-pkg)
90#
91/tar-install/
92
93#
94# We don't want to ignore the following even if they are dot-files
95#
96!.clang-format
97!.cocciconfig
98!.get_maintainer.ignore
99!.gitattributes
100!.gitignore
101!.mailmap
102!.rustfmt.toml
103
104#
105# Generated include files
106#
107/include/config/
108/include/generated/
109/include/ksym/
110/arch/*/include/generated/
111
112# stgit generated dirs
113patches-*
114
115# quilt's files
116patches
117series
118
119# ctags files
120tags
121TAGS
122
123# cscope files
124cscope.*
125ncscope.*
126
127# gnu global files
128GPATH
129GRTAGS
130GSYMS
131GTAGS
132
133# id-utils files
134ID
135
136*.orig
137*~
138\#*#
139
140#
141# Leavings from module signing
142#
143extra_certificates
144signing_key.pem
145signing_key.priv
146signing_key.x509
147x509.genkey
148
149# Kconfig presets
150/all.config
151/alldef.config
152/allmod.config
153/allno.config
154/allrandom.config
155/allyes.config
156
157# Kconfig savedefconfig output
158/defconfig
159
160# Kdevelop4
161*.kdev4
162
163# Clang's compilation database file
164/compile_commands.json
165
166# Documentation toolchain
167sphinx_*/
168
169# Rust analyzer configuration
170/rust-project.json
171