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