diff options
author | Simon Lin <simonlin@google.com> | 2021-05-20 12:11:04 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 21:11:04 -0700 |
commit | 9aaeefba2d9ee2d19fe514400038eb54f22c7c51 (patch) | |
tree | ee6bbe77a59e8823ef544b51829e415524c877c0 /tools | |
parent | 123337b9f80746de0e014f9ffd665e50769f8dd8 (diff) | |
download | ot-br-posix-9aaeefba2d9ee2d19fe514400038eb54f22c7c51.tar.gz |
[certification] install reference device scripts (#853)
This commit installs reference device scripts to /home/pi/reference-device.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/CMakeLists.txt | 2 | ||||
-rw-r--r-- | tools/reference_device/CMakeLists.txt (renamed from tools/testharness_discovery/CMakeLists.txt) | 7 | ||||
-rwxr-xr-x | tools/reference_device/testharness-discovery (renamed from tools/testharness_discovery/testharness-discovery) | 0 | ||||
-rwxr-xr-x | tools/reference_device/testharness-discovery.init.in (renamed from tools/testharness_discovery/testharness-discovery.init.in) | 0 | ||||
-rw-r--r-- | tools/reference_device/testharness-discovery.service.in (renamed from tools/testharness_discovery/testharness-discovery.service.in) | 0 |
5 files changed, 8 insertions, 1 deletions
diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 86c6797c..5e8451af 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -47,5 +47,5 @@ target_link_libraries(steering-data PRIVATE ) if ($ENV{REFERENCE_DEVICE}) - add_subdirectory(testharness_discovery) + add_subdirectory(reference_device) endif() diff --git a/tools/testharness_discovery/CMakeLists.txt b/tools/reference_device/CMakeLists.txt index c4aef56f..25513c35 100644 --- a/tools/testharness_discovery/CMakeLists.txt +++ b/tools/reference_device/CMakeLists.txt @@ -26,6 +26,13 @@ # POSSIBILITY OF SUCH DAMAGE. # + +install( + DIRECTORY ${CMAKE_SOURCE_DIR}/script/reference-device + FILE_PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE + DESTINATION /home/pi +) + install( PROGRAMS testharness-discovery DESTINATION sbin diff --git a/tools/testharness_discovery/testharness-discovery b/tools/reference_device/testharness-discovery index 4fdf9a6a..4fdf9a6a 100755 --- a/tools/testharness_discovery/testharness-discovery +++ b/tools/reference_device/testharness-discovery diff --git a/tools/testharness_discovery/testharness-discovery.init.in b/tools/reference_device/testharness-discovery.init.in index 26281066..26281066 100755 --- a/tools/testharness_discovery/testharness-discovery.init.in +++ b/tools/reference_device/testharness-discovery.init.in diff --git a/tools/testharness_discovery/testharness-discovery.service.in b/tools/reference_device/testharness-discovery.service.in index 10f16ed2..10f16ed2 100644 --- a/tools/testharness_discovery/testharness-discovery.service.in +++ b/tools/reference_device/testharness-discovery.service.in |