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