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