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*.bc 17*.bin 18*.bz2 19*.c.[012]*.* 20*.dt.yaml 21*.dtb 22*.dtbo 23*.dtb.S 24*.dtbo.S 25*.dwo 26*.dylib 27*.elf 28*.gcno 29*.gcda 30*.gz 31*.i 32*.ko 33*.lex.c 34*.ll 35*.lst 36*.lz4 37*.lzma 38*.lzo 39*.mod 40*.mod.c 41*.o 42*.o.* 43*.patch 44*.pyc 45*.rlib 46*.rmeta 47*.rpm 48*.rsi 49*.s 50*.so 51*.so.dbg 52*.su 53*.symtypes 54*.tab.[ch] 55*.tar 56*.xz 57*.zst 58Module.symvers 59dtbs-list 60builtin.order 61modules.order 62 63# 64# Top-level generic files 65# 66/linux 67/modules-only.symvers 68/vmlinux 69/vmlinux.32 70/vmlinux.map 71/vmlinux.symvers 72/vmlinux.thinlto-index 73/vmlinux.unstripped 74/vmlinux-gdb.py 75/vmlinuz 76/System.map 77/Module.markers 78/modules.builtin 79/modules.builtin.modinfo 80/modules.builtin.ranges 81/modules.nsdeps 82 83# 84# RPM spec file (make rpm-pkg) 85# 86/rpmbuild/ 87 88# 89# Debian directory (make deb-pkg) 90# 91/debian/ 92 93# 94# Snap directory (make snap-pkg) 95# 96/snap/ 97 98# 99# tar directory (make tar*-pkg) 100# 101/tar-install/ 102 103# 104# pacman files (make pacman-pkg) 105# 106/PKGBUILD 107/pacman/ 108 109# 110# We don't want to ignore the following even if they are dot-files 111# 112!.clang-format 113!.clippy.toml 114!.cocciconfig 115!.editorconfig 116!.get_maintainer.ignore 117!.gitattributes 118!.gitignore 119!.kunitconfig 120!.mailmap 121!.pylintrc 122!.rustfmt.toml 123 124# 125# Generated include files 126# 127/include/config/ 128/include/generated/ 129/arch/*/include/generated/ 130 131# stgit generated dirs 132patches-* 133 134# quilt's files 135patches 136series 137 138# ctags files 139tags 140!tags/ 141TAGS 142 143# cscope files 144cscope.* 145ncscope.* 146 147# gnu global files 148GPATH 149GRTAGS 150GSYMS 151GTAGS 152 153# id-utils files 154ID 155 156*~ 157\#*# 158 159# 160# Leavings from module signing 161# 162extra_certificates 163signing_key.pem 164signing_key.priv 165signing_key.x509 166x509.genkey 167 168# Kconfig presets 169/all.config 170/alldef.config 171/allmod.config 172/allno.config 173/allrandom.config 174/allyes.config 175 176# Kconfig savedefconfig output 177/defconfig 178 179# Kdevelop4 180*.kdev4 181 182# Clang's compilation database file 183compile_commands.json 184 185# Documentation toolchain 186sphinx_*/ 187 188# Rust analyzer configuration 189/rust-project.json 190 191# rustc error message long types 192*.long-type-*.txt 193 194# bc language scripts (not LLVM bitcode) 195!kernel/time/timeconst.bc 196