blob: 24572065627e7b5b42bce33a1846d6a2b973276c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#
# Copyright 2017-2018 Ettus Research, a National Instruments Company
#
# SPDX-License-Identifier: GPL-3.0-or-later
#
install(PROGRAMS
mpm_shell.py
mpm_debug.py
DESTINATION ${RUNTIME_DIR}
)
set(eeprom_tool_sources)
set(eeprom_tool_libs)
if(ENABLE_LIBMPM AND NOT ENABLE_E300)
message(STATUS "Adding MPM EEPROM tools...")
set(eeprom_tool_libs eeprom.c)
list(APPEND eeprom_tool_sources
eeprom-blank.c
eeprom-dump.c
eeprom-id.c
eeprom-init.c
eeprom-set-flags.c
)
endif(ENABLE_LIBMPM AND NOT ENABLE_E300)
if(ENABLE_MYKONOS)
message(STATUS "Adding N3XX-specific EEPROM tools...")
set(eeprom_tool_libs eeprom.c)
list(APPEND eeprom_tool_sources
db-dump.c
db-id.c
db-init.c
fan-limits.c
)
endif(ENABLE_MYKONOS)
#for each source: build an executable and install
foreach(eeprom_tool_source ${eeprom_tool_sources})
get_filename_component(eeprom_tool ${eeprom_tool_source} NAME_WE)
add_executable(${eeprom_tool} ${eeprom_tool_source} ${eeprom_tool_libs})
install(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/${eeprom_tool} DESTINATION ${RUNTIME_DIR})
endforeach(eeprom_tool_source ${eeprom_tool_sources})
|