Skip to content

Commit ea78ed1

Browse files
authored
Merge pull request #2300 from bridadan/enforce-standard-boards-v5
Enforcing 'standard' build for version 5 release
2 parents ac34f29 + 7a07c38 commit ea78ed1

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

hal/targets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@
220220
"detect_code": ["1168"],
221221
"device_has": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI"],
222222
"default_build": "small",
223-
"release_versions": ["2", "5"]
223+
"release_versions": ["2"]
224224
},
225225
"LPC1347": {
226226
"inherits": ["LPCTarget"],
@@ -1118,7 +1118,7 @@
11181118
"detect_code": ["4100"],
11191119
"device_has": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
11201120
"default_build": "small",
1121-
"release_versions": ["2", "5"]
1121+
"release_versions": ["2"]
11221122
},
11231123
"DISCO_F401VC": {
11241124
"inherits": ["Target"],

tools/build_api.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ def is_official_target(target_name, version):
156156
(("official release: %s" + linesep) % ", ".join(required_toolchains_sorted)) + \
157157
("Currently it is only configured to support the ") + \
158158
("following toolchains: %s" % ", ".join(supported_toolchains_sorted))
159+
160+
elif not target.default_build == 'standard':
161+
result = False
162+
reason = ("Target '%s' must set the 'default_build' " % target.name) + \
163+
("to 'standard' to be included in the mbed OS 5.0 ") + \
164+
("official release." + linesep) + \
165+
("Currently it is set to '%s'" % target.default_build)
166+
159167
else:
160168
result = False
161169
reason = ("Target '%s' has set an invalid release version of '%s'" % version) + \

0 commit comments

Comments
 (0)