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:
parent
ddb834787c
commit
04edb80169
1 changed files with 1 additions and 0 deletions
|
@ -28,6 +28,7 @@ else(LIBCPUID_DRIVER_ARM_LINUX_DKMS)
|
|||
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}")
|
||||
|
||||
configure_file(Makefile.in "${CMAKE_CURRENT_SOURCE_DIR}/Makefile")
|
||||
add_custom_command(OUTPUT "${DRIVER_MODULE}"
|
||||
COMMAND ${KBUILD_CMD} modules
|
||||
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}"
|
||||
|
|
Loading…
Reference in a new issue