xref: /linux/.gitignore (revision c21614d5c0e76cf1d7a864f15d495fd3e5876acc)
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*.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*.rmeta
42*.rpm
43*.rsi
44*.s
45*.so
46*.so.dbg
47*.su
48*.symtypes
49*.symversions
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.nsdeps
74
75#
76# RPM spec file (make rpm-pkg)
77#
78/rpmbuild/
79
80#
81# Debian directory (make deb-pkg)
82#
83/debian/
84
85#
86# Snap directory (make snap-pkg)
87#
88/snap/
89
90#
91# tar directory (make tar*-pkg)
92#
93/tar-install/
94
95#
96# We don't want to ignore the following even if they are dot-files
97#
98!.clang-format
99!.cocciconfig
100!.editorconfig
101!.get_maintainer.ignore
102!.gitattributes
103!.gitignore
104!.kunitconfig
105!.mailmap
106!.rustfmt.toml
107
108#
109# Generated include files
110#
111/include/config/
112/include/generated/
113/arch/*/include/generated/
114
115# stgit generated dirs
116patches-*
117
118# quilt's files
119patches
120series
121
122# ctags files
123tags
124TAGS
125
126# cscope files
127cscope.*
128ncscope.*
129
130# gnu global files
131GPATH
132GRTAGS
133GSYMS
134GTAGS
135
136# id-utils files
137ID
138
139*.orig
140*~
141\#*#
142
143#
144# Leavings from module signing
145#
146extra_certificates
147signing_key.pem
148signing_key.priv
149signing_key.x509
150x509.genkey
151
152# Kconfig presets
153/all.config
154/alldef.config
155/allmod.config
156/allno.config
157/allrandom.config
158/allyes.config
159
160# Kconfig savedefconfig output
161/defconfig
162
163# Kdevelop4
164*.kdev4
165
166# Clang's compilation database file
167/compile_commands.json
168
169# Documentation toolchain
170sphinx_*/
171
172# Rust analyzer configuration
173/rust-project.json
174