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