File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 9
9
"platform.all-stats-enabled" : 1 ,
10
10
11
11
// Enable auto reboot on error, required for crash reporting test
12
- "platform.fatal-error-auto-reboot-enabled" : true
12
+ "platform.fatal-error-auto-reboot-enabled" : true ,
13
+
14
+ // Enable bare-metal application profile
15
+ "target.application-profile" : "bare-metal"
13
16
}
14
17
}
Original file line number Diff line number Diff line change @@ -92,7 +92,9 @@ function(mbed_greentea_add_test)
92
92
${MBED_GREENTEA_TEST_SOURCES}
93
93
)
94
94
95
- if (MBED_GREENTEA_TEST_BAREMETAL)
95
+ # Resolve link library based on target.application-profile setting
96
+ get_target_property (MBED_CORE_FLAGS_TARGET_LINK_LIBRARIES mbed-core-flags INTERFACE_LINK_LIBRARIES)
97
+ if (NOT "mbed-rtos-flags" IN_LIST MBED_CORE_FLAGS_TARGET_LINK_LIBRARIES)
96
98
list (APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS mbed-baremetal)
97
99
else ()
98
100
list (APPEND MBED_GREENTEA_TEST_REQUIRED_LIBS mbed-os)
You can’t perform that action at this time.
0 commit comments