Merge pull request #2300 from bridadan/enforce-standard-boards-v5

Enforcing 'standard' build for version 5 release
pull/2321/head
Sam Grove 2016-07-29 17:15:55 -05:00 committed by GitHub
commit ea78ed1699
2 changed files with 10 additions and 2 deletions

View File

@ -220,7 +220,7 @@
"detect_code": ["1168"],
"device_has": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI"],
"default_build": "small",
"release_versions": ["2", "5"]
"release_versions": ["2"]
},
"LPC1347": {
"inherits": ["LPCTarget"],
@ -1118,7 +1118,7 @@
"detect_code": ["4100"],
"device_has": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
"default_build": "small",
"release_versions": ["2", "5"]
"release_versions": ["2"]
},
"DISCO_F401VC": {
"inherits": ["Target"],

View File

@ -156,6 +156,14 @@ def is_official_target(target_name, version):
(("official release: %s" + linesep) % ", ".join(required_toolchains_sorted)) + \
("Currently it is only configured to support the ") + \
("following toolchains: %s" % ", ".join(supported_toolchains_sorted))
elif not target.default_build == 'standard':
result = False
reason = ("Target '%s' must set the 'default_build' " % target.name) + \
("to 'standard' to be included in the mbed OS 5.0 ") + \
("official release." + linesep) + \
("Currently it is set to '%s'" % target.default_build)
else:
result = False
reason = ("Target '%s' has set an invalid release version of '%s'" % version) + \