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