Skip to contentSkip to conversation

add compiled_module_files into gitignore

PATCH New [email protected] 2 participants 6 messages Dec 22, 2020 – Dec 31, 2020

lore
Share & tools
lore
#0 lore raw

cover add compiled_module_files into gitignore

From: Cixi Geng <[email protected]>

*** BLURB HERE ***
Use Out-of-build-tree build ltp, When compile kernel module under these directories, some module-build-file wil generated. add these files into .gitinore

Cixi Geng (4):
delete_module: add gitignore file
init_module: add gitignore file
insmod:add gitignore files
lsmod: add gitignore files

 testcases/commands/insmod/.gitignore               |  9 +++++++++
 testcases/commands/lsmod/.gitignore                |  9 +++++++++
 testcases/kernel/syscalls/delete_module/.gitignore | 11 +++++++++--
 testcases/kernel/syscalls/init_module/.gitignore   |  8 ++++++++
 4 files changed, 35 insertions(+), 2 deletions(-)
 create mode 100644 testcases/commands/insmod/.gitignore
 create mode 100644 testcases/commands/lsmod/.gitignore
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/4 delete_module: add gitignore file

From: Cixi Geng <[email protected]>

When build ltp, there have generate some module files in delete_module, add these files into .gitignore
Untracked files:
(Use "git add <file>..." to include the content to be submitted)
testcases/kernel/syscalls/delete_module/.built-in.a.cmd testcases/kernel/syscalls/delete_module/.dummy_del_mod.ko.cmd testcases/kernel/syscalls/delete_module/.dummy_del_mod.mod.cmd testcases/kernel/syscalls/delete_module/.dummy_del_mod.mod.o.cmd testcases/kernel/syscalls/delete_module/.dummy_del_mod.o.cmd testcases/kernel/syscalls/delete_module/.dummy_del_mod_dep.ko.cmd testcases/kernel/syscalls/delete_module/.dummy_del_mod_dep.mod.cmd testcases/kernel/syscalls/delete_module/.dummy_del_mod_dep.mod.o.cmd testcases/kernel/syscalls/delete_module/.dummy_del_mod_dep.o.cmd testcases/kernel/syscalls/delete_module/Module.symvers testcases/kernel/syscalls/delete_module/dummy_del_mod.mod.c testcases/kernel/syscalls/delete_module/dummy_del_mod_dep.mod.c testcases/kernel/syscalls/delete_module/modules.order

---
 testcases/kernel/syscalls/delete_module/.gitignore | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)
testcases/kernel/syscalls/delete_module/.gitignore +9 -2
index 8ffd4256e..1a774a6d5 100644
@@ -1,5 +1,12 @@
 /delete_module01
 /delete_module02
 /delete_module03
-/dummy_del_mod.ko
-/dummy_del_mod_dep.ko
+/*.ko
+/*.mod.c
+/*.ko.cmd
+/*.mod.cmd
+/*.mod.o.cmd
+/*.o.cmd
+/.built-in.a.cmd
+/Module.symvers
+/modules.order
Signature · 1 line
2.25.1
#2 lore raw

PATCH 2/4 init_module: add gitignore file

In reply to [email protected]

From: Cixi Geng <[email protected]>

When build ltp, there have generate some module files in init_module, add these files into .gitignore
Untracked files:
(Use "git add <file>..." to include the content to be submitted)
testcases/kernel/syscalls/init_module/.built-in.a.cmd testcases/kernel/syscalls/init_module/.init_module.ko.cmd testcases/kernel/syscalls/init_module/.init_module.mod.cmd testcases/kernel/syscalls/init_module/.init_module.mod.o.cmd testcases/kernel/syscalls/init_module/.init_module.o.cmd testcases/kernel/syscalls/init_module/Module.symvers testcases/kernel/syscalls/init_module/init_module.mod.c testcases/kernel/syscalls/init_module/modules.order

---
 testcases/kernel/syscalls/init_module/.gitignore | 8 ++++++++
 1 file changed, 8 insertions(+)
testcases/kernel/syscalls/init_module/.gitignore +8 -0
index b4d11e958..23baeb651 100644
@@ -1,3 +1,11 @@
 /init_module01
 /init_module02
 /*.ko
+/*.mod.c
+/*.ko.cmd
+/*.mod.cmd
+/*.mod.o.cmd
+/*.o.cmd
+/.built-in.a.cmd
+/Module.symvers
+/modules.order
Signature · 1 line
2.25.1
#3 lore raw

PATCH 3/4 insmod:add gitignore files

In reply to [email protected]

From: Cixi Geng <[email protected]>

add compile module generate files into .gitignore

file:
testcases/commands/insmod/.built-in.a.cmd testcases/commands/insmod/.ltp_insmod01.ko.cmd testcases/commands/insmod/.ltp_insmod01.mod.cmd testcases/commands/insmod/.ltp_insmod01.mod.o.cmd testcases/commands/insmod/.ltp_insmod01.o.cmd testcases/commands/insmod/Module.symvers testcases/commands/insmod/ltp_insmod01.mod.c testcases/commands/insmod/modules.order

---
 testcases/commands/insmod/.gitignore | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 testcases/commands/insmod/.gitignore
testcases/commands/insmod/.gitignore new file +9 -0
new file mode 100644
index 000000000..0e19fb3fd
@@ -0,0 +1,9 @@
+*.ko
+*.mod.c
+*.ko.cmd
+*.mod.cmd
+*.mod.o.cmd
+*.o.cmd
+.built-in.a.cmd
+Module.symvers
+modules.order
Signature · 1 line
2.25.1
#4 lore raw

PATCH 4/4 lsmod: add gitignore files

In reply to [email protected]

From: Cixi Geng <[email protected]>

add compile module generate files into .gitignore

file:
testcases/commands/lsmod/.built-in.a.cmd testcases/commands/lsmod/.ltp_lsmod01.ko.cmd testcases/commands/lsmod/.ltp_lsmod01.mod.cmd testcases/commands/lsmod/.ltp_lsmod01.mod.o.cmd testcases/commands/lsmod/.ltp_lsmod01.o.cmd testcases/commands/lsmod/Module.symvers testcases/commands/lsmod/ltp_lsmod01.mod.c testcases/commands/lsmod/modules.order

---
 testcases/commands/lsmod/.gitignore | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 testcases/commands/lsmod/.gitignore
testcases/commands/lsmod/.gitignore new file +9 -0
new file mode 100644
index 000000000..0e19fb3fd
@@ -0,0 +1,9 @@
+*.ko
+*.mod.c
+*.ko.cmd
+*.mod.cmd
+*.mod.o.cmd
+*.o.cmd
+.built-in.a.cmd
+Module.symvers
+modules.order
Signature · 1 line
2.25.1
#5 lore raw

cover add compiled_module_files into gitignore

In reply to [email protected]
Quoted 4 lines · On Tue, Dec 22, 2020 at 1:49 PM <[email protected]> wrote:

Use Out-of-build-tree build ltp, When compile kernel module under these directories, some module-build-file wil generated. add these files into .gitinore

Thank you Cixi, patchset merged.

Signature · 5 lines
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20201231/6d61846c/attachment.htm>