xref: /openbmc/linux/.gitignore (revision 497a4dc8)
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 --exclude-standard'
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*.dwo
24*.elf
25*.gcno
26*.gz
27*.i
28*.ko
29*.lex.c
30*.ll
31*.lst
32*.lz4
33*.lzma
34*.lzo
35*.mod
36*.mod.c
37*.o
38*.o.*
39*.patch
40*.s
41*.so
42*.so.dbg
43*.su
44*.symtypes
45*.tab.[ch]
46*.tar
47*.xz
48*.zst
49Module.symvers
50modules.builtin
51modules.order
52
53#
54# Top-level generic files
55#
56/tags
57/TAGS
58/linux
59/vmlinux
60/vmlinux.32
61/vmlinux.symvers
62/vmlinux-gdb.py
63/vmlinuz
64/System.map
65/Module.markers
66/modules.builtin.modinfo
67/modules.nsdeps
68
69#
70# RPM spec file (make rpm-pkg)
71#
72/*.spec
73
74#
75# Debian directory (make deb-pkg)
76#
77/debian/
78
79#
80# Snap directory (make snap-pkg)
81#
82/snap/
83
84#
85# tar directory (make tar*-pkg)
86#
87/tar-install/
88
89#
90# We don't want to ignore the following even if they are dot-files
91#
92!.clang-format
93!.cocciconfig
94!.get_maintainer.ignore
95!.gitattributes
96!.gitignore
97!.mailmap
98
99#
100# Generated include files
101#
102/include/config/
103/include/generated/
104/include/ksym/
105/arch/*/include/generated/
106
107# stgit generated dirs
108patches-*
109
110# quilt's files
111patches
112series
113
114# cscope files
115cscope.*
116ncscope.*
117
118# gnu global files
119GPATH
120GRTAGS
121GSYMS
122GTAGS
123
124# id-utils files
125ID
126
127*.orig
128*~
129\#*#
130
131#
132# Leavings from module signing
133#
134extra_certificates
135signing_key.pem
136signing_key.priv
137signing_key.x509
138x509.genkey
139
140# Kconfig presets
141/all.config
142/alldef.config
143/allmod.config
144/allno.config
145/allrandom.config
146/allyes.config
147
148# Kconfig savedefconfig output
149/defconfig
150
151# Kdevelop4
152*.kdev4
153
154# Clang's compilation database file
155/compile_commands.json
156
157# Documentation toolchain
158sphinx_*/
159