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