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:
T.J. Vivek Vilvaraj
2020-06-29 09:56:55 +00:00
committed by sys_ocldev
parent e027a2653d
commit 96a7b1e066
5 changed files with 65 additions and 0 deletions

View 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()