Skip to content

Commit addbcdb

Browse files
dhowellsrustyrussell
authored andcommitted
MODSIGN: Provide gitignore and make clean rules for extra files
Provide gitignore and make clean rules for extra files to hide and clean up the extra files produced by module signing stuff once it is added. Also add a clean up rule for the module content extractor program used to extract the data to be signed. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 1d0059f commit addbcdb

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎.gitignore‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
*.o.*
1515
*.a
1616
*.s
17+
*.ko.unsigned
18+
*.ko.stripped
19+
*.ko.stripped.dig
20+
*.ko.stripped.sig
1721
*.ko
1822
*.so
1923
*.so.dbg
@@ -84,3 +88,13 @@ GTAGS
8488
*.orig
8589
*~
8690
\#*#
91+
92+
#
93+
# Leavings from module signing
94+
#
95+
extra_certificates
96+
signing_key.priv
97+
signing_key.x509
98+
signing_key.x509.keyid
99+
signing_key.x509.signer
100+
x509.genkey

‎Makefile‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,6 +1239,7 @@ clean: $(clean-dirs)
12391239
$(call cmd,rmfiles)
12401240
@find $(if $(KBUILD_EXTMOD), $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \
12411241
\( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
1242+
-o -name '*.ko.*' \
12421243
-o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
12431244
-o -name '*.symtypes' -o -name 'modules.order' \
12441245
-o -name modules.builtin -o -name '.tmp_*.o.*' \

0 commit comments

Comments
 (0)