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*.symversions 51*.tab.[ch] 52*.tar 53*.xz 54*.zst 55Module.symvers 56dtbs-list 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/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!.cocciconfig 107!.editorconfig 108!.get_maintainer.ignore 109!.gitattributes 110!.gitignore 111!.kunitconfig 112!.mailmap 113!.rustfmt.toml 114 115# 116# Generated include files 117# 118/include/config/ 119/include/generated/ 120/arch/*/include/generated/ 121 122# stgit generated dirs 123patches-* 124 125# quilt's files 126patches 127series 128 129# ctags files 130tags 131TAGS 132 133# cscope files 134cscope.* 135ncscope.* 136 137# gnu global files 138GPATH 139GRTAGS 140GSYMS 141GTAGS 142 143# id-utils files 144ID 145 146*.orig 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