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