Skip to content

Release candidate for mbed-os-5.12.0-rc4 #10204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 34 commits into from
Mar 24, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
b18dbc7
Fix undefined tr_debug for QUECTEL_BG96 cellular feature
sarahmarshy Mar 6, 2019
66fd93b
Deduplicate MBED_ROM_xxxx defines on IAR linker command line
theotherjimmy Mar 19, 2019
d465607
Use PSA overrides for RAM
theotherjimmy Mar 19, 2019
5c0ffd7
Deduplicate RAM defines to linker command line
theotherjimmy Mar 19, 2019
cae0401
Test that excluded libraries are correctly collected
theotherjimmy Mar 20, 2019
b2e921f
Collect excluded libraries into ignored_dirs
theotherjimmy Mar 20, 2019
9e9f2a2
Cellular: Fix plmn trace for IAR
Mar 20, 2019
ae2ad20
Add RAM regions for cypress platforms
Mar 21, 2019
41555c1
Remove cypress targets from CPM
Mar 21, 2019
627f47f
Remove device_name from targets.json
Mar 21, 2019
2cff0ef
Add missing sector data
Mar 21, 2019
5f7c439
Configure sector information in targets.json
theotherjimmy Mar 21, 2019
5d8a77a
Fall back to target.json memories when CMSIS has empty memories
theotherjimmy Mar 21, 2019
6823b82
Whitespace clean up
bridadan Mar 19, 2019
c7c39a7
Conditionally enable --ide=mbed from ARMC6 based on compiler version.
bridadan Mar 19, 2019
eb27d8e
Remove stray prints and whitespace
bridadan Mar 19, 2019
31bc472
Test detection of Mbed Studio version of ARMC6
bridadan Mar 19, 2019
7489853
Clean up some whitespace
bridadan Mar 19, 2019
ca4c3e0
Version check the compiler in all build functions
bridadan Mar 19, 2019
03677a6
Add comments about the proper use of specific ARMC6 arguments
bridadan Mar 21, 2019
86a03e7
crypto: Update Mbed Crypto to 1.0.0
Patater Mar 18, 2019
caf6bd8
tls: Update Mbed TLS to 2.17.0
Patater Mar 19, 2019
8d73e9a
Fix the removal of Mbed-added core flags in uvision exporter
bridadan Mar 22, 2019
1286b7b
Whitespace clean up
bridadan Mar 22, 2019
9244a89
Only enable ARMC6 for a few targets
bridadan Mar 22, 2019
7efb8b3
Add utility functions and Exceptions
bridadan Mar 22, 2019
6dfbd0b
Add functions to enable ARM fallback to ARMC5.
bridadan Mar 22, 2019
7aba154
ARMC5 is supported if a target lists ARM as a supported_toolchain
bridadan Mar 22, 2019
78ec04c
Front-end scripts now use the ARM toolchain fallback.
bridadan Mar 22, 2019
a10be64
Make args_erroor less verbose.
bridadan Mar 22, 2019
9399eb0
Add ARMC5 as an option for the -t argument
bridadan Mar 22, 2019
551bbf3
Updating supported toolchain printing with new options
bridadan Mar 22, 2019
12438af
Add link for ARMC5 warning
bridadan Mar 22, 2019
3f9e266
get_mbed_official_release respects supported_toolchains
bridadan Mar 22, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion features/cellular/framework/AT/AT_CellularContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ nsapi_error_t AT_CellularContext::set_blocking(bool blocking)

void AT_CellularContext::set_plmn(const char *plmn)
{
tr_info("CellularContext plmn %s", plmn);
tr_info("CellularContext plmn %s", (plmn ? plmn : "NULL"));
_device->set_plmn(plmn);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include "QUECTEL_BG96_CellularStack.h"
#include "QUECTEL_BG96_CellularInformation.h"
#include "QUECTEL_BG96_CellularContext.h"
#include "CellularLog.h"

using namespace mbed;
using namespace events;
Expand Down
2 changes: 1 addition & 1 deletion features/mbedtls/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
development
mbedtls-2.17.0
2 changes: 1 addition & 1 deletion features/mbedtls/importer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#

# Set the mbed TLS release to import (this can/should be edited before import)
MBED_TLS_RELEASE ?= development
MBED_TLS_RELEASE ?= mbedtls-2.17.0
MBED_TLS_REPO_URL ?= [email protected]:ARMmbed/mbedtls.git

# Translate between mbed TLS namespace and mbed namespace
Expand Down
2 changes: 1 addition & 1 deletion features/mbedtls/mbed-crypto/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mbedcrypto-1.0.0d7
mbedcrypto-1.0.0
2 changes: 1 addition & 1 deletion features/mbedtls/mbed-crypto/importer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

# Set the Mbed Crypto release to import (this can/should be edited before
# import)
CRYPTO_RELEASE ?= mbedcrypto-1.0.0d7
CRYPTO_RELEASE ?= mbedcrypto-1.0.0
CRYPTO_REPO_URL ?= [email protected]:ARMmbed/mbed-crypto.git

# Translate between Mbed Crypto namespace and Mbed OS namespace
Expand Down
10 changes: 5 additions & 5 deletions targets/targets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2594,7 +2594,7 @@
},
"MTB_MXCHIP_EMW3166": {
"inherits": ["FAMILY_STM32"],
"supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
"supported_toolchains": ["ARMC6", "GCC_ARM", "IAR"],
"core": "Cortex-M4F",
"extra_labels_add": [
"STM32F4",
Expand Down Expand Up @@ -2627,7 +2627,7 @@
},
"USI_WM_BN_BM_22": {
"inherits": ["FAMILY_STM32"],
"supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
"supported_toolchains": ["ARMC6", "GCC_ARM", "IAR"],
"components_add": ["SPIF", "FLASHIAP"],
"core": "Cortex-M4F",
"extra_labels_add": [
Expand Down Expand Up @@ -5273,7 +5273,7 @@
"RZ_A1XX": {
"inherits": ["Target"],
"core": "Cortex-A9",
"supported_toolchains": ["ARM", "GCC_ARM", "IAR"],
"supported_toolchains": ["ARMC6", "GCC_ARM", "IAR"],
"extra_labels": ["RENESAS", "RZ_A1XX"],
"device_has": [
"SLEEP",
Expand Down Expand Up @@ -8085,7 +8085,7 @@
"public-ram-start": "0x08047600",
"public-ram-size": "0x200"
},
"device_name": "CY8C6247BZI-D54",
"sectors": [[268435456, 512]],
"bootloader_supported": true
},
"CY8CMOD_062_4343W": {
Expand Down Expand Up @@ -8117,7 +8117,7 @@
"post_binary_hook": {
"function": "PSOC6Code.complete"
},
"device_name": "CY8C6347BZI-BLD53",
"sectors": [[268443648, 512]],
"bootloader_supported": true
},
"CY8CKIT_062_4343W": {
Expand Down
51 changes: 0 additions & 51 deletions tools/arm_pack_manager/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -462778,56 +462778,5 @@
],
"vendor": "Nordic Semiconductor:54"
},
"CY8C6347BZI-BLD53": {
"core": "Cortex-M4",
"vendor": "Cypress",
"sectors": [
[
268435456,
512
]
],
"memories": {
"IROM1": {
"access": {
"execute": true,
"non_secure": true,
"non_secure_callable": false,
"peripheral": false,
"read": true,
"secure": false,
"write": true
},
"default": true,
"start": "0x10002000",
"size": "0x000FE000"
}
}
},
"CY8C6247BZI-D54": {
"core": "Cortex-M4",
"vendor": "Cypress",
"sectors": [
[
268435456,
512
]
],
"memories": {
"IROM1": {
"access": {
"execute": true,
"non_secure": true,
"non_secure_callable": false,
"peripheral": false,
"read": true,
"secure": false,
"write": true
},
"start": "0x10040000",
"size": "0xB8000"
}
}
},
"version": "0.2.0"
}
59 changes: 33 additions & 26 deletions tools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,24 @@
sys.path.insert(0, ROOT)


from tools.toolchains import TOOLCHAINS, TOOLCHAIN_CLASSES, TOOLCHAIN_PATHS
from tools.toolchains import mbedToolchain
from tools.targets import TARGET_NAMES, TARGET_MAP, Target
from tools.toolchains import TOOLCHAINS
from tools.targets import TARGET_NAMES, Target
from tools.options import get_default_options_parser
from tools.options import extract_profile
from tools.options import extract_mcus
from tools.build_api import build_library, build_mbed_libs, build_lib
from tools.build_api import mcu_toolchain_matrix
from tools.build_api import print_build_results
from tools.build_api import get_toolchain_name
from tools.settings import CPPCHECK_CMD, CPPCHECK_MSG_FORMAT
from tools.settings import CPPCHECK_CMD, CPPCHECK_MSG_FORMAT, CLI_COLOR_MAP
from tools.build_api import target_supports_toolchain
from tools.build_api import find_valid_toolchain
from tools.notifier.term import TerminalNotifier
from tools.utils import argparse_filestring_type, args_error, argparse_many
from tools.utils import argparse_filestring_type, argparse_dir_not_parent
from tools.utils import argparse_dir_not_parent
from tools.utils import NoValidToolchainException
from tools.utils import print_end_warnings
from tools.paths import is_relative_to_root

if __name__ == '__main__':
def main():
start = time()

# Parse Options
Expand Down Expand Up @@ -169,40 +169,37 @@
failures = []
successes = []
skipped = []
end_warnings = []

toolchain_names = set()
for toolchain in toolchains:
for target_name in targets:
target = Target.get_target(target_name)
toolchain_names.add(get_toolchain_name(target, toolchain))

for toolchain_name in toolchain_names:
if not TOOLCHAIN_CLASSES[toolchain_name].check_executable():
search_path = TOOLCHAIN_PATHS[toolchain_name] or "No path set"
args_error(parser, "Could not find executable for %s.\n"
"Currently set search path: %s"
% (toolchain_name, search_path))
try:
toolchain_name, internal_tc_name, end_warnings = find_valid_toolchain(
target, toolchain
)
except NoValidToolchainException as e:
print_end_warnings(e.end_warnings)
args_error(parser, str(e))

for toolchain in toolchains:
for target in targets:
tt_id = "%s::%s" % (toolchain, target)
if toolchain not in TARGET_MAP[target].supported_toolchains:
tt_id = "%s::%s" % (internal_tc_name, target_name)
if not target_supports_toolchain(target, toolchain):
# Log this later
print("%s skipped: toolchain not supported" % tt_id)
skipped.append(tt_id)
else:
try:
notifier = TerminalNotifier(options.verbose, options.silent)
mcu = TARGET_MAP[target]
profile = extract_profile(parser, options, toolchain)
profile = extract_profile(parser, options, internal_tc_name)

if mcu.is_PSA_secure_target and \
if target.is_PSA_secure_target and \
not is_relative_to_root(options.source_dir):
options.source_dir = ROOT

if options.source_dir:
lib_build_res = build_library(
options.source_dir, options.build_dir, mcu, toolchain,
options.source_dir, options.build_dir, target, toolchain_name,
jobs=options.jobs,
clean=options.clean,
archive=(not options.no_archive),
Expand All @@ -214,7 +211,7 @@
)
else:
lib_build_res = build_mbed_libs(
mcu, toolchain,
target, toolchain_name,
jobs=options.jobs,
clean=options.clean,
macros=options.macros,
Expand All @@ -225,7 +222,7 @@

for lib_id in libraries:
build_lib(
lib_id, mcu, toolchain,
lib_id, target, toolchain_name,
clean=options.clean,
macros=options.macros,
jobs=options.jobs,
Expand All @@ -236,10 +233,15 @@
successes.append(tt_id)
else:
skipped.append(tt_id)
except KeyboardInterrupt as e:
print("\n[CTRL+c] exit")
print_end_warnings(end_warnings)
sys.exit(0)
except Exception as e:
if options.verbose:
import traceback
traceback.print_exc(file=sys.stdout)
print_end_warnings(end_warnings)
sys.exit(1)
failures.append(tt_id)
print(e)
Expand All @@ -254,5 +256,10 @@
if report:
print(print_build_results(report, report_name))

print_end_warnings(end_warnings)
if failures:
sys.exit(1)


if __name__ == '__main__':
main()
Loading