@@ -478,12 +478,10 @@ def build_project(src_paths, build_path, target, toolchain_name,
478
478
src_paths .extend (libraries_paths )
479
479
inc_dirs .extend (map (dirname , libraries_paths ))
480
480
481
- # Build Directory
482
481
if clean and exists (build_path ):
483
482
rmtree (build_path )
484
483
mkdir (build_path )
485
484
486
- # Pass all params to the unified prepare_toolchain()
487
485
toolchain = prepare_toolchain (
488
486
src_paths , build_path , target , toolchain_name , macros = macros ,
489
487
clean = clean , jobs = jobs , notify = notify , silent = silent , verbose = verbose ,
@@ -513,6 +511,17 @@ def build_project(src_paths, build_path, target, toolchain_name,
513
511
try :
514
512
# Call unified scan_resources
515
513
resources = scan_resources (src_paths , toolchain , inc_dirs = inc_dirs )
514
+ if (hasattr (toolchain .target , "release_versions" ) and
515
+ "5" not in toolchain .target .release_versions and
516
+ "rtos" in toolchain .config .lib_config_data ):
517
+ if "Cortex-A" in toolchain .target .core :
518
+ raise NotSupportedException (
519
+ ("%s Will be supported in mbed OS 5.6. "
520
+ "To use the %s, please checkout the mbed OS 5.4 release branch. "
521
+ "See https://developer.mbed.org/platforms/Renesas-GR-PEACH/#important-notice "
522
+ "for more information" ) % (toolchain .target .name , toolchain .target .name ))
523
+ else :
524
+ raise NotSupportedException ("Target does not support mbed OS 5" )
516
525
517
526
# Change linker script if specified
518
527
if linker_script is not None :
@@ -1244,9 +1253,6 @@ def mcu_toolchain_matrix(verbose_html=False, platform_filter=None,
1244
1253
# FIlter out platforms using regex
1245
1254
if re .search (platform_filter , target ) is None :
1246
1255
continue
1247
- # TODO: Remove this check when Cortex-A is re-enabled
1248
- if "Cortex-A" in TARGET_MAP [target ].core :
1249
- continue
1250
1256
target_counter += 1
1251
1257
1252
1258
row = [target ] # First column is platform name
0 commit comments