Masahiro Yamada | d198b34f | 2020-03-03 22:35:59 +0900 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0-only |
Linus Torvalds | 1e65174 | 2005-10-18 08:26:15 -0700 | [diff] [blame] | 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 | # |
Masahiro Yamada | b8a9ddc | 2022-12-29 16:43:09 +0900 | [diff] [blame] | 7 | # NOTE! Please use 'git ls-files -i -c --exclude-per-directory=.gitignore' |
Eduard - Gabriel Munteanu | f72e9df | 2008-06-26 10:54:34 +0300 | [diff] [blame] | 8 | # command after changing this file, to see if there are |
| 9 | # any tracked files which get ignored after the change. |
| 10 | # |
Masahiro Yamada | 1377dd3 | 2017-10-31 00:33:45 +0900 | [diff] [blame] | 11 | # Normal rules (sorted alphabetically) |
Linus Torvalds | 1e65174 | 2005-10-18 08:26:15 -0700 | [diff] [blame] | 12 | # |
| 13 | .* |
Masahiro Yamada | 1377dd3 | 2017-10-31 00:33:45 +0900 | [diff] [blame] | 14 | *.a |
Masahiro Yamada | 4fa8bc9 | 2018-03-23 22:04:37 +0900 | [diff] [blame] | 15 | *.asn1.[ch] |
Masahiro Yamada | 1377dd3 | 2017-10-31 00:33:45 +0900 | [diff] [blame] | 16 | *.bin |
| 17 | *.bz2 |
| 18 | *.c.[012]*.* |
Rob Herring | 4f0e3a5 | 2018-09-06 13:26:07 -0500 | [diff] [blame] | 19 | *.dt.yaml |
Masahiro Yamada | 10b62a2 | 2017-10-31 00:33:46 +0900 | [diff] [blame] | 20 | *.dtb |
Viresh Kumar | ce88c9c | 2021-01-29 12:54:08 +0530 | [diff] [blame] | 21 | *.dtbo |
Masahiro Yamada | 10b62a2 | 2017-10-31 00:33:46 +0900 | [diff] [blame] | 22 | *.dtb.S |
Andrew Davis | dcad240 | 2022-11-14 14:59:39 -0600 | [diff] [blame] | 23 | *.dtbo.S |
Masahiro Yamada | 1377dd3 | 2017-10-31 00:33:45 +0900 | [diff] [blame] | 24 | *.dwo |
| 25 | *.elf |
| 26 | *.gcno |
| 27 | *.gz |
| 28 | *.i |
| 29 | *.ko |
Masahiro Yamada | 5988930 | 2018-03-23 22:04:30 +0900 | [diff] [blame] | 30 | *.lex.c |
Masahiro Yamada | 1377dd3 | 2017-10-31 00:33:45 +0900 | [diff] [blame] | 31 | *.ll |
| 32 | *.lst |
| 33 | *.lz4 |
| 34 | *.lzma |
| 35 | *.lzo |
Masahiro Yamada | b7dca6d | 2019-07-17 15:17:57 +0900 | [diff] [blame] | 36 | *.mod |
Masahiro Yamada | 1377dd3 | 2017-10-31 00:33:45 +0900 | [diff] [blame] | 37 | *.mod.c |
Linus Torvalds | 1e65174 | 2005-10-18 08:26:15 -0700 | [diff] [blame] | 38 | *.o |
Alexey Dobriyan | 96918a35 | 2007-07-31 00:37:25 -0700 | [diff] [blame] | 39 | *.o.* |
Masahiro Yamada | 1377dd3 | 2017-10-31 00:33:45 +0900 | [diff] [blame] | 40 | *.patch |
Miguel Ojeda | 2f7ab12 | 2021-07-03 16:42:57 +0200 | [diff] [blame] | 41 | *.rmeta |
Masahiro Yamada | 924d28b | 2022-12-27 03:54:44 +0900 | [diff] [blame] | 42 | *.rpm |
Miguel Ojeda | 2f7ab12 | 2021-07-03 16:42:57 +0200 | [diff] [blame] | 43 | *.rsi |
Linus Torvalds | 1e65174 | 2005-10-18 08:26:15 -0700 | [diff] [blame] | 44 | *.s |
Brian Gerst | 20ede27 | 2006-01-05 12:10:52 -0500 | [diff] [blame] | 45 | *.so |
Thomas Gleixner | f322727 | 2007-10-19 20:35:02 +0200 | [diff] [blame] | 46 | *.so.dbg |
Rasmus Villemoes | e255728 | 2015-08-20 11:53:28 +0200 | [diff] [blame] | 47 | *.su |
Masahiro Yamada | 1377dd3 | 2017-10-31 00:33:45 +0900 | [diff] [blame] | 48 | *.symtypes |
Sami Tolvanen | 38e8918 | 2020-12-11 10:46:20 -0800 | [diff] [blame] | 49 | *.symversions |
Masahiro Yamada | 5988930 | 2018-03-23 22:04:30 +0900 | [diff] [blame] | 50 | *.tab.[ch] |
Masahiro Yamada | 1377dd3 | 2017-10-31 00:33:45 +0900 | [diff] [blame] | 51 | *.tar |
| 52 | *.xz |
Adam Borowski | 6f3deca | 2020-07-30 12:08:40 -0700 | [diff] [blame] | 53 | *.zst |
Masahiro Yamada | 1377dd3 | 2017-10-31 00:33:45 +0900 | [diff] [blame] | 54 | Module.symvers |
Masahiro Yamada | a564bde | 2019-08-19 13:18:07 +0900 | [diff] [blame] | 55 | modules.order |
Linus Torvalds | 1e65174 | 2005-10-18 08:26:15 -0700 | [diff] [blame] | 56 | |
| 57 | # |
| 58 | # Top-level generic files |
| 59 | # |
Linus Torvalds | 6db823c | 2010-03-12 16:30:23 -0800 | [diff] [blame] | 60 | /linux |
Masahiro Yamada | 69bc8d3 | 2021-03-26 03:54:09 +0900 | [diff] [blame] | 61 | /modules-only.symvers |
Linus Torvalds | 6db823c | 2010-03-12 16:30:23 -0800 | [diff] [blame] | 62 | /vmlinux |
Florian Fainelli | d0fe116 | 2015-04-24 10:27:40 -0700 | [diff] [blame] | 63 | /vmlinux.32 |
Rasmus Villemoes | 5cc1247 | 2021-03-05 10:27:07 +0100 | [diff] [blame] | 64 | /vmlinux.map |
Masahiro Yamada | 269a535 | 2020-06-01 14:57:11 +0900 | [diff] [blame] | 65 | /vmlinux.symvers |
Daniel Thompson | 2478a8a | 2015-02-17 13:47:38 -0800 | [diff] [blame] | 66 | /vmlinux-gdb.py |
Linus Torvalds | 6db823c | 2010-03-12 16:30:23 -0800 | [diff] [blame] | 67 | /vmlinuz |
| 68 | /System.map |
| 69 | /Module.markers |
Masahiro Yamada | 40cb020 | 2021-04-25 15:24:05 +0900 | [diff] [blame] | 70 | /modules.builtin |
Alexey Gladkov | 898490c | 2019-04-29 18:11:14 +0200 | [diff] [blame] | 71 | /modules.builtin.modinfo |
Masahiro Yamada | bbc55bd | 2019-10-29 21:38:07 +0900 | [diff] [blame] | 72 | /modules.nsdeps |
Linus Torvalds | 6db823c | 2010-03-12 16:30:23 -0800 | [diff] [blame] | 73 | |
| 74 | # |
Masahiro Yamada | af60e20 | 2017-09-30 10:10:10 +0900 | [diff] [blame] | 75 | # RPM spec file (make rpm-pkg) |
| 76 | # |
Masahiro Yamada | 81f59a2 | 2023-03-16 00:50:17 +0900 | [diff] [blame] | 77 | /rpmbuild/ |
Masahiro Yamada | af60e20 | 2017-09-30 10:10:10 +0900 | [diff] [blame] | 78 | |
| 79 | # |
Greg Dietsche | b756828 | 2011-06-30 18:42:50 -0500 | [diff] [blame] | 80 | # Debian directory (make deb-pkg) |
| 81 | # |
| 82 | /debian/ |
| 83 | |
| 84 | # |
Paolo Pisati | 5704d45 | 2017-11-27 12:07:34 +0100 | [diff] [blame] | 85 | # Snap directory (make snap-pkg) |
| 86 | # |
| 87 | /snap/ |
| 88 | |
| 89 | # |
Andrey Skvortsov | dd10ca6 | 2015-02-12 15:01:19 -0800 | [diff] [blame] | 90 | # tar directory (make tar*-pkg) |
| 91 | # |
| 92 | /tar-install/ |
| 93 | |
| 94 | # |
Masahiro Yamada | f46e65d | 2019-05-11 12:13:54 +0900 | [diff] [blame] | 95 | # We don't want to ignore the following even if they are dot-files |
Linus Torvalds | 6db823c | 2010-03-12 16:30:23 -0800 | [diff] [blame] | 96 | # |
Masahiro Yamada | f46e65d | 2019-05-11 12:13:54 +0900 | [diff] [blame] | 97 | !.clang-format |
| 98 | !.cocciconfig |
| 99 | !.get_maintainer.ignore |
| 100 | !.gitattributes |
Denis V. Lunev | 9e447a7 | 2007-10-16 11:22:21 +0400 | [diff] [blame] | 101 | !.gitignore |
Andy Shevchenko | cb8865f | 2023-01-27 16:57:08 +0200 | [diff] [blame] | 102 | !.kunitconfig |
Eduard - Gabriel Munteanu | f72e9df | 2008-06-26 10:54:34 +0300 | [diff] [blame] | 103 | !.mailmap |
Miguel Ojeda | 80db40ba | 2022-08-04 12:54:09 +0200 | [diff] [blame] | 104 | !.rustfmt.toml |
Linus Torvalds | 1e65174 | 2005-10-18 08:26:15 -0700 | [diff] [blame] | 105 | |
| 106 | # |
| 107 | # Generated include files |
| 108 | # |
Masahiro Yamada | 1e35663 | 2019-04-30 00:17:53 +0900 | [diff] [blame] | 109 | /include/config/ |
| 110 | /include/generated/ |
Masahiro Yamada | 1e35663 | 2019-04-30 00:17:53 +0900 | [diff] [blame] | 111 | /arch/*/include/generated/ |
Linus Torvalds | 1e65174 | 2005-10-18 08:26:15 -0700 | [diff] [blame] | 112 | |
Mauro Carvalho Chehab | 1d51960 | 2006-02-27 00:07:24 -0300 | [diff] [blame] | 113 | # stgit generated dirs |
| 114 | patches-* |
Qi Yong | 8ccf283 | 2006-07-17 13:37:06 +0800 | [diff] [blame] | 115 | |
| 116 | # quilt's files |
| 117 | patches |
| 118 | series |
Tobias Klauser | 132e2bc | 2006-12-22 01:07:32 -0800 | [diff] [blame] | 119 | |
Masahiro Yamada | 819cb9f | 2021-04-25 15:24:04 +0900 | [diff] [blame] | 120 | # ctags files |
| 121 | tags |
| 122 | TAGS |
| 123 | |
Tobias Klauser | 132e2bc | 2006-12-22 01:07:32 -0800 | [diff] [blame] | 124 | # cscope files |
| 125 | cscope.* |
Jike Song | 9723c04 | 2008-05-22 09:23:10 +0800 | [diff] [blame] | 126 | ncscope.* |
Alexey Dobriyan | 3f1b0e1 | 2007-07-15 23:41:52 -0700 | [diff] [blame] | 127 | |
Jani Nikula | f2ac5e7 | 2009-06-11 12:21:47 +0300 | [diff] [blame] | 128 | # gnu global files |
| 129 | GPATH |
| 130 | GRTAGS |
| 131 | GSYMS |
| 132 | GTAGS |
| 133 | |
Andi Kleen | a37161c | 2015-04-16 14:02:41 -0700 | [diff] [blame] | 134 | # id-utils files |
| 135 | ID |
| 136 | |
Alexey Dobriyan | 3f1b0e1 | 2007-07-15 23:41:52 -0700 | [diff] [blame] | 137 | *.orig |
Chris Dearman | 7088655 | 2008-03-04 14:28:59 -0800 | [diff] [blame] | 138 | *~ |
| 139 | \#*# |
David Howells | addbcdb | 2012-09-26 10:09:50 +0100 | [diff] [blame] | 140 | |
| 141 | # |
| 142 | # Leavings from module signing |
| 143 | # |
| 144 | extra_certificates |
David Woodhouse | fb11794 | 2015-07-20 21:16:30 +0100 | [diff] [blame] | 145 | signing_key.pem |
David Howells | addbcdb | 2012-09-26 10:09:50 +0100 | [diff] [blame] | 146 | signing_key.priv |
| 147 | signing_key.x509 |
David Howells | addbcdb | 2012-09-26 10:09:50 +0100 | [diff] [blame] | 148 | x509.genkey |
Borislav Petkov | 25fba9b | 2014-02-10 14:25:45 -0800 | [diff] [blame] | 149 | |
| 150 | # Kconfig presets |
Masahiro Yamada | 7fb1fc4 | 2019-05-07 21:48:46 +0900 | [diff] [blame] | 151 | /all.config |
| 152 | /alldef.config |
| 153 | /allmod.config |
| 154 | /allno.config |
| 155 | /allrandom.config |
| 156 | /allyes.config |
Boaz Harrosh | dfe0487 | 2014-11-25 18:42:54 +0200 | [diff] [blame] | 157 | |
Paul Menzel | ba77dca | 2020-07-02 13:12:00 +0200 | [diff] [blame] | 158 | # Kconfig savedefconfig output |
| 159 | /defconfig |
| 160 | |
Boaz Harrosh | dfe0487 | 2014-11-25 18:42:54 +0200 | [diff] [blame] | 161 | # Kdevelop4 |
| 162 | *.kdev4 |
Toru Komatsu | 26c4c71 | 2019-07-24 09:22:33 +0900 | [diff] [blame] | 163 | |
| 164 | # Clang's compilation database file |
| 165 | /compile_commands.json |
Mauro Carvalho Chehab | f6236ef | 2020-09-09 16:10:32 +0200 | [diff] [blame] | 166 | |
| 167 | # Documentation toolchain |
| 168 | sphinx_*/ |
Miguel Ojeda | 8c4555c | 2021-07-03 17:26:15 +0200 | [diff] [blame] | 169 | |
| 170 | # Rust analyzer configuration |
| 171 | /rust-project.json |