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