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*.header-check 32*.i 33*.ko 34*.lex.c 35*.ll 36*.lst 37*.lz4 38*.lzma 39*.lzo 40*.mod 41*.mod.c 42*.o 43*.o.* 44*.patch 45*.pyc 46*.rlib 47*.rmeta 48*.rpm 49*.rsi 50*.s 51*.so 52*.so.dbg 53*.spdx.json 54*.su 55*.symtypes 56*.tab.[ch] 57*.tar 58*.xz 59*.zst 60Module.symvers 61dtbs-list 62builtin.order 63modules.order 64 65# 66# Top-level generic files 67# 68/linux 69/modules-only.symvers 70/vmlinux 71/vmlinux.32 72/vmlinux.map 73/vmlinux.symvers 74/vmlinux.thinlto-index 75/vmlinux.unstripped 76/vmlinux-gdb.py 77/vmlinuz 78/System.map 79/modules.builtin 80/modules.builtin.modinfo 81/modules.builtin.ranges 82/modules.nsdeps 83 84# 85# RPM spec file (make rpm-pkg) 86# 87/rpmbuild/ 88 89# 90# Debian directory (make deb-pkg) 91# 92/debian/ 93 94# 95# Snap directory (make snap-pkg) 96# 97/snap/ 98 99# 100# tar directory (make tar*-pkg) 101# 102/tar-install/ 103 104# 105# pacman files (make pacman-pkg) 106# 107/*.pkg.*.sig 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