From 142a0fcdacc5d4604675db6b14aa5822abce32fe Mon Sep 17 00:00:00 2001 From: Mickey Malone Date: Sun, 14 Feb 2021 10:27:21 -0600 Subject: [PATCH] fix build issue --- driver/CMakeLists.txt | 3 +-- driver/Kbuild | 2 +- driver/pico_rng.c | 3 --- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/driver/CMakeLists.txt b/driver/CMakeLists.txt index ae638a2..6b64c07 100644 --- a/driver/CMakeLists.txt +++ b/driver/CMakeLists.txt @@ -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} diff --git a/driver/Kbuild b/driver/Kbuild index 47e9a50..50693af 100644 --- a/driver/Kbuild +++ b/driver/Kbuild @@ -1 +1 @@ -obj-m := pico_rng.o +obj-m := pico_rng.o \ No newline at end of file diff --git a/driver/pico_rng.c b/driver/pico_rng.c index da3b492..e2e16d7 100644 --- a/driver/pico_rng.c +++ b/driver/pico_rng.c @@ -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 #include #include