From f92df1d82244894ee6137e41572a73684bc8fdfb Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 9 Jun 2023 10:58:47 +0200 Subject: cmake: Make missing Module.symvers a warning Since on github, we just compile against downloaded sources without having a matching built kernel, a missing Module.symvers breaks the action. While the resulting built kernel module might not be of much use, all we want to know is whether it compiles. --- cmake/FindKernelHeaders.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmake') diff --git a/cmake/FindKernelHeaders.cmake b/cmake/FindKernelHeaders.cmake index 7c1f8ed..c04243e 100644 --- a/cmake/FindKernelHeaders.cmake +++ b/cmake/FindKernelHeaders.cmake @@ -16,7 +16,9 @@ if(NOT KERNEL_INSTALL_DIR) endif(NOT KERNEL_INSTALL_DIR) if(NOT EXISTS "${KERNEL_BUILD_DIR}/Module.symvers") - message(FATAL_ERROR "Module.symvers not found in ${KERNEL_BUILD_DIR}") + message(WARNING "\n\nModule.symvers not found in ${KERNEL_BUILD_DIR}\n" + "Your kernel sources don't seem to belong to a built kernel," + " expect missing symbols when building kernel module.\n\n") endif() # find the Linux kernel headers from given KERNEL_BUILD_DIR -- cgit v1.2.3-55-g7522