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