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