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