xref: /linux/.gitignore (revision 2d7eaeb05ae265bd64270376e6a2c0d80244771f)
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*.bc
17*.bin
18*.bz2
19*.c.[012]*.*
20*.dt.yaml
21*.dtb
22*.dtbo
23*.dtb.S
24*.dtbo.S
25*.dwo
26*.dylib
27*.elf
28*.gcno
29*.gcda
30*.gz
31*.header-check
32*.i
33*.ko
34*.lex.c
35*.ll
36*.lst
37*.lz4
38*.lzma
39*.lzo
40*.mod
41*.mod.c
42*.o
43*.o.*
44*.patch
45*.pyc
46*.rlib
47*.rmeta
48*.rpm
49*.rsi
50*.s
51*.so
52*.so.dbg
53*.spdx.json
54*.su
55*.symtypes
56*.tab.[ch]
57*.tar
58*.xz
59*.zst
60Module.symvers
61dtbs-list
62builtin.order
63modules.order
64
65#
66# Top-level generic files
67#
68/linux
69/modules-only.symvers
70/vmlinux
71/vmlinux.32
72/vmlinux.map
73/vmlinux.symvers
74/vmlinux.thinlto-index
75/vmlinux.unstripped
76/vmlinux.BTF.inline
77/vmlinux-gdb.py
78/vmlinuz
79/System.map
80/modules.builtin
81/modules.builtin.modinfo
82/modules.builtin.ranges
83/modules.nsdeps
84
85#
86# RPM spec file (make rpm-pkg)
87#
88/rpmbuild/
89
90#
91# Debian directory (make deb-pkg)
92#
93/debian/
94
95#
96# Snap directory (make snap-pkg)
97#
98/snap/
99
100#
101# tar directory (make tar*-pkg)
102#
103/tar-install/
104
105#
106# pacman files (make pacman-pkg)
107#
108/*.pkg.*.sig
109/PKGBUILD
110/pacman/
111
112#
113# We don't want to ignore the following even if they are dot-files
114#
115!.clang-format
116!.clippy.toml
117!.cocciconfig
118!.editorconfig
119!.get_maintainer.ignore
120!.gitattributes
121!.gitignore
122!.kunitconfig
123!.mailmap
124!.pylintrc
125!.rustfmt.toml
126
127#
128# Generated include files
129#
130/include/config/
131/include/generated/
132/arch/*/include/generated/
133
134# stgit generated dirs
135patches-*
136
137# quilt's files
138patches
139series
140
141# ctags files
142tags
143!tags/
144TAGS
145
146# cscope files
147cscope.*
148ncscope.*
149
150# gnu global files
151GPATH
152GRTAGS
153GSYMS
154GTAGS
155
156# id-utils files
157ID
158
159*~
160\#*#
161
162#
163# Leavings from module signing
164#
165extra_certificates
166signing_key.pem
167signing_key.priv
168signing_key.x509
169x509.genkey
170
171# Kconfig presets
172/all.config
173/alldef.config
174/allmod.config
175/allno.config
176/allrandom.config
177/allyes.config
178
179# Kconfig savedefconfig output
180/defconfig
181
182# Kdevelop4
183*.kdev4
184
185# Clang's compilation database file
186compile_commands.json
187
188# Documentation toolchain
189sphinx_*/
190
191# Rust analyzer configuration
192/rust-project.json
193
194# rustc error message long types
195*.long-type-*.txt
196
197# bc language scripts (not LLVM bitcode)
198!kernel/time/timeconst.bc
199