Commit ea531e3afd3be60be4d06d753e600e7084314903

Authored by Masahiro Yamada
Committed by Tom Rini
1 parent 56746d8010

.gitignore: ingore files generated by Kbuild

Ignore generated files by Kbuild such as .*.cmd, *.order, etc.

Besides above,
 - Ignore *.s files
   We do not need to ignore with file name, asm-offsets.s
 - Do not ignore *.rej (for quilt)
 - Ignore backup files, \#*#

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>

Showing 1 changed file with 20 additions and 9 deletions Side-by-side Diff

... ... @@ -5,16 +5,20 @@
5 5 #
6 6 # Normal rules
7 7 #
8   -
9   -*.rej
10   -*.orig
11   -*.a
  8 +.*
12 9 *.o
  10 +*.o.*
  11 +*.a
  12 +*.s
13 13 *.su
14   -*~
  14 +*.mod.c
  15 +*.i
  16 +*.lst
  17 +*.order
  18 +*.elf
15 19 *.swp
16   -*.patch
17 20 *.bin
  21 +*.patch
18 22 *.cfgtmp
19 23 *.dts.tmp
20 24  
21 25  
... ... @@ -24,12 +28,10 @@
24 28 #
25 29 # Top-level generic files
26 30 #
27   -
28 31 /MLO*
29 32 /SPL
30 33 /System.map
31 34 /u-boot
32   -/u-boot.elf
33 35 /u-boot.hex
34 36 /u-boot.imx
35 37 /u-boot-with-spl.imx
... ... @@ -50,6 +52,12 @@
50 52 /u-boot.sb
51 53  
52 54 #
  55 +# git files that we don't want to ignore even it they are dot-files
  56 +#
  57 +!.gitignore
  58 +!.mailmap
  59 +
  60 +#
53 61 # Generated files
54 62 #
55 63  
... ... @@ -65,7 +73,6 @@
65 73 /include/generated/
66 74 /include/spl-autoconf.mk
67 75 /include/tpl-autoconf.mk
68   -asm-offsets.s
69 76  
70 77 # stgit generated dirs
71 78 patches-*
... ... @@ -91,4 +98,8 @@
91 98 GRTAGS
92 99 GSYMS
93 100 GTAGS
  101 +
  102 +*.orig
  103 +*~
  104 +\#*#