mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 02:18:05 +08:00
add rules to install RAS udev rules
- create rules to install Udev rules in configurable location - create files relating to RAS counters Change-Id: Iebd57ba2dd09494ea4586b305cd56c86a71fb8b0
This commit is contained in:
committed by
sys_ocldev
parent
e027a2653d
commit
96a7b1e066
15
level_zero/cmake/UdevRulesDir.cmake
Normal file
15
level_zero/cmake/UdevRulesDir.cmake
Normal file
@@ -0,0 +1,15 @@
|
||||
#
|
||||
# Copyright (C) 2020 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
|
||||
set(UDEV_RULES_DIR_FOUND FALSE)
|
||||
|
||||
foreach(rules_dir IN ITEMS "/lib/udev/rules.d" "/usr/lib/udev/rules.d")
|
||||
if(IS_DIRECTORY ${rules_dir})
|
||||
set(UDEV_RULES_DIR ${rules_dir} CACHE PATH "Install path for udev rules")
|
||||
set(UDEV_RULES_DIR_FOUND TRUE)
|
||||
break()
|
||||
endif()
|
||||
endforeach()
|
||||
Reference in New Issue
Block a user