Skip to content

Commit 1e65174

Browse files
author
Linus Torvalds
committed
Add some basic .gitignore files
This still leaves driver and architecture-specific subdirectories alone, but gets rid of the bulk of the "generic" generated files that we should ignore. Signed-off-by: Linus Torvalds <[email protected]>
1 parent 39ca371 commit 1e65174

File tree

10 files changed

+84
-0
lines changed

10 files changed

+84
-0
lines changed

.gitignore

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#
2+
# NOTE! Don't add files that are generated in specific
3+
# subdirectories here. Add them in the ".gitignore" file
4+
# in that subdirectory instead.
5+
#
6+
# Normal rules
7+
#
8+
.*
9+
*.o
10+
*.a
11+
*.s
12+
*.ko
13+
*.mod.c
14+
15+
#
16+
# Top-level generic files
17+
#
18+
vmlinux*
19+
System.map
20+
Module.symvers
21+
22+
#
23+
# Generated include files
24+
#
25+
include/asm
26+
include/config
27+
include/linux/autoconf.h
28+
include/linux/compile.h
29+
include/linux/version.h
30+

drivers/char/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
consolemap_deftbl.c
2+
defkeymap.c
3+

drivers/pci/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
classlist.h
2+
devlist.h
3+
gen-devlist
4+

drivers/video/logo/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Generated files
3+
#
4+
*_mono.c
5+
*_vga16.c
6+
*_clut224.c
7+
*_gray256.c

lib/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#
2+
# Generated files
3+
#
4+
gen_crc32table
5+
crc32table.h
6+

scripts/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
conmakehash
2+
kallsyms
3+
pnmtologo
4+

scripts/basic/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fixdep
2+
split-include
3+
docproc

scripts/kconfig/.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#
2+
# Generated files
3+
#
4+
config*
5+
lex.*.c
6+
*.tab.c
7+
*.tab.h
8+
9+
#
10+
# configuration programs
11+
#
12+
conf
13+
mconf
14+
qconf
15+
gconf
16+
kxgettext

scripts/mod/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
elfconfig.h
2+
mk_elfconfig
3+
modpost
4+

usr/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Generated files
3+
#
4+
gen_init_cpio
5+
initramfs_data.cpio
6+
initramfs_data.cpio.gz
7+
initramfs_list

0 commit comments

Comments
 (0)