blob: d01cda8e11779a2fa3e3333fd176e2e77e02fd21 [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
21*.dtb.S
Masahiro Yamada1377dd32017-10-31 00:33:45 +090022*.dwo
23*.elf
24*.gcno
25*.gz
26*.i
27*.ko
Masahiro Yamada59889302018-03-23 22:04:30 +090028*.lex.c
Masahiro Yamada1377dd32017-10-31 00:33:45 +090029*.ll
30*.lst
31*.lz4
32*.lzma
33*.lzo
Masahiro Yamadab7dca6d2019-07-17 15:17:57 +090034*.mod
Masahiro Yamada1377dd32017-10-31 00:33:45 +090035*.mod.c
Linus Torvalds1e651742005-10-18 08:26:15 -070036*.o
Alexey Dobriyan96918a32007-07-31 00:37:25 -070037*.o.*
Masahiro Yamada1377dd32017-10-31 00:33:45 +090038*.patch
Linus Torvalds1e651742005-10-18 08:26:15 -070039*.s
Brian Gerst20ede272006-01-05 12:10:52 -050040*.so
Thomas Gleixnerf3227272007-10-19 20:35:02 +020041*.so.dbg
Rasmus Villemoese2557282015-08-20 11:53:28 +020042*.su
Masahiro Yamada1377dd32017-10-31 00:33:45 +090043*.symtypes
Masahiro Yamada59889302018-03-23 22:04:30 +090044*.tab.[ch]
Masahiro Yamada1377dd32017-10-31 00:33:45 +090045*.tar
46*.xz
Adam Borowski6f3deca2020-07-30 12:08:40 -070047*.zst
Masahiro Yamada1377dd32017-10-31 00:33:45 +090048Module.symvers
49modules.builtin
Masahiro Yamadaa564bde2019-08-19 13:18:07 +090050modules.order
Linus Torvalds1e651742005-10-18 08:26:15 -070051
52#
53# Top-level generic files
54#
Linus Torvalds6db823c2010-03-12 16:30:23 -080055/tags
56/TAGS
57/linux
58/vmlinux
Florian Fainellid0fe1162015-04-24 10:27:40 -070059/vmlinux.32
Masahiro Yamada269a5352020-06-01 14:57:11 +090060/vmlinux.symvers
Daniel Thompson2478a8a2015-02-17 13:47:38 -080061/vmlinux-gdb.py
Linus Torvalds6db823c2010-03-12 16:30:23 -080062/vmlinuz
63/System.map
64/Module.markers
Alexey Gladkov898490c2019-04-29 18:11:14 +020065/modules.builtin.modinfo
Masahiro Yamadabbc55bd2019-10-29 21:38:07 +090066/modules.nsdeps
Linus Torvalds6db823c2010-03-12 16:30:23 -080067
68#
Masahiro Yamadaaf60e202017-09-30 10:10:10 +090069# RPM spec file (make rpm-pkg)
70#
71/*.spec
72
73#
Greg Dietscheb7568282011-06-30 18:42:50 -050074# Debian directory (make deb-pkg)
75#
76/debian/
77
78#
Paolo Pisati5704d452017-11-27 12:07:34 +010079# Snap directory (make snap-pkg)
80#
81/snap/
82
83#
Andrey Skvortsovdd10ca62015-02-12 15:01:19 -080084# tar directory (make tar*-pkg)
85#
86/tar-install/
87
88#
Masahiro Yamadaf46e65d2019-05-11 12:13:54 +090089# We don't want to ignore the following even if they are dot-files
Linus Torvalds6db823c2010-03-12 16:30:23 -080090#
Masahiro Yamadaf46e65d2019-05-11 12:13:54 +090091!.clang-format
92!.cocciconfig
93!.get_maintainer.ignore
94!.gitattributes
Denis V. Lunev9e447a72007-10-16 11:22:21 +040095!.gitignore
Eduard - Gabriel Munteanuf72e9df2008-06-26 10:54:34 +030096!.mailmap
Linus Torvalds1e651742005-10-18 08:26:15 -070097
98#
99# Generated include files
100#
Masahiro Yamada1e356632019-04-30 00:17:53 +0900101/include/config/
102/include/generated/
103/include/ksym/
104/arch/*/include/generated/
Linus Torvalds1e651742005-10-18 08:26:15 -0700105
Mauro Carvalho Chehab1d519602006-02-27 00:07:24 -0300106# stgit generated dirs
107patches-*
Qi Yong8ccf2832006-07-17 13:37:06 +0800108
109# quilt's files
110patches
111series
Tobias Klauser132e2bc2006-12-22 01:07:32 -0800112
113# cscope files
114cscope.*
Jike Song9723c042008-05-22 09:23:10 +0800115ncscope.*
Alexey Dobriyan3f1b0e12007-07-15 23:41:52 -0700116
Jani Nikulaf2ac5e72009-06-11 12:21:47 +0300117# gnu global files
118GPATH
119GRTAGS
120GSYMS
121GTAGS
122
Andi Kleena37161c2015-04-16 14:02:41 -0700123# id-utils files
124ID
125
Alexey Dobriyan3f1b0e12007-07-15 23:41:52 -0700126*.orig
Chris Dearman70886552008-03-04 14:28:59 -0800127*~
128\#*#
David Howellsaddbcdb2012-09-26 10:09:50 +0100129
130#
131# Leavings from module signing
132#
133extra_certificates
David Woodhousefb117942015-07-20 21:16:30 +0100134signing_key.pem
David Howellsaddbcdb2012-09-26 10:09:50 +0100135signing_key.priv
136signing_key.x509
David Howellsaddbcdb2012-09-26 10:09:50 +0100137x509.genkey
Borislav Petkov25fba9b2014-02-10 14:25:45 -0800138
139# Kconfig presets
Masahiro Yamada7fb1fc42019-05-07 21:48:46 +0900140/all.config
141/alldef.config
142/allmod.config
143/allno.config
144/allrandom.config
145/allyes.config
Boaz Harroshdfe04872014-11-25 18:42:54 +0200146
Paul Menzelba77dca2020-07-02 13:12:00 +0200147# Kconfig savedefconfig output
148/defconfig
149
Boaz Harroshdfe04872014-11-25 18:42:54 +0200150# Kdevelop4
151*.kdev4
Toru Komatsu26c4c712019-07-24 09:22:33 +0900152
153# Clang's compilation database file
154/compile_commands.json
Mauro Carvalho Chehabf6236ef2020-09-09 16:10:32 +0200155
156# Documentation toolchain
157sphinx_*/