1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-20 23:01:51 +00:00

Drivers: fix cpuid kernel module build on ARM

This commit is contained in:
The Tumultuous Unicorn Of Darkness 2024-08-29 13:08:46 +02:00
parent ddb834787c
commit 04edb80169
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A

View file

@ -28,6 +28,7 @@ else(LIBCPUID_DRIVER_ARM_LINUX_DKMS)
set(DRIVER_MODULE "${DRIVER_NAME}.ko") 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 "${CMAKE_MAKE_PROGRAM}" 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}" add_custom_command(OUTPUT "${DRIVER_MODULE}"
COMMAND ${KBUILD_CMD} modules COMMAND ${KBUILD_CMD} modules
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}" WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"