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*.img
15*.a
16*.asn1.[ch]
17*.bin
18*.bz2
19*.c.[012]*.*
20*.dt.yaml
21*.dtb
22*.dtbo
23*.dtb.S
24*.dwo
25*.elf
26*.gcno
27*.gz
28*.i
29*.ko
30*.lex.c
31*.ll
32*.lst
33*.lz4
34*.lzma
35*.lzo
36*.mod
37*.mod.c
38*.o
39*.o.*
40*.patch
41*.s
42*.so
43*.so.dbg
44*.su
45*.symtypes
46*.symversions
47*.tab.[ch]
48*.tar
49*.xz
50*.zst
51Module.symvers
52modules.order
53
54#
55# Top-level generic files
56#
57/linux
58/modules-only.symvers
59/vmlinux
60/vmlinux.32
61/vmlinux.map
62/vmlinux.symvers
63/vmlinux-gdb.py
64/vmlinuz
65/System.map
66/Module.markers
67/modules.builtin
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# ctags files
117tags
118TAGS
119
120# cscope files
121cscope.*
122ncscope.*
123
124# gnu global files
125GPATH
126GRTAGS
127GSYMS
128GTAGS
129
130# id-utils files
131ID
132
133*.orig
134*~
135\#*#
136
137#
138# Leavings from module signing
139#
140extra_certificates
141signing_key.pem
142signing_key.priv
143signing_key.x509
144x509.genkey
145
146# Kconfig presets
147/all.config
148/alldef.config
149/allmod.config
150/allno.config
151/allrandom.config
152/allyes.config
153
154# Kconfig savedefconfig output
155/defconfig
156
157# Kdevelop4
158*.kdev4
159
160# Clang's compilation database file
161/compile_commands.json
162
163# Documentation toolchain
164sphinx_*/
165