xref: /linux/.gitignore (revision 76be4f5a784533c71afbbb1b8f2963ef9e2ee258)
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# pacman files (make pacman-pkg)
97#
98/PKGBUILD
99/pacman/
100
101#
102# We don't want to ignore the following even if they are dot-files
103#
104!.clang-format
105!.cocciconfig
106!.editorconfig
107!.get_maintainer.ignore
108!.gitattributes
109!.gitignore
110!.kunitconfig
111!.mailmap
112!.rustfmt.toml
113
114#
115# Generated include files
116#
117/include/config/
118/include/generated/
119/arch/*/include/generated/
120
121# stgit generated dirs
122patches-*
123
124# quilt's files
125patches
126series
127
128# ctags files
129tags
130TAGS
131
132# cscope files
133cscope.*
134ncscope.*
135
136# gnu global files
137GPATH
138GRTAGS
139GSYMS
140GTAGS
141
142# id-utils files
143ID
144
145*~
146\#*#
147
148#
149# Leavings from module signing
150#
151extra_certificates
152signing_key.pem
153signing_key.priv
154signing_key.x509
155x509.genkey
156
157# Kconfig presets
158/all.config
159/alldef.config
160/allmod.config
161/allno.config
162/allrandom.config
163/allyes.config
164
165# Kconfig savedefconfig output
166/defconfig
167
168# Kdevelop4
169*.kdev4
170
171# Clang's compilation database file
172/compile_commands.json
173
174# Documentation toolchain
175sphinx_*/
176
177# Rust analyzer configuration
178/rust-project.json
179