Skip to content

Commit ca7e18b

Browse files
committed
Allow comiling with mbed default profiles
Just run "export PROFILE=release" before triggering the build
1 parent 2accfd3 commit ca7e18b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mbed-os-to-arduino

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ mbed_compile () {
122122

123123
PROFILE_FLAG=""
124124
if [ x"$PROFILE" != x ]; then
125-
PROFILE_FLAG=--profile="$ARDUINOVARIANT"/conf/profile/$PROFILE.json
125+
if [ -f "$ARDUINOVARIANT/conf/profile/$PROFILE.json" ]; then
126+
PROFILE_FLAG=--profile="$ARDUINOVARIANT"/conf/profile/$PROFILE.json
127+
else
128+
PROFILE_FLAG=--profile="${PROFILE}"
129+
fi
126130
export PROFILE=-${PROFILE^^}
127131
fi
128132

0 commit comments

Comments
 (0)