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