From eaa37ce5b6e4761d922bc3f04c3492bb32f4df4e Mon Sep 17 00:00:00 2001 From: The Tumultuous Unicorn Of Darkness Date: Mon, 7 Oct 2024 11:07:45 +0200 Subject: [PATCH] [CMake] force 'make' usage to build kernel module It fails when CMake uses Ninja --- drivers/arm/linux/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/arm/linux/CMakeLists.txt b/drivers/arm/linux/CMakeLists.txt index 72c7357..d98e1dc 100644 --- a/drivers/arm/linux/CMakeLists.txt +++ b/drivers/arm/linux/CMakeLists.txt @@ -26,7 +26,7 @@ else(LIBCPUID_DRIVER_ARM_LINUX_DKMS) set(DRIVER_SOURCE "${DRIVER_NAME}.c") set(DRIVER_OBJECT "${DRIVER_NAME}.o") set(DRIVER_MODULE "${DRIVER_NAME}.ko") - set(KBUILD_CMD "${CMAKE_MAKE_PROGRAM}" EXTRA_CFLAGS="-I${CMAKE_SOURCE_DIR}/libcpuid" -C "${KERNELHEADERS_DIR}" "src=${CMAKE_CURRENT_SOURCE_DIR}" "M=${CMAKE_CURRENT_BINARY_DIR}") + set(KBUILD_CMD "make" EXTRA_CFLAGS="-I${CMAKE_SOURCE_DIR}/libcpuid" -C "${KERNELHEADERS_DIR}" "src=${CMAKE_CURRENT_SOURCE_DIR}" "M=${CMAKE_CURRENT_BINARY_DIR}") configure_file(Makefile.in "${CMAKE_CURRENT_SOURCE_DIR}/Makefile") add_custom_command(OUTPUT "${DRIVER_MODULE}"