summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-04-10 15:38:27 +0200
committerSimon Rettberg2024-04-10 15:38:27 +0200
commitda025e7e6f07fa5058cc9a666bc002369b0316a8 (patch)
tree48f04673f8cdae3120cb78277c4eb3506efe7c80
parent[KERNEL] Fix build on CentOS 9.5-but-newer (diff)
downloadxloop-da025e7e6f07fa5058cc9a666bc002369b0316a8.tar.gz
xloop-da025e7e6f07fa5058cc9a666bc002369b0316a8.tar.xz
xloop-da025e7e6f07fa5058cc9a666bc002369b0316a8.zip
github: touch magic .prelink.mod files after cmake to fix latest CentOSHEADmaster
For some reason, without this hack we cannot build the modules anymore wth an unbuilt kernel. -435: WARNING: Symbol version dump "Module.symvers" is missing. Modules may not have dependencies or modversions. You may get many unresolved symbol warnings. /home/sr/dev/openslx/xloop/centos95b/src/kernel/xloop/xloop.prelink.mod: No such file or directory gmake[5]: *** [scripts/Makefile.modpost:134: /home/sr/dev/openslx/xloop/centos95b/src/kernel/xloop/Module.symvers] Error 1 gmake[4]: *** [Makefile:1841: modules] Error 2 make[3]: *** [src/kernel/CMakeFiles/xloop.dir/build.make:88: src/kernel/xloop/xloop.ko] Error 2 make[2]: *** [CMakeFiles/Makefile2:361: src/kernel/CMakeFiles/xloop.dir/all] Error 2 make[1]: *** [CMakeFiles/Makefile2:368: src/kernel/CMakeFiles/xloop.dir/rule] Error 2 make: *** [Makefile:221: xloop] Error 2 whereas with the previous -432: WARNING: Symbol version dump "Module.symvers" is missing. Modules may not have dependencies or modversions. You may get many unresolved symbol warnings. WARNING: modpost: "module_refcount" [/home/sr/dev/openslx/xloop/centos95/src/kernel/xloop/xloop.ko] undefined! WARNING: modpost: "kmalloc_caches" [/home/sr/dev/openslx/xloop/centos95/src/kernel/xloop/xloop.ko] undefined! WARNING: modpost: "blk_mq_requeue_request" [/home/sr/dev/openslx/xloop/centos95/src/kernel/xloop/xloop.ko] undefined! WARNING: modpost: "debugfs_create_dir" [/home/sr/dev/openslx/xloop/centos95/src/kernel/xloop/xloop.ko] undefined! WARNING: modpost: "param_ops_int" [/home/sr/dev/openslx/xloop/centos95/src/kernel/xloop/xloop.ko] undefined! WARNING: modpost: "strlen" [/home/sr/dev/openslx/xloop/centos95/src/kernel/xloop/xloop.ko] undefined! WARNING: modpost: "blk_queue_max_hw_sectors" [/home/sr/dev/openslx/xloop/centos95/src/kernel/xloop/xloop.ko] undefined! WARNING: modpost: "kmalloc_trace" [/home/sr/dev/openslx/xloop/centos95/src/kernel/xloop/xloop.ko] undefined! WARNING: modpost: "blk_mq_start_request" [/home/sr/dev/openslx/xloop/centos95/src/kernel/xloop/xloop.ko] undefined! WARNING: modpost: "__SCT__cond_resched" [/home/sr/dev/openslx/xloop/centos95/src/kernel/xloop/xloop.ko] undefined! WARNING: modpost: suppressed 95 unresolved symbol warnings because there were too many) [100%] Built target xloop
-rw-r--r--.github/workflows/build-kernel-modules.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.github/workflows/build-kernel-modules.yml b/.github/workflows/build-kernel-modules.yml
index 7d51ee2..f4f20ab 100644
--- a/.github/workflows/build-kernel-modules.yml
+++ b/.github/workflows/build-kernel-modules.yml
@@ -100,6 +100,9 @@ jobs:
-D KERNEL_BUILD_DIR=${{ github.workspace }}/../kernel \
-D KERNEL_INSTALL_DIR=${{ github.workspace }}/../kernel/extra \
-D KERNEL_SCRIPTS_DIR=${{ github.workspace }}/../kernel/scripts
+ touch ${{ github.workspace }}/build/src/kernel/xloop/xloop.prelink.mod
+ touch ${{ github.workspace }}/build/src/kernel/xloop_file_fmt_raw/xloop_file_fmt_raw.prelink.mod
+ touch ${{ github.workspace }}/build/src/kernel/xloop_file_fmt_qcow/xloop_file_fmt_qcow.prelink.mod
- name: Build xloop kernel modules
working-directory: ${{ github.workspace }}/build
run: make xloop xloop_file_fmt_qcow xloop_file_fmt_raw