Skip to content

Commit 05e8585

Browse files
committed
Merge pull request #1526 from sg-/mbedos-macros
Mbedos macros
2 parents 9e41fec + 715fca0 commit 05e8585

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

workspace_tools/targets.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
mbed SDK
3-
Copyright (c) 2011-2015 ARM Limited
3+
Copyright (c) 2011-2016 ARM Limited
44
55
Licensed under the Apache License, Version 2.0 (the "License");
66
you may not use this file except in compliance with the License.
@@ -16,16 +16,16 @@
1616
"""
1717

1818
CORE_LABELS = {
19-
"ARM7TDMI-S": ["ARM7"],
20-
"Cortex-M0" : ["M0", "CORTEX_M"],
21-
"Cortex-M0+": ["M0P", "CORTEX_M"],
22-
"Cortex-M1" : ["M1", "CORTEX_M"],
23-
"Cortex-M3" : ["M3", "CORTEX_M"],
24-
"Cortex-M4" : ["M4", "CORTEX_M", "RTOS_M4_M7"],
25-
"Cortex-M4F" : ["M4", "CORTEX_M", "RTOS_M4_M7"],
26-
"Cortex-M7" : ["M7", "CORTEX_M", "RTOS_M4_M7"],
27-
"Cortex-M7F" : ["M7", "CORTEX_M", "RTOS_M4_M7"],
28-
"Cortex-A9" : ["A9", "CORTEX_A"]
19+
"ARM7TDMI-S": ["ARM7", "LIKE_CORTEX_ARM7"],
20+
"Cortex-M0" : ["M0", "CORTEX_M", "LIKE_CORTEX_M0"],
21+
"Cortex-M0+": ["M0P", "CORTEX_M", "LIKE_CORTEX_M0"],
22+
"Cortex-M1" : ["M1", "CORTEX_M", "LIKE_CORTEX_M1"],
23+
"Cortex-M3" : ["M3", "CORTEX_M", "LIKE_CORTEX_M3"],
24+
"Cortex-M4" : ["M4", "CORTEX_M", "RTOS_M4_M7", "LIKE_CORTEX_M4"],
25+
"Cortex-M4F" : ["M4", "CORTEX_M", "RTOS_M4_M7", "LIKE_CORTEX_M4"],
26+
"Cortex-M7" : ["M7", "CORTEX_M", "RTOS_M4_M7", "LIKE_CORTEX_M7"],
27+
"Cortex-M7F" : ["M7", "CORTEX_M", "RTOS_M4_M7", "LIKE_CORTEX_M7"],
28+
"Cortex-A9" : ["A9", "CORTEX_A", "LIKE_CORTEX_A9"]
2929
}
3030

3131
import os

workspace_tools/toolchains/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ def get_symbols(self):
292292
self.symbols.extend(mbedToolchain.CORTEX_SYMBOLS[self.target.core])
293293

294294
# Symbols defined by the on-line build.system
295-
self.symbols.extend(['MBED_BUILD_TIMESTAMP=%s' % self.timestamp, '__MBED__=1'])
295+
self.symbols.extend(['MBED_BUILD_TIMESTAMP=%s' % self.timestamp, 'TARGET_LIKE_MBED', '__MBED__=1'])
296296
if MBED_ORG_USER:
297297
self.symbols.append('MBED_USERNAME=' + MBED_ORG_USER)
298298

0 commit comments

Comments
 (0)