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