Skip to content

Commit 00dbf4c

Browse files
committed
CMake: greentea: Use more specific name for baremetal option
Make it obvious the option is used for greentea tests.
1 parent 40154ee commit 00dbf4c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tools/cmake/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Install prerequisites suggested in the previous section and follow the below ste
9797
```
9898
Or build the test binary with the baremetal profile
9999
```
100-
cd cmake_build/<MBED_TARGET>/<PROFILE>/<TOOLCHAIN>/ && cmake ../../../.. -G Ninja -DMBED_TEST_BAREMETAL=ON && cmake --build .
100+
cd cmake_build/<MBED_TARGET>/<PROFILE>/<TOOLCHAIN>/ && cmake ../../../.. -G Ninja -DMBED_GREENTEA_TEST_BAREMETAL=ON && cmake --build .
101101
```
102102
103103
Notes:

tools/cmake/mbed_greentea.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4-
option(MBED_TEST_BAREMETAL OFF)
4+
option(MBED_GREENTEA_TEST_BAREMETAL "Select baremetal greentea tests" OFF)
55

66
set(MBED_HTRUN_ARGUMENTS "" CACHE STRING "Argument list to forward to htrun.")
77

@@ -66,7 +66,7 @@ macro(mbed_greentea_add_test)
6666
${MBED_GREENTEA_TEST_SOURCES}
6767
)
6868

69-
if(MBED_TEST_BAREMETAL)
69+
if(MBED_GREENTEA_TEST_BAREMETAL)
7070
list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS mbed-baremetal)
7171
else()
7272
list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS mbed-os)

0 commit comments

Comments
 (0)