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