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