Skip to content

Commit

Permalink
CMake: greentea: Use more specific name for baremetal option
Browse files Browse the repository at this point in the history
Make it obvious the option is used for greentea tests.
  • Loading branch information
rwalton-arm committed Jul 12, 2021
1 parent d731166 commit 442b1bc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/cmake/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Install prerequisites suggested in the previous section and follow the below ste
```
Or build the test binary with the baremetal profile
```
cd cmake_build/<MBED_TARGET>/<PROFILE>/<TOOLCHAIN>/ && cmake ../../../.. -G Ninja -DMBED_TEST_BAREMETAL=ON && cmake --build .
cd cmake_build/<MBED_TARGET>/<PROFILE>/<TOOLCHAIN>/ && cmake ../../../.. -G Ninja -DMBED_GREENTEA_TEST_BAREMETAL=ON && cmake --build .
```

Notes:
Expand Down
4 changes: 2 additions & 2 deletions tools/cmake/mbed_greentea.cmake
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Copyright (c) 2020-2021 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

option(MBED_TEST_BAREMETAL OFF)
option(MBED_GREENTEA_TEST_BAREMETAL "Select baremetal greentea tests" OFF)

set(MBED_TARGET_SERIAL_PORT "" CACHE STRING "Serial port of the DUT")
set(MBED_TARGET_SERIAL_NUM "" CACHE STRING "USB Serial number of the DUT")
Expand Down Expand Up @@ -67,7 +67,7 @@ macro(mbed_greentea_add_test)
${MBED_GREENTEA_TEST_SOURCES}
)

if(MBED_TEST_BAREMETAL)
if(MBED_GREENTEA_TEST_BAREMETAL)
list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS mbed-baremetal)
else()
list(APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS mbed-os)
Expand Down

0 comments on commit 442b1bc

Please sign in to comment.