浏览代码

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 <torvalds@osdl.org>
Linus Torvalds 19 年之前
父节点
当前提交
1e65174a33

+ 30 - 0
.gitignore

@@ -0,0 +1,30 @@
+#
+# NOTE! Don't add files that are generated in specific
+# subdirectories here. Add them in the ".gitignore" file
+# in that subdirectory instead.
+#
+# Normal rules
+#
+.*
+*.o
+*.a
+*.s
+*.ko
+*.mod.c
+
+#
+# Top-level generic files
+#
+vmlinux*
+System.map
+Module.symvers
+
+#
+# Generated include files
+#
+include/asm
+include/config
+include/linux/autoconf.h
+include/linux/compile.h
+include/linux/version.h
+

+ 3 - 0
drivers/char/.gitignore

@@ -0,0 +1,3 @@
+consolemap_deftbl.c
+defkeymap.c
+

+ 4 - 0
drivers/pci/.gitignore

@@ -0,0 +1,4 @@
+classlist.h
+devlist.h
+gen-devlist
+

+ 7 - 0
drivers/video/logo/.gitignore

@@ -0,0 +1,7 @@
+#
+# Generated files
+#
+*_mono.c
+*_vga16.c
+*_clut224.c
+*_gray256.c

+ 6 - 0
lib/.gitignore

@@ -0,0 +1,6 @@
+#
+# Generated files
+#
+gen_crc32table
+crc32table.h
+

+ 4 - 0
scripts/.gitignore

@@ -0,0 +1,4 @@
+conmakehash
+kallsyms
+pnmtologo
+

+ 3 - 0
scripts/basic/.gitignore

@@ -0,0 +1,3 @@
+fixdep
+split-include
+docproc

+ 16 - 0
scripts/kconfig/.gitignore

@@ -0,0 +1,16 @@
+#
+# Generated files
+#
+config*
+lex.*.c
+*.tab.c
+*.tab.h
+
+#
+# configuration programs
+#
+conf
+mconf
+qconf
+gconf
+kxgettext

+ 4 - 0
scripts/mod/.gitignore

@@ -0,0 +1,4 @@
+elfconfig.h
+mk_elfconfig
+modpost
+

+ 7 - 0
usr/.gitignore

@@ -0,0 +1,7 @@
+#
+# Generated files
+#
+gen_init_cpio
+initramfs_data.cpio
+initramfs_data.cpio.gz
+initramfs_list