blob: 7902adf4f7f1a55e40c21fb793ecb36c479fa947 [file] [log] [blame]
Masahiro Yamadad198b34f2020-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#
Masahiro Yamadab8a9ddc2022-12-29 16:43:09 +09007# NOTE! Please use 'git ls-files -i -c --exclude-per-directory=.gitignore'
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
Andrew Davisdcad2402022-11-14 14:59:39 -060023*.dtbo.S
Masahiro Yamada1377dd32017-10-31 00:33:45 +090024*.dwo
25*.elf
26*.gcno
27*.gz
28*.i
29*.ko
Masahiro Yamada59889302018-03-23 22:04:30 +090030*.lex.c
Masahiro Yamada1377dd32017-10-31 00:33:45 +090031*.ll
32*.lst
33*.lz4
34*.lzma
35*.lzo
Masahiro Yamadab7dca6d2019-07-17 15:17:57 +090036*.mod
Masahiro Yamada1377dd32017-10-31 00:33:45 +090037*.mod.c
Linus Torvalds1e651742005-10-18 08:26:15 -070038*.o
Alexey Dobriyan96918a352007-07-31 00:37:25 -070039*.o.*
Masahiro Yamada1377dd32017-10-31 00:33:45 +090040*.patch
Miguel Ojeda2f7ab122021-07-03 16:42:57 +020041*.rmeta
Masahiro Yamada924d28b2022-12-27 03:54:44 +090042*.rpm
Miguel Ojeda2f7ab122021-07-03 16:42:57 +020043*.rsi
Linus Torvalds1e651742005-10-18 08:26:15 -070044*.s
Brian Gerst20ede272006-01-05 12:10:52 -050045*.so
Thomas Gleixnerf3227272007-10-19 20:35:02 +020046*.so.dbg
Rasmus Villemoese2557282015-08-20 11:53:28 +020047*.su
Masahiro Yamada1377dd32017-10-31 00:33:45 +090048*.symtypes
Sami Tolvanen38e89182020-12-11 10:46:20 -080049*.symversions
Masahiro Yamada59889302018-03-23 22:04:30 +090050*.tab.[ch]
Masahiro Yamada1377dd32017-10-31 00:33:45 +090051*.tar
52*.xz
Adam Borowski6f3deca2020-07-30 12:08:40 -070053*.zst
Masahiro Yamada1377dd32017-10-31 00:33:45 +090054Module.symvers
Masahiro Yamada24507872024-01-09 21:07:34 +090055dtbs-list
Masahiro Yamadaa564bde2019-08-19 13:18:07 +090056modules.order
Linus Torvalds1e651742005-10-18 08:26:15 -070057
58#
59# Top-level generic files
60#
Linus Torvalds6db823c2010-03-12 16:30:23 -080061/linux
Masahiro Yamada69bc8d32021-03-26 03:54:09 +090062/modules-only.symvers
Linus Torvalds6db823c2010-03-12 16:30:23 -080063/vmlinux
Florian Fainellid0fe1162015-04-24 10:27:40 -070064/vmlinux.32
Rasmus Villemoes5cc12472021-03-05 10:27:07 +010065/vmlinux.map
Masahiro Yamada269a5352020-06-01 14:57:11 +090066/vmlinux.symvers
Daniel Thompson2478a8a2015-02-17 13:47:38 -080067/vmlinux-gdb.py
Linus Torvalds6db823c2010-03-12 16:30:23 -080068/vmlinuz
69/System.map
70/Module.markers
Masahiro Yamada40cb0202021-04-25 15:24:05 +090071/modules.builtin
Alexey Gladkov898490c2019-04-29 18:11:14 +020072/modules.builtin.modinfo
Masahiro Yamadabbc55bd2019-10-29 21:38:07 +090073/modules.nsdeps
Linus Torvalds6db823c2010-03-12 16:30:23 -080074
75#
Masahiro Yamadaaf60e202017-09-30 10:10:10 +090076# RPM spec file (make rpm-pkg)
77#
Masahiro Yamada81f59a22023-03-16 00:50:17 +090078/rpmbuild/
Masahiro Yamadaaf60e202017-09-30 10:10:10 +090079
80#
Greg Dietscheb7568282011-06-30 18:42:50 -050081# Debian directory (make deb-pkg)
82#
83/debian/
84
85#
Paolo Pisati5704d452017-11-27 12:07:34 +010086# Snap directory (make snap-pkg)
87#
88/snap/
89
90#
Andrey Skvortsovdd10ca62015-02-12 15:01:19 -080091# tar directory (make tar*-pkg)
92#
93/tar-install/
94
95#
Thomas Weißschuhc8578532024-07-20 11:18:12 +020096# pacman files (make pacman-pkg)
97#
98/PKGBUILD
99/pacman/
100
101#
Masahiro Yamadaf46e65d2019-05-11 12:13:54 +0900102# We don't want to ignore the following even if they are dot-files
Linus Torvalds6db823c2010-03-12 16:30:23 -0800103#
Masahiro Yamadaf46e65d2019-05-11 12:13:54 +0900104!.clang-format
105!.cocciconfig
Íñigo Huguet5a602de2023-06-01 09:53:33 +0200106!.editorconfig
Masahiro Yamadaf46e65d2019-05-11 12:13:54 +0900107!.get_maintainer.ignore
108!.gitattributes
Denis V. Lunev9e447a72007-10-16 11:22:21 +0400109!.gitignore
Andy Shevchenkocb8865f2023-01-27 16:57:08 +0200110!.kunitconfig
Eduard - Gabriel Munteanuf72e9df2008-06-26 10:54:34 +0300111!.mailmap
Miguel Ojeda80db40ba2022-08-04 12:54:09 +0200112!.rustfmt.toml
Linus Torvalds1e651742005-10-18 08:26:15 -0700113
114#
115# Generated include files
116#
Masahiro Yamada1e356632019-04-30 00:17:53 +0900117/include/config/
118/include/generated/
Masahiro Yamada1e356632019-04-30 00:17:53 +0900119/arch/*/include/generated/
Linus Torvalds1e651742005-10-18 08:26:15 -0700120
Mauro Carvalho Chehab1d519602006-02-27 00:07:24 -0300121# stgit generated dirs
122patches-*
Qi Yong8ccf2832006-07-17 13:37:06 +0800123
124# quilt's files
125patches
126series
Tobias Klauser132e2bc2006-12-22 01:07:32 -0800127
Masahiro Yamada819cb9f2021-04-25 15:24:04 +0900128# ctags files
129tags
130TAGS
131
Tobias Klauser132e2bc2006-12-22 01:07:32 -0800132# cscope files
133cscope.*
Jike Song9723c042008-05-22 09:23:10 +0800134ncscope.*
Alexey Dobriyan3f1b0e12007-07-15 23:41:52 -0700135
Jani Nikulaf2ac5e72009-06-11 12:21:47 +0300136# gnu global files
137GPATH
138GRTAGS
139GSYMS
140GTAGS
141
Andi Kleena37161c2015-04-16 14:02:41 -0700142# id-utils files
143ID
144
Alexey Dobriyan3f1b0e12007-07-15 23:41:52 -0700145*.orig
Chris Dearman70886552008-03-04 14:28:59 -0800146*~
147\#*#
David Howellsaddbcdb2012-09-26 10:09:50 +0100148
149#
150# Leavings from module signing
151#
152extra_certificates
David Woodhousefb117942015-07-20 21:16:30 +0100153signing_key.pem
David Howellsaddbcdb2012-09-26 10:09:50 +0100154signing_key.priv
155signing_key.x509
David Howellsaddbcdb2012-09-26 10:09:50 +0100156x509.genkey
Borislav Petkov25fba9b2014-02-10 14:25:45 -0800157
158# Kconfig presets
Masahiro Yamada7fb1fc42019-05-07 21:48:46 +0900159/all.config
160/alldef.config
161/allmod.config
162/allno.config
163/allrandom.config
164/allyes.config
Boaz Harroshdfe04872014-11-25 18:42:54 +0200165
Paul Menzelba77dca2020-07-02 13:12:00 +0200166# Kconfig savedefconfig output
167/defconfig
168
Boaz Harroshdfe04872014-11-25 18:42:54 +0200169# Kdevelop4
170*.kdev4
Toru Komatsu26c4c712019-07-24 09:22:33 +0900171
172# Clang's compilation database file
173/compile_commands.json
Mauro Carvalho Chehabf6236ef2020-09-09 16:10:32 +0200174
175# Documentation toolchain
176sphinx_*/
Miguel Ojeda8c4555c2021-07-03 17:26:15 +0200177
178# Rust analyzer configuration
179/rust-project.json