diff options
Diffstat (limited to 'mpm/systemd/CMakeLists.txt')
-rw-r--r-- | mpm/systemd/CMakeLists.txt | 28 |
1 files changed, 24 insertions, 4 deletions
diff --git a/mpm/systemd/CMakeLists.txt b/mpm/systemd/CMakeLists.txt index da811c30f..b8f6e5901 100644 --- a/mpm/systemd/CMakeLists.txt +++ b/mpm/systemd/CMakeLists.txt @@ -13,17 +13,37 @@ message(STATUS "Systemd system unit directory ${SYSTEMD_SYSTEM_UNITDIR}") PKG_GET_VARIABLE(SYSTEMD_SYSCTLDIR systemd sysctldir) message(STATUS "Systemd sysctl directory ${SYSTEMD_SYSCTLDIR}") +PKG_GET_VARIABLE(UDEV_UDEVDIR udev udevdir) +message(STATUS "Udev directory ${UDEV_UDEVDIR}") + configure_file( - ${CMAKE_CURRENT_SOURCE_DIR}/usrp-hwd.service.in - ${CMAKE_CURRENT_BINARY_DIR}/usrp-hwd.service + ${CMAKE_CURRENT_SOURCE_DIR}/system/usrp-hwd.service.in + ${CMAKE_CURRENT_BINARY_DIR}/system/usrp-hwd.service ) +# service files install(FILES - ${CMAKE_CURRENT_BINARY_DIR}/usrp-hwd.service + ${CMAKE_CURRENT_BINARY_DIR}/system/usrp-hwd.service DESTINATION ${SYSTEMD_SYSTEM_UNITDIR} ) +# network configuration files +install(FILES + ${CMAKE_CURRENT_SOURCE_DIR}/network/eth0.network + ${CMAKE_CURRENT_SOURCE_DIR}/network/int0.network + ${CMAKE_CURRENT_SOURCE_DIR}/network/sfp0.network + ${CMAKE_CURRENT_SOURCE_DIR}/network/sfp1.network + DESTINATION ${SYSTEMD_SYSTEM_UNITDIR}/../network +) + +# sysctl configuration files install(FILES - ${CMAKE_CURRENT_SOURCE_DIR}/usrp-hwd.conf + ${CMAKE_CURRENT_SOURCE_DIR}/sysctl/usrp-hwd.conf DESTINATION ${SYSTEMD_SYSCTLDIR} ) + +# udev rules +install(FILES + ${CMAKE_CURRENT_SOURCE_DIR}/udev/70-sfp-net.rules + DESTINATION ${UDEV_UDEVDIR}/rules.d +) |