Skip to contentSkip to conversation

Add .cache.mk and *.dwo into clean target and .gitignore

PATCH Superseded Yixin Zhang 3 participants 3 messages May 18, 2018 – May 21, 2018

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#1 lore raw

PATCH 1/1 Add .cache.mk and *.dwo into clean target and .gitignore

In reply to Yixin Zhang

Hi Yixin,

Quoted 4 lines

These files are generated during build, so and them into clean target and .gitignore

Quoted 10 lines
---
 .gitignore             | 2 ++
 include/mk/env_post.mk | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
.gitignore +0 -0
index a7e65633f..b838efd59 100644

.gitignore core · line 12

Quoted 5 lines
.gitignore +2 -0
@@ -8,6 +8,8 @@ core
 .gdb_history
 .gdbinit
 lib*.a
+.cache.mk
+*.dwo

We're not using DWARF object files (yet), but it doesn't harm to be prepared.

Quoted 7 lines
.gitignore +0 -0
 /aclocal.m4
 autom4te.cache
include/mk/env_post.mk +0 -0
index 4c57fffe4..59ebebb03 100644

include/mk/env_post.mk MAKE_TARGETS ?= $(notdir $(patsubst %.c,%,$(wildcard $(abs_srcdir)/*.c))) · line 60

Quoted 8 lines
include/mk/env_post.mk +1 -1
@@ -54,7 +54,7 @@ MAKE_TARGETS			?= $(notdir $(patsubst %.c,%,$(wildcard $(abs_srcdir)/*.c)))
 
 MAKE_TARGETS			:= $(filter-out $(FILTER_OUT_MAKE_TARGETS),$(MAKE_TARGETS))
 
-CLEAN_TARGETS			+= $(MAKE_TARGETS) *.o *.pyc
+CLEAN_TARGETS			+= $(MAKE_TARGETS) *.o *.pyc .cache.mk .*.dwo
 
 # Majority of the files end up in testcases/bin...
 INSTALL_DIR			?= testcases/bin

Kind regards,
Petr

#0 lore raw

PATCH 1/1 Add .cache.mk and *.dwo into clean target and .gitignore

These files are generated during build, so and them into clean target and .gitignore

---
 .gitignore             | 2 ++
 include/mk/env_post.mk | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
.gitignore +2 -0
index a7e65633f..b838efd59 100644
@@ -8,6 +8,8 @@ core
 .gdb_history
 .gdbinit
 lib*.a
+.cache.mk
+*.dwo
 
 /aclocal.m4
 autom4te.cache
include/mk/env_post.mk +1 -1
index 4c57fffe4..59ebebb03 100644
@@ -54,7 +54,7 @@ MAKE_TARGETS			?= $(notdir $(patsubst %.c,%,$(wildcard $(abs_srcdir)/*.c)))
 
 MAKE_TARGETS			:= $(filter-out $(FILTER_OUT_MAKE_TARGETS),$(MAKE_TARGETS))
 
-CLEAN_TARGETS			+= $(MAKE_TARGETS) *.o *.pyc
+CLEAN_TARGETS			+= $(MAKE_TARGETS) *.o *.pyc .cache.mk .*.dwo
 
 # Majority of the files end up in testcases/bin...
 INSTALL_DIR			?= testcases/bin
Signature · 1 line
2.14.1
#2 lore raw

PATCH 1/1 Add .cache.mk and *.dwo into clean target and .gitignore

In reply to Petr Vorel

Hi Petr,

I find that when I build LTP on certain self-build kernel, there will be .dwo file and .cache.mk file created. That's why I create this patch.

Yixin

Quoted 45 lines · Petr Vorel

Hi Yixin,

Quoted 4 lines

These files are generated during build, so and them into clean target and .gitignore

Quoted 10 lines
---
 .gitignore             | 2 ++
 include/mk/env_post.mk | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
.gitignore +0 -0
index a7e65633f..b838efd59 100644

.gitignore core · line 12

Quoted 5 lines
.gitignore +2 -0
@@ -8,6 +8,8 @@ core
 .gdb_history
 .gdbinit
 lib*.a
+.cache.mk
+*.dwo

We're not using DWARF object files (yet), but it doesn't harm to be prepared.

Quoted 7 lines
.gitignore +0 -0
 /aclocal.m4
 autom4te.cache
include/mk/env_post.mk +0 -0
index 4c57fffe4..59ebebb03 100644

include/mk/env_post.mk MAKE_TARGETS ?= $(notdir $(patsubst %.c,%,$(wildcard $(abs_srcdir)/*.c))) · line 60

Quoted 8 lines
include/mk/env_post.mk +1 -1
@@ -54,7 +54,7 @@ MAKE_TARGETS			?= $(notdir $(patsubst %.c,%,$(wildcard $(abs_srcdir)/*.c)))
 
 MAKE_TARGETS			:= $(filter-out $(FILTER_OUT_MAKE_TARGETS),$(MAKE_TARGETS))
 
-CLEAN_TARGETS			+= $(MAKE_TARGETS) *.o *.pyc
+CLEAN_TARGETS			+= $(MAKE_TARGETS) *.o *.pyc .cache.mk .*.dwo
 
 # Majority of the files end up in testcases/bin...
 INSTALL_DIR			?= testcases/bin

Kind regards,
Petr