Skip to contentSkip to conversation

module.mk: Remove .mod files as well during make clean

PATCH New Viresh Kumar 2 participants 2 messages Dec 16, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 module.mk: Remove .mod files as well during make clean

The .mod files are left as is after a make clean, get rid of them as well.

---
 include/mk/module.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/mk/module.mk +1 -1
index 07d8fa89efa6..1b71a28b92a1 100644
@@ -45,7 +45,7 @@ MAKE_TARGETS := $(filter-out %.ko, $(MAKE_TARGETS))
 MAKE_TARGETS += $(wildcard *.ko)
 endif
 
-CLEAN_TARGETS += .dep_modules
+CLEAN_TARGETS += .dep_modules *.mod
 
 MODULE_SOURCES := $(patsubst %.ko,%.c,$(filter %.ko, $(MAKE_TARGETS)))
 
Signature · 1 line
2.25.0.rc1.19.g042ed3e048af
#1 lore raw

PATCH 1/1 module.mk: Remove .mod files as well during make clean

Hi!
Pushed, thanks.

Also for me the module build generates build-in.a as well. I guess that we should add that one to .gitignore and clean it up on make clean as well.

Signature · 2 lines
Cyril Hrubis
[email protected]