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