summaryrefslogtreecommitdiffstats
path: root/cmake/FindCheckPatch.cmake
diff options
context:
space:
mode:
authorSimon Rettberg2023-06-07 18:02:39 +0200
committerSimon Rettberg2023-06-07 18:12:34 +0200
commitf9605e29c45464126e3a3aef1dc6a345aa954bd6 (patch)
treec907e2d9ad1d834b0f4d6658371a60d1b3d23714 /cmake/FindCheckPatch.cmake
parent[KERNEL] Add Rocky 9 support (diff)
downloaddnbd3-f9605e29c45464126e3a3aef1dc6a345aa954bd6.tar.gz
dnbd3-f9605e29c45464126e3a3aef1dc6a345aa954bd6.tar.xz
dnbd3-f9605e29c45464126e3a3aef1dc6a345aa954bd6.zip
Cleanup FindKernel cmake macros, add more error checks
Diffstat (limited to 'cmake/FindCheckPatch.cmake')
-rw-r--r--cmake/FindCheckPatch.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindCheckPatch.cmake b/cmake/FindCheckPatch.cmake
index 3fa1ec8..8454e6b 100644
--- a/cmake/FindCheckPatch.cmake
+++ b/cmake/FindCheckPatch.cmake
@@ -5,7 +5,7 @@
# check if custom Linux kernel script directory was specified
if(NOT KERNEL_SCRIPTS_DIR)
- set(KERNEL_SCRIPTS_DIR "/lib/modules/${CMAKE_SYSTEM_VERSION}/build/scripts"
+ set(KERNEL_SCRIPTS_DIR "${KERNEL_BUILD_DIR}/scripts"
CACHE PATH "Path to Linux kernel scripts directory")
endif(NOT KERNEL_SCRIPTS_DIR)