blob: 7afd412dadd2c18b2d1e0c7813b2979ceedabf30 [file] [log] [blame]
Masahiro Yamadad198b342020-03-03 22:35:59 +09001# SPDX-License-Identifier: GPL-2.0-only
Linus Torvalds1e651742005-10-18 08:26:15 -07002#
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#
Matt Kraaiff2f5ff2009-06-04 21:43:10 -07007# NOTE! Please use 'git ls-files -i --exclude-standard'
Eduard - Gabriel Munteanuf72e9df2008-06-26 10:54:34 +03008# command after changing this file, to see if there are
9# any tracked files which get ignored after the change.
10#
Masahiro Yamada1377dd32017-10-31 00:33:45 +090011# Normal rules (sorted alphabetically)
Linus Torvalds1e651742005-10-18 08:26:15 -070012#
13.*
Masahiro Yamada1377dd32017-10-31 00:33:45 +090014*.a
Masahiro Yamada4fa8bc92018-03-23 22:04:37 +090015*.asn1.[ch]
Masahiro Yamada1377dd32017-10-31 00:33:45 +090016*.bin
17*.bz2
18*.c.[012]*.*
Rob Herring4f0e3a52018-09-06 13:26:07 -050019*.dt.yaml
Masahiro Yamada10b62a22017-10-31 00:33:46 +090020*.dtb
Viresh Kumarce88c9c2021-01-29 12:54:08 +053021*.dtbo
Masahiro Yamada10b62a22017-10-31 00:33:46 +090022*.dtb.S
Masahiro Yamada1377dd32017-10-31 00:33:45 +090023*.dwo
24*.elf
25*.gcno
26*.gz
27*.i
28*.ko
Masahiro Yamada59889302018-03-23 22:04:30 +090029*.lex.c
Masahiro Yamada1377dd32017-10-31 00:33:45 +090030*.ll
31*.lst
32*.lz4
33*.lzma
34*.lzo
Masahiro Yamadab7dca6d2019-07-17 15:17:57 +090035*.mod
Masahiro Yamada1377dd32017-10-31 00:33:45 +090036*.mod.c
Linus Torvalds1e651742005-10-18 08:26:15 -070037*.o
Alexey Dobriyan96918a32007-07-31 00:37:25 -070038*.o.*
Masahiro Yamada1377dd32017-10-31 00:33:45 +090039*.patch
Linus Torvalds1e651742005-10-18 08:26:15 -070040*.s
Brian Gerst20ede272006-01-05 12:10:52 -050041*.so
Thomas Gleixnerf3227272007-10-19 20:35:02 +020042*.so.dbg
Rasmus Villemoese2557282015-08-20 11:53:28 +020043*.su
Masahiro Yamada1377dd32017-10-31 00:33:45 +090044*.symtypes
Sami Tolvanen38e89182020-12-11 10:46:20 -080045*.symversions
Masahiro Yamada59889302018-03-23 22:04:30 +090046*.tab.[ch]
Masahiro Yamada1377dd32017-10-31 00:33:45 +090047*.tar
48*.xz
Adam Borowski6f3deca2020-07-30 12:08:40 -070049*.zst
Masahiro Yamada1377dd32017-10-31 00:33:45 +090050Module.symvers
Masahiro Yamadaa564bde2019-08-19 13:18:07 +090051modules.order
Linus Torvalds1e651742005-10-18 08:26:15 -070052
53#
54# Top-level generic files
55#
Linus Torvalds6db823c2010-03-12 16:30:23 -080056/linux
Masahiro Yamada69bc8d32021-03-26 03:54:09 +090057/modules-only.symvers
Linus Torvalds6db823c2010-03-12 16:30:23 -080058/vmlinux
Florian Fainellid0fe1162015-04-24 10:27:40 -070059/vmlinux.32
Rasmus Villemoes5cc12472021-03-05 10:27:07 +010060/vmlinux.map
Masahiro Yamada269a5352020-06-01 14:57:11 +090061/vmlinux.symvers
Daniel Thompson2478a8a2015-02-17 13:47:38 -080062/vmlinux-gdb.py
Linus Torvalds6db823c2010-03-12 16:30:23 -080063/vmlinuz
64/System.map
65/Module.markers
Masahiro Yamada40cb0202021-04-25 15:24:05 +090066/modules.builtin
Alexey Gladkov898490c2019-04-29 18:11:14 +020067/modules.builtin.modinfo
Masahiro Yamadabbc55bd2019-10-29 21:38:07 +090068/modules.nsdeps
Linus Torvalds6db823c2010-03-12 16:30:23 -080069
70#
Masahiro Yamadaaf60e202017-09-30 10:10:10 +090071# RPM spec file (make rpm-pkg)
72#
73/*.spec
74
75#
Greg Dietscheb7568282011-06-30 18:42:50 -050076# Debian directory (make deb-pkg)
77#
78/debian/
79
80#
Paolo Pisati5704d452017-11-27 12:07:34 +010081# Snap directory (make snap-pkg)
82#
83/snap/
84
85#
Andrey Skvortsovdd10ca62015-02-12 15:01:19 -080086# tar directory (make tar*-pkg)
87#
88/tar-install/
89
90#
Masahiro Yamadaf46e65d2019-05-11 12:13:54 +090091# We don't want to ignore the following even if they are dot-files
Linus Torvalds6db823c2010-03-12 16:30:23 -080092#
Masahiro Yamadaf46e65d2019-05-11 12:13:54 +090093!.clang-format
94!.cocciconfig
95!.get_maintainer.ignore
96!.gitattributes
Denis V. Lunev9e447a72007-10-16 11:22:21 +040097!.gitignore
Eduard - Gabriel Munteanuf72e9df2008-06-26 10:54:34 +030098!.mailmap
Linus Torvalds1e651742005-10-18 08:26:15 -070099
100#
101# Generated include files
102#
Masahiro Yamada1e356632019-04-30 00:17:53 +0900103/include/config/
104/include/generated/
105/include/ksym/
106/arch/*/include/generated/
Linus Torvalds1e651742005-10-18 08:26:15 -0700107
Mauro Carvalho Chehab1d519602006-02-27 00:07:24 -0300108# stgit generated dirs
109patches-*
Qi Yong8ccf2832006-07-17 13:37:06 +0800110
111# quilt's files
112patches
113series
Tobias Klauser132e2bc2006-12-22 01:07:32 -0800114
Masahiro Yamada819cb9f2021-04-25 15:24:04 +0900115# ctags files
116tags
117TAGS
118
Tobias Klauser132e2bc2006-12-22 01:07:32 -0800119# cscope files
120cscope.*
Jike Song9723c042008-05-22 09:23:10 +0800121ncscope.*
Alexey Dobriyan3f1b0e12007-07-15 23:41:52 -0700122
Jani Nikulaf2ac5e72009-06-11 12:21:47 +0300123# gnu global files
124GPATH
125GRTAGS
126GSYMS
127GTAGS
128
Andi Kleena37161c2015-04-16 14:02:41 -0700129# id-utils files
130ID
131
Alexey Dobriyan3f1b0e12007-07-15 23:41:52 -0700132*.orig
Chris Dearman70886552008-03-04 14:28:59 -0800133*~
134\#*#
David Howellsaddbcdb2012-09-26 10:09:50 +0100135
136#
137# Leavings from module signing
138#
139extra_certificates
David Woodhousefb117942015-07-20 21:16:30 +0100140signing_key.pem
David Howellsaddbcdb2012-09-26 10:09:50 +0100141signing_key.priv
142signing_key.x509
David Howellsaddbcdb2012-09-26 10:09:50 +0100143x509.genkey
Borislav Petkov25fba9b2014-02-10 14:25:45 -0800144
145# Kconfig presets
Masahiro Yamada7fb1fc42019-05-07 21:48:46 +0900146/all.config
147/alldef.config
148/allmod.config
149/allno.config
150/allrandom.config
151/allyes.config
Boaz Harroshdfe04872014-11-25 18:42:54 +0200152
Paul Menzelba77dca2020-07-02 13:12:00 +0200153# Kconfig savedefconfig output
154/defconfig
155
Boaz Harroshdfe04872014-11-25 18:42:54 +0200156# Kdevelop4
157*.kdev4
Toru Komatsu26c4c712019-07-24 09:22:33 +0900158
159# Clang's compilation database file
160/compile_commands.json
Mauro Carvalho Chehabf6236ef2020-09-09 16:10:32 +0200161
162# Documentation toolchain
163sphinx_*/