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