mirror of
https://github.com/polhenarejos/pico-rng.git
synced 2026-04-09 17:25:51 +02:00
fix build issue
This commit is contained in:
@@ -33,12 +33,11 @@ endif (KERNELHEADERS_DIR)
|
||||
|
||||
mark_as_advanced(KERNELHEADERS_FOUND)
|
||||
|
||||
#find_package(KernelHeaders REQUIRED)
|
||||
include_directories(${KERNELHEADERS_INCLUDE_DIRS})
|
||||
|
||||
set(DRIVER_FILE pico_rng.ko)
|
||||
set(KBUILD_CMD $(MAKE) -C ${KERNELHEADERS_DIR} modules M=${CMAKE_CURRENT_BINARY_DIR} src=${CMAKE_CURRENT_SOURCE_DIR})
|
||||
#FILE(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/Kbuild "obj-m := pico_rng.o")
|
||||
FILE(WRITE ${CMAKE_CURRENT_SOURCE_DIR}/Kbuild "obj-m := pico_rng.o")
|
||||
|
||||
add_custom_command(OUTPUT ${DRIVER_FILE}
|
||||
COMMAND ${KBUILD_CMD}
|
||||
|
||||
@@ -1 +1 @@
|
||||
obj-m := pico_rng.o
|
||||
obj-m := pico_rng.o
|
||||
@@ -1,6 +1,3 @@
|
||||
//TODO Split this file into multiple, there are a few things going on here that need organizaion: usb device, character device, and rng thread.
|
||||
// Move past prototype and put some polish on it.
|
||||
|
||||
#include <linux/module.h>
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/init.h>
|
||||
|
||||
Reference in New Issue
Block a user