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!.rustfmt.toml 118 119# 120# Generated include files 121# 122/include/config/ 123/include/generated/ 124/arch/*/include/generated/ 125 126# stgit generated dirs 127patches-* 128 129# quilt's files 130patches 131series 132 133# ctags files 134tags 135!tags/ 136TAGS 137 138# cscope files 139cscope.* 140ncscope.* 141 142# gnu global files 143GPATH 144GRTAGS 145GSYMS 146GTAGS 147 148# id-utils files 149ID 150 151*~ 152\#*# 153 154# 155# Leavings from module signing 156# 157extra_certificates 158signing_key.pem 159signing_key.priv 160signing_key.x509 161x509.genkey 162 163# Kconfig presets 164/all.config 165/alldef.config 166/allmod.config 167/allno.config 168/allrandom.config 169/allyes.config 170 171# Kconfig savedefconfig output 172/defconfig 173 174# Kdevelop4 175*.kdev4 176 177# Clang's compilation database file 178/compile_commands.json 179 180# Documentation toolchain 181sphinx_*/ 182 183# Rust analyzer configuration 184/rust-project.json 185