Skip to content

Commit 59a84f5

Browse files
authored
Update the gitignore files to ignore more build artifacts (#23791)
Why I did it After doing a build, there is a long list of new untracked (but not ignored) files that are either downloaded/extracted source directories or generated files. This makes finding actual new files harder. Work item tracking Microsoft ADO (number only): How I did it Look at the untracked files list in two sonic-buildimage trees that I have where a build was done, and update the gitignore list based on that. Also create directory-specific gitignore lists where needed.
1 parent 1d69fbc commit 59a84f5

File tree

6 files changed

+70
-1
lines changed

6 files changed

+70
-1
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ rules/config.user
99

1010
# Build artifacts
1111
fsroot/
12+
fsroot-*/
1213
fs.*
1314
target/
1415
*.deb
@@ -22,6 +23,7 @@ target/
2223
*dbg.j2
2324
*.img
2425
*.pyc
26+
*.mod
2527

2628
# Slave docker log files
2729
sonic-slave*/*.log

src/ifupdown2/.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
ifupdown2-1.2.8-1/
1+
*
2+
!.gitignore
3+
!Makefile
4+
!patch

src/libteam/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*
22
!.gitignore
33
!Makefile
4+
!patch

src/openssh/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*
2+
!.gitignore
3+
!Makefile
4+
!patch

src/sonic-eventd/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore generated dependency files
2+
*.d

src/sonic-sysmgr/.gitignore

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# http://www.gnu.org/software/automake
2+
3+
Makefile.in
4+
/ar-lib
5+
/mdate-sh
6+
/py-compile
7+
/test-driver
8+
/ylwrap
9+
.deps/
10+
.dirstamp
11+
12+
# http://www.gnu.org/software/autoconf
13+
14+
autom4te.cache
15+
/autoscan.log
16+
/autoscan-*.log
17+
/aclocal.m4
18+
/compile
19+
/config.cache
20+
/config.guess
21+
/config.h.in
22+
/config.log
23+
/config.status
24+
/config.sub
25+
/configure
26+
/configure.scan
27+
/depcomp
28+
/install-sh
29+
/missing
30+
/stamp-h1
31+
/config
32+
33+
# https://www.gnu.org/software/libtool/
34+
35+
/ltmain.sh
36+
37+
# http://www.gnu.org/software/texinfo
38+
39+
/texinfo.tex
40+
41+
# http://www.gnu.org/software/m4/
42+
43+
m4/libtool.m4
44+
m4/ltoptions.m4
45+
m4/ltsugar.m4
46+
m4/ltversion.m4
47+
m4/lt~obsolete.m4
48+
49+
# Generated Makefile
50+
# (meta build system like autotools,
51+
# can automatically generate from config.status script
52+
# (which is called by configure script))
53+
Makefile
54+
55+
# Ignore generated files
56+
build/gen
57+
rebootbackend/reboot_dbus.h

0 commit comments

Comments
 (0)