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