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