Martin Kojtal
ab82f1fca6
Merge pull request #10627 from devran01/remove_future_sequana_target
...
Remove targets FUTURE_SEQUANA_M0_PSA and FUTURE_SEQUANA_PSA
2019-05-24 12:16:10 +01:00
Alexander Zilberkant
67905bddae
Use build directory in postbuild
...
Use build directory instead of temp directory for for
intermediate files during binaries merge.
2019-05-22 17:17:27 +03:00
Michael Schwarcz
96268d91ef
Updates after rebase
...
- postbuild: Use find_secure_image and update prebuilt binaries
- Add CMSIS driver headers
- Align with 2-region memory model
2019-05-22 17:17:23 +03:00
Michael Schwarcz
36a8514dbd
Add documentation on Musca-A1 signing key
2019-05-22 17:17:22 +03:00
Michael Schwarcz
ff1c769c7e
Add ARM_MUSCA_A1 as a new target platform
...
Musca-A1 is a Cortex-M33 based target with security extension enabled.
- ARM_MUSCA_A1 is the non-secure target running mbed-os.
- ARM_MUSCA_A1_S is the secure target running TF-M.
- TF-M sources were imported and patched in previous commits.
- TF-M secure bootloader (McuBoot) for MUSCA_A1 is submitted by a pre-built binary.
- A post-build hook concatenates The secure and non-secure binaries,
signs it and then concatenates the bootloader with the signed binary.
2019-05-22 17:17:20 +03:00
Devaraj Ranganna
29dfab93bb
Replace FUTURE_SEQUANA_M0_PSA and FUTURE_SEQUANA_PSA targets with
...
CY8CKIT_062_WIFI_BT_M0_PSA and CY8CKIT_062_WIFI_BT_PSA in config test
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-05-22 10:20:57 +01:00
Martin Kojtal
77ca32dd57
Merge pull request #10606 from jeromecoutant/PR_PSAscript
...
PSA release script update: add toolchain option
2019-05-21 15:06:10 +01:00
Devaraj Ranganna
7765d39283
The targets FUTURE_SEQUANA_M0_PSA and FUTURE_SEQUANA_PSA are removed
...
due to partial implementation. Having FUTURE_SEQUANA_M0 and
FUTURE_SEQUANA PSA targets is misleading.
Signed-off-by: Devaraj Ranganna <devaraj.ranganna@arm.com>
2019-05-21 15:00:31 +01:00
Qinghao Shi
09e21a20d2
TESTS: update examples.json to enable testing
2019-05-21 14:27:10 +01:00
Martin Kojtal
7d0cc69fb1
Merge pull request #10521 from jamesbeyond/example_test
...
TEST: update python script to enable examples smoke test
2019-05-21 10:07:28 +01:00
Qinghao Shi
35eeef55a1
fix a bug where base_path was wrong
2019-05-19 00:32:39 +01:00
Qinghao Shi
3bb0a8aded
fix a bug when STDOUT has less than 5 lines
2019-05-18 23:57:23 +01:00
jeromecoutant
79ea26614b
PSA release script update: add toolchain option
2019-05-17 16:32:49 +02:00
Anna Bridge
9fb4429379
Merge pull request #10520 from kjbracey-arm/build_tz_heuristic
...
Permit non-TrustZone ARMv8 build
2019-05-17 11:06:55 +01:00
Qinghao Shi
48e1a56e0e
add a comment based on review
2019-05-15 23:31:58 +01:00
Martin Kojtal
998d85f80b
Merge pull request #10505 from orenc17/imporve_importer
...
Improve importer.py
2019-05-13 14:15:21 +01:00
Martin Kojtal
571caad59e
Merge pull request #10539 from bridadan/fix_armc6_mbed_studio
...
Add mbed studio flag during assembly
2019-05-13 14:08:57 +01:00
Qinghao Shi
71d7970fc5
fix issues base on the review
2019-05-10 17:48:15 +01:00
Anna Bridge
97e1c9cbaf
Merge pull request #10287 from linlingao/pr10177
...
Enable MTS_DRAGONFLY_F411RE to register with Pelion
2019-05-10 16:21:46 +01:00
Brian Daniels
fb62ed643c
Add mbed studio flag during assembly
2019-05-07 11:45:30 -05:00
Kevin Bracey
65e0887ef3
Permit non-TrustZone ARMv8 build
...
Change the heuristic for selection of CMSE in the tools python, so that
a non-TrustZone ARMv8 build can happen.
Ideally we would have more direct flagging in the targets, but this
refines the heuristic so the necessary behaviour can be easily
achieved.
* DOMAIN_NS=1 is based purely on the `-NS` suffix on the core name.
* Enabling CMSE in the compiler and outputting a secure import library
is now enabled when the core doesn't have an `-NS` suffix by either
the target label `TFM` being present or the flag `trustzone` being set.
This covers the existing ARMv8-M behaviour - TF-M builds have the TFM
label, as per its documentation; M2351 secure builds have no explicit
flagging, so we ensure that the M2351_NS target has the trustzone flag
set, and the out-of-tree secure target inherits that.
2019-05-03 13:36:38 +03:00
Lin Gao
2c22f549e9
Add option to keep post_binary_hook and make it default. It can be disabled by setting it to null
2019-05-02 11:25:20 -05:00
Qinghao Shi
b2611fb801
TEST: update python script to enable example smoke test
...
* it will check examples.json if contains 'test', 'compare_log', 'baud_rate' keys
* it will dump test_spec.json test in examples compiled successfully
2019-05-02 15:26:15 +01:00
Martin Kojtal
00f461eee0
Merge pull request #10447 from kfnta/alzix/byos
...
PSA Bring Your Own Service
2019-05-02 08:54:25 +01:00
Alexander Zilberkant
cae568ca07
Add Cortex-M33E to cpu conversion table for ARMC6
2019-04-30 14:55:46 +03:00
Alexander Zilberkant
5f2991dcc7
Handle Cortex-M33E no-fpu flags
...
Add compilation "-mfpu=none" flag for Cortex-M33E.
2019-04-30 14:48:38 +03:00
Alexander Zilberkant
fe9eac78c2
Update PSA tools Readme
2019-04-30 14:41:09 +03:00
Alexander Zilberkant
91505184d3
Integrate with mbeb-cli build system
...
PSA code generation will be called automatically upon mbed invocation.
The autogenerated files will be created under <mbed-os-root>/PSA_AUTOGEN directory.
2019-04-30 14:41:09 +03:00
Oren Cohen
f58e600d6e
Fix armclang fpu detection
2019-04-30 14:11:54 +03:00
Alexander Zilberkant
8c5ba9154d
Update PSA code generator
...
Unify TF-M and Mbed-SPM code generators:
- Unify SPM initialization logic:
- All partitions are registered at once
- Test partitions are guarded by #ifndef
- Introduce single template list
- Beatify template files and add "Autogen-do not modify" notice
Prepare for integration with mbed-os build system:
- Generate all the files in a single place
Simplify tools/psa/release.py script
2019-04-30 14:10:23 +03:00
Martin Kojtal
8a92271a3b
Merge pull request #10448 from fredlee12001/master
...
Size should be calculate after confirm the final start address
2019-04-30 09:46:39 +01:00
Martin Kojtal
a85b70e53f
Merge pull request #10477 from VeijoPesonen/config_mesh_wisun
...
Wi-SUN: adds greentea test config
2019-04-30 09:40:35 +01:00
Martin Kojtal
360b7bb033
Merge pull request #10443 from bridadan/fix_binary_notify
...
Fix for downloading the wrong binary in the online compiler
2019-04-30 09:20:12 +01:00
Martin Kojtal
47205bfd02
Merge pull request #10502 from kfnta/feature_trusted-firmware-m_f2dea5b
...
PSA: TFM import
2019-04-30 09:12:37 +01:00
Martin Kojtal
39699d53be
Merge pull request #10398 from bridadan/official_release_changes
...
Clean up ARM toolchains from get_mbed_official_release()
2019-04-29 13:39:12 +01:00
Oren Cohen
d1fa7bd277
Use a directory context to simplify git commands
2019-04-29 14:13:16 +03:00
Oren Cohen
be8a1e804f
Use argparse.FileType to parse config file
2019-04-29 14:10:59 +03:00
Oren Cohen
ca5dff69f5
Extract import logic to a separate method
2019-04-29 14:09:34 +03:00
Oren Cohen
b24f42f5ba
Move regex to the using function
2019-04-29 14:08:30 +03:00
Oren Cohen
bd5d059b13
Set log level during argument parsing
2019-04-29 00:37:16 +03:00
Oren Cohen
6f19ba093a
Proper documentation
2019-04-29 00:11:39 +03:00
Oren Cohen
8a2426d6da
Styling and annoyances
2019-04-28 23:53:00 +03:00
Oren Cohen
c0a1c45ae5
Use custom agrparse.Action to handle input parameters
2019-04-28 23:48:30 +03:00
Oren Cohen
09af58fad5
Use regex to find cherry-pick message
2019-04-28 23:44:18 +03:00
Oren Cohen
3273edba8d
Allow comments in commit SHA list
2019-04-28 20:05:41 +03:00
Oren Cohen
e15068d728
Refactor continuation logic
2019-04-28 20:03:08 +03:00
Oren Cohen
d26bca7be8
Make sure the script is run from within mbed-os directory
2019-04-28 20:02:19 +03:00
Oren Cohen
edcde5ebc0
Reformat and Improve
2019-04-28 20:01:06 +03:00
Oren Cohen
14ad60ae01
Update commit sha's
2019-04-28 15:48:18 +03:00
Anna Bridge
c180b1c5f4
Merge pull request #10451 from NXPmicro/Add_IAR_Support
...
MIMXRT1050: Readd IAR support
2019-04-26 13:35:01 +01:00
Anna Bridge
9a581732b0
Merge pull request #10438 from OpenNuvoton/nuvoton_psa_pass_tfm-lvl_linker
...
PSA: Pass TFM_LVL macro to linker files
2019-04-26 13:34:35 +01:00
Anna Bridge
c0feb1a659
Merge pull request #10390 from kjbracey-arm/armc6_fpu_sel
...
Correct some CPU selections in tools
2019-04-26 13:32:29 +01:00
Anna Bridge
1cd709f6b6
Merge pull request #10322 from kjbracey-arm/gcc_builtins
...
GCC: remove `-fno-builtin` option
2019-04-26 13:32:02 +01:00
Veijo Pesonen
7a942fd083
Wi-SUN: adds greentea test config
2019-04-25 14:21:57 +03:00
fred.li
38e088eadd
remove blank line
2019-04-25 09:56:52 +08:00
Kevin Bracey
744e2ccfa7
Tools: Add "Cortex-M33E" option
...
There was a gap in our pattern - we didn't offer M33 with DSP Extension
but no floating-point.
2019-04-23 12:04:20 +03:00
Kevin Bracey
56e2d339c8
Correct some CPU selections in tools
...
* For ARMC6, core types `Cortex-M4` and `Cortex-M7` did not explicitly
add `--fpu=none`, so it defaulted to assuming FPU present. This would
cause a compilation error if the target's cmsis.h had `__FPU_PRESENT`
defined to 0.
* For GCC, `Cortex-M33FE` did not include `+dsp` in the architecture
selection.
* For ARMC5 and ARMC6, `Cortex-M0+` did not pass `M0plus` to the
non-Clang tools.
2019-04-23 12:04:20 +03:00
Mahesh Mahadevan
7cd8ee1599
MIMXRT1050: Readd IAR support
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-04-22 11:47:23 -05:00
fred.li
7941d34e35
Size should be calculate after confirm the start address
2019-04-22 11:53:15 +08:00
Brian Daniels
03f5ffd6b6
Fix for downloading the wrong binary in the online compiler
2019-04-18 16:45:39 -05:00
Martin Kojtal
63e7f09c7e
Merge pull request #10406 from j3hill/cmsis_fix
...
Modify CMSIS pack manager to properly handle OSError
2019-04-18 13:15:59 +01:00
ccli8
717a2a2139
Pass TFM_LVL macro to linker files
...
With this, single linker file can support different TFM security levels.
2019-04-18 14:06:20 +08:00
Brian Daniels
b09ab8855f
Fixing default algorithms in cmsis pack index
2019-04-15 18:17:28 -05:00
j3hill
e54b3f7cbe
Update CMSIS pack manager to properly handle OSError
2019-04-15 10:38:34 -05:00
Brian Daniels
ee174fabef
Make get_mbed_official_release return ARMC5 and ARMC6.
...
Previously it would return "ARM" for "ARMC5", which was quite confusing.
2019-04-12 14:45:28 -05:00
Cruz Monrreal
f1c4a029c2
Merge pull request #9844 from cmonr/travisCI-refactor
...
Travis CI: Stages, OS update, apt-get relief!
2019-04-12 09:17:55 -05:00
Martin Kojtal
8160c34a53
Merge pull request #10257 from theotherjimmy/py3-build-release
...
Correct Python 3 errors and lint warnings in build_release.py
2019-04-12 14:17:31 +01:00
Cruz Monrreal
2641fb38ce
Merge pull request #10364 from kfnta/psa_codegen_refactor
...
Refactor PSA code generators
2019-04-11 20:34:11 -05:00
Cruz Monrreal
582edf503a
Merge pull request #10366 from kjbracey-arm/feature_CMSIS_5_ca812421
...
Update CMSIS to 5.5.1
2019-04-11 20:34:00 -05:00
Cruz Monrreal
3bda0ef36f
Merge pull request #10021 from bridadan/uvision_postbuild_regions
...
Enable post build bootloader merging in uvision
2019-04-11 20:22:36 -05:00
Cruz Monrreal II
2a2ec16a44
Fixed status reporting.
...
'tr' command wasn't doing any replacement
2019-04-11 10:50:21 -05:00
Brian Daniels
583e787ca1
Apply suggestions from code review
...
Co-Authored-By: theotherjimmy <theotherjimmy@gmail.com>
2019-04-11 09:33:15 -05:00
Oren Cohen
904656ebc6
Update commit sha's
2019-04-10 14:26:10 +03:00
Oren Cohen
4e720fddd5
Remove outdated patch
2019-04-10 14:20:56 +03:00
Oren Cohen
ae4341e8db
Refactor PSA code generators
...
* Unify PSA generators
* Replace scanning for mbed_spm templates with json
* Make generate_source_files and parse_manifests common
* Make assert_int an internal function
* Use parse_manifests in pytests
* Update docs
2019-04-10 14:15:28 +03:00
Kevin Bracey
f967c8b3d7
cmsis_importer: take just Source/os_systick.c
2019-04-10 11:56:23 +03:00
Martin Kojtal
bb0baee381
Merge pull request #10347 from bridadan/allow_mbed_2_builds
...
Fix detection of supported targets for mbed 2 builds
2019-04-10 10:02:32 +02:00
Cruz Monrreal
8e0259291b
Merge pull request #10348 from theotherjimmy/fix-memap-m33
...
Parse M33 + GCC_ARM map files
2019-04-09 21:44:26 -05:00
Brian Daniels
fb6fcc5324
Only enable uvision postbuild when in a non-zipped exported project.
...
Projects that are zipped are typically from the online compiler or they
are meant to be used in a separate environment. Since the postbuild
script requires the Mbed OS tools to present in the project, we will
disable the postbuild script when the project is exported to a zipped
project.
2019-04-09 14:10:38 -05:00
Brian Daniels
bbef60fbf2
Correct calls to merge_region_list
2019-04-09 14:10:37 -05:00
Brian Daniels
ae344342d1
Fix import of region functions
2019-04-09 14:10:37 -05:00
Brian Daniels
1319948412
Conditionally enable post build in uvision for managed bootloader
2019-04-09 14:10:36 -05:00
Brian Daniels
a0cce48282
Modify uvision templates to conditionally enable post build
2019-04-09 14:08:14 -05:00
Brian Daniels
d004828589
Add post build script for uvision to support managed bootloader.
2019-04-09 14:08:14 -05:00
Brian Daniels
4734cb7059
Add template for export info needed by the post build script
2019-04-09 14:08:13 -05:00
Brian Daniels
533ee1f717
Add debug and flash init scripts for uvision.
...
These files are used when the post build script is enabled to support
projects that are using managed bootloader mode.
2019-04-09 14:08:13 -05:00
Brian Daniels
a5d89bb088
Update merge_region_list test case
2019-04-09 14:08:13 -05:00
Brian Daniels
5b33dfd6e4
Update calls to merge_region_list
2019-04-09 14:08:13 -05:00
Brian Daniels
3b768de528
merge_region_list now takes in just restrict_size instead of config.
...
merge_region_list was changed to do some extra checks regarding the
different regions. It only was checking the "restrict_size" parameter
and not the whole config option. So this reduces the argument down to
just this value. This makes it easier to serialize the data needed for
post build steps after being built in an exported project.
2019-04-09 14:08:13 -05:00
Cruz Monrreal
803f5fd44e
Merge pull request #9966 from naveenkaje/sct_fix
...
tools: fix the path generated to the sct file
2019-04-09 14:03:09 -05:00
Cruz Monrreal
fba8156bda
Merge pull request #9967 from bridadan/fix_vscode_makefile_zip
...
Fix for projects exported as a zip file (affects online compiler)
2019-04-09 11:05:33 -05:00
Brian Daniels
80b0a4cbd8
Make files call the linker from the build dir, so correct the path
2019-04-09 10:20:20 -05:00
Kevin Bracey
c5b5407dc8
cmsis_importer.json: adjust source paths
2019-04-09 17:34:51 +03:00
Jimmy Brisson
002a2b17c0
Fix the bug that travis caught
2019-04-09 09:19:41 -05:00
Martin Kojtal
dc1198b5c8
Merge pull request #10254 from theotherjimmy/remove-some-deadcode
...
Remove unused tools modules and document the used ones.
2019-04-09 12:26:49 +02:00
Martin Kojtal
65ada92527
Merge pull request #10301 from alekla01/examples-verbose-patch-1
...
examples test compile optional verbose
2019-04-09 11:04:33 +02:00
Martin Kojtal
4a3edf5c83
Merge pull request #10332 from bridadan/fix_large_print
...
Break up large prints from --supported
2019-04-09 11:03:16 +02:00
Martin Kojtal
905042ec17
Merge pull request #10333 from bridadan/toolchain_path_quotes
...
Allow toolchain paths to be wrapped in quotes
2019-04-09 11:00:43 +02:00
Jimmy Brisson
76226b2f24
Parse section starts beginning with whitespace
2019-04-08 13:32:44 -05:00
Jimmy Brisson
7ceb876e0d
Correct all linting errors
2019-04-08 13:32:01 -05:00
Brian Daniels
60910c049c
Remove outdated projectfiles case for makefiles
2019-04-08 13:07:13 -05:00
Brian Daniels
381223a329
Fixing zipped makefile exports.
...
When zipping up projects, the makefile exporter brings every directory
supplied as --source under the same directory, even if they are in a
parent directory. There was some code that was clearing the leading
"../" components. This lead to an empty string ("") being supplied to
the "into_path" arg for "resources.add_directory". Since "" is not None,
the default behavior to place it in the same directory was not being
used. The extra "" caused a leading "/" to be added, making everything
placed a the absolute root of the filesystem ("/").
Now we check to see if the "into_path" is an empty string and ignore it
if that's the case.
2019-04-08 13:07:13 -05:00
Brian Daniels
a0b9275ec4
Fixing copying of static filerefs
2019-04-08 13:07:13 -05:00
Brian Daniels
49ab2b83bd
Add c_cpp_properties file to gen_files for zipping
2019-04-08 13:07:12 -05:00
Brian Daniels
e65722262c
Create template for missing generated vscode file
...
This file was being dumped to the filesystem without going through the
"gen_file" mechanism, thus it was missed when being zipped up.
2019-04-08 13:07:12 -05:00
Brian Daniels
f1c98938c7
Fix incorrect reference to a filetype
2019-04-08 13:07:12 -05:00
Brian Daniels
3b4a463dce
Move all generated file paths to FileRefs in the exporters.
...
The FileRefs allow you to preserve the correct file paths in the online
compiler. It also allows you to preserve the correct file paths for
generated files.
2019-04-08 13:07:12 -05:00
Brian Daniels
e239549585
Fixing path comparisons on Windows
2019-04-08 13:07:11 -05:00
Brian Daniels
8a2836f122
Fix detection of supported targets for mbed 2 builds
2019-04-08 11:34:28 -05:00
Jimmy Brisson
2a4a73cab6
Add the only part of the "data" module that was used
2019-04-08 10:58:45 -05:00
Brian Daniels
6d754fe96c
Remove database code from singletest api
2019-04-08 10:58:45 -05:00
Jimmy Brisson
a40b27322e
Remove unused travis build script
2019-04-08 10:58:42 -05:00
Jimmy Brisson
96423bd539
Reword table header
2019-04-08 10:58:01 -05:00
Jimmy Brisson
8ca69e1c22
Remove unused test_webapi python module
2019-04-08 10:58:01 -05:00
Jimmy Brisson
3a0eeed792
Remove unused upload_results python module
2019-04-08 10:58:01 -05:00
Jimmy Brisson
930fb11ea1
Remove unused size python module
2019-04-08 10:58:01 -05:00
Jimmy Brisson
e45beb3313
Describe what each python module does
2019-04-08 10:58:01 -05:00
Jimmy Brisson
ed5c6a3050
Remove unused python model: check_release
2019-04-08 10:58:01 -05:00
Jimmy Brisson
49bd5ed03d
Remove unused synch python module
2019-04-08 10:58:01 -05:00
Jimmy Brisson
6fa5ca4c35
Remove unused misc python module
2019-04-08 10:58:01 -05:00
Jimmy Brisson
6112a3306d
Remove empty git_hooks python module
2019-04-08 10:58:01 -05:00
Jimmy Brisson
1cc311b153
Remove unused data python module
2019-04-08 10:58:01 -05:00
Jimmy Brisson
b62e041143
Remove tools/compliance and tools/dev
...
### Description
These directories have contained exclusively dead code for as long as
I can remember. Now is as good of a time as any to remove them.
### Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
2019-04-08 10:58:01 -05:00
Cruz Monrreal II
3f76f6ed79
Fixed shellcheck issues found in functions.sh
...
Added comments to functions
2019-04-08 10:45:07 -05:00
Cruz Monrreal II
397ee3074a
Removed nearly all usage of 'apt-get'.
...
Primary cause of false Travis CI failures was running 'apt-get update'.
Refactored all instances where this was needed with manually fetching and installing dependencies in S3 instace.
This also includes GCC installation.
2019-04-08 10:45:07 -05:00
Cruz Monrreal II
5f40538c59
Re-enabled PR status reporting.
...
Added external bash file to source functions from
2019-04-08 10:45:07 -05:00
Oren Cohen
a127f10648
Check that required toolchains are in PATH
2019-04-07 18:49:35 +03:00
Brian Daniels
632cd9d065
Allow toolchain paths to be wrapped in quotes
2019-04-05 14:47:02 -05:00
Brian Daniels
2a080a0840
Correct call to add_file_ref
2019-04-05 11:46:39 -05:00
Kevin Bracey
3caa480b04
GCC: remove `-fno-builtin` option
...
Since the year dot GCC has been passed the `-fno-builtin` option, which
eliminates all compiler knowledge of the C library, even down to basic
stuff like `memcpy` or `memset`, potentially inhibiting quite a lot of
optimisations.
Remove the option to re-enable the optimisations.
There is no record in the source as to why the option is present - maybe
we'll find out by trying to remove it. If necessary, it could be
selectively turned back on for particular functions.
2019-04-05 12:40:58 +03:00
Martin Kojtal
c2ebb79723
Merge pull request #9814 from LMESTM/dev_NUCLEO_WB55RG
...
Adding NUCLEO_WB55RG support
2019-04-04 15:30:07 +02:00
Martin Kojtal
06b60e3f68
Merge pull request #10295 from AndriiLishchynskyi/eclipse_configurations
...
eclipse_gcc_arm export improvement
2019-04-04 12:42:34 +02:00
Martin Kojtal
6081727cbf
Merge pull request #10115 from enebular/raven
...
Uhuru RAVEN: Adding platform HAL
2019-04-04 11:05:23 +02:00
Martin Kojtal
8b5157ba47
Merge pull request #10282 from OpenNuvoton/nuvoton_export-iar8
...
Nuvoton: Support export IAR8 project
2019-04-04 10:52:19 +02:00
Aleksi Klasila
8137974232
rm ["python", "-m"] from build_command
2019-04-04 10:34:23 +03:00
Andrii Lishchynskyi
7eb44cb40f
Fix applying all possible setting
2019-04-03 19:14:10 +03:00
Martin Kojtal
d1da622797
Merge pull request #10296 from jeromecoutant/PR_NOLINKER
...
Build script: add explicit console log in case of linker script error
2019-04-03 14:30:16 +02:00
Andrii Lishchynskyi
1f16fec408
Replace 'resolution_order_names' and 'extra_labels' with 'labels'
...
Get rid of 'next' function
2019-04-03 12:37:45 +03:00
jeromecoutant
c537869a79
NUCLEO_L4R5ZI_P: enable sw4stm32 export
2019-04-03 11:13:58 +02:00
jeromecoutant
ab9890072d
Build script: add explicit console log in case of linker script error
2019-04-02 18:03:32 +02:00
Brian Daniels
3b9baf9600
Only store references to one linker script in a resources object.
...
Projects have only ever made use of one linker script per compiler.
However, the tools would store references to multiple linker scripts in
a project and select one in a non-deterministic way. Now we clear out
any existing linker script when we add a new one to a project. This way,
the last added linker script is always used.
2019-04-02 09:49:06 -05:00
Brian Daniels
fd7467c9ba
Test to ensure only the last linker file is used in a project
2019-04-02 09:48:55 -05:00
Andriy.Lishchynskyi
71e041689d
Enhancement to remove duplicates in Eclipse launch configurations
2019-04-02 17:31:22 +03:00
Naveen Kaje
f0f133f3ec
tools: fix the path generated to the sct file
...
The sct file path generated in the online compiler
is incorrect. Fix that by changing the correct_scatter_shebang
API to accept a FileRef object instead and use the path.
This change should go with change in online compiler that removes
the override for correct_scatter_shebang.
2019-04-02 09:05:15 -05:00
alekla01
3665209df8
examples test compile optional verbose
2019-04-02 09:01:55 +03:00
ccli8
50f6870868
[Nuvoton] Support export IAR8 project
...
1. Override IlinkOverrideProgramEntryLabel and IlinkProgramEntryLabel to specify
entry point for debuger.
2. Refer to doc at the link below for post-export steps. Usually, 'export' is nearly
out of the box and just install 'Nu-Link Driver (IAR)' to update Nuvoton device
database in IAR.
https://github.com/OpenNuvoton/NuMaker-mbed-docs/blob/master/IAR/DEBUG_IAR.md
2019-04-02 10:09:18 +08:00
Cruz Monrreal
136e0e32de
Merge pull request #10276 from theotherjimmy/armc6-parse
...
Parse Errors and Warnings from Arm Compiler 6
2019-04-01 17:04:54 -05:00
Cruz Monrreal
594a1d180b
Merge pull request #10218 from kfnta/tfm_auto_src_gen
...
PSA - TFM manfiest scan
2019-03-29 17:59:44 -05:00
Jimmy Brisson
992cb26209
Parse errors and warnings with ARMC6
2019-03-29 12:00:44 -05:00
Laurent Meunier
7afad64886
STM32WB55RG: Add board declaration in tools
...
In travis build and in SW4STM32 exporter
2019-03-29 16:21:42 +01:00
Cruz Monrreal
0a088a6f4d
Merge pull request #10200 from studavekar/vscode-gcc-ver
...
update vscode default gcc arm version to 6-2017-q1-update
2019-03-29 10:15:53 -05:00
Brian Daniels
63ea3ebe00
Apply suggestions from code review
...
Co-Authored-By: theotherjimmy <theotherjimmy@gmail.com>
2019-03-28 17:25:04 -05:00
Cruz Monrreal
6fccfeb98e
Merge pull request #10234 from theotherjimmy/update-cpm-index-0.2.4
...
Update flash algo default with CPM 0.2.4
2019-03-28 17:07:26 -05:00
Jimmy Brisson
0bfbd09de3
Correct Python 3 errors and lint warnings in build_release.py
...
### Description
I think this file is still used, and it's about time we updated it for
compatibility with python3. While I was in there, I fixed all of the
linter warnings, so that it's easier to spot bad code.
### Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
2019-03-28 11:23:31 -05:00
Brian Daniels
84e4386693
Break up large prints from --supported
2019-03-28 10:58:56 -05:00
Oren Cohen
2bce25750d
Add {# End of file #} for TF-M templates
2019-03-28 10:40:57 +02:00
Oren Cohen
355dd5a3ee
TFM autogen scan the entire tree
2019-03-28 10:40:56 +02:00
Brian Daniels
51c1bd35a0
Fixing path comparisons on Windows
2019-03-27 14:08:42 -05:00
Jimmy Brisson
12e5596627
Allow both path seperator types in flash algo names
2019-03-27 08:56:46 -05:00
jk
cc6c4778da
added sectors information
2019-03-27 17:02:56 +09:00
jk
f93c43ea64
added STM32F767VI
2019-03-27 17:02:56 +09:00
Cruz Monrreal
7e7f4f561b
Merge pull request #10070 from kfnta/tool_options
...
PSA more options in release tool
2019-03-27 00:37:14 -05:00
Cruz Monrreal
cfdb72b94f
Merge pull request #10182 from lrusinowicz/armc6_assembler_win7_workaround
...
Workaround for ARMC6 Windows 7 assembler issue
2019-03-27 00:23:05 -05:00
Cruz Monrreal
c2e5a8bb75
Merge pull request #10131 from kegilbert/baremetal-blinky-examples-test
...
Add baremetal example to testing
2019-03-27 00:22:07 -05:00
Jimmy Brisson
4317f0b5f8
Update flash algo default with CPM 0.2.4
...
### Description
Cmsis Pack Manager 0.2.4 corrected parsing of specifically the flash
algorithm default attribute. It was allowed to be "0", "1", "true"
and "false". CPM 0.2.3 parsed "1" into false, and this behavior was
corrected in 0.2.4.
This PR uses 0.2.4 to update the index.
### Pull request type
[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change
2019-03-26 09:53:38 -05:00
Oren Cohen
42a9d485e7
Set default value of extra args to []
2019-03-26 13:53:31 +02:00
Oren Cohen
d012b3a5f5
Missing docstring
2019-03-26 10:54:47 +02:00
Oren Cohen
6d64c85b6c
Specify extra args with -x and verbose_check_call
2019-03-26 10:52:46 +02:00
Oren Cohen
ef19ade249
Revert back to direct calls to python
2019-03-26 10:52:46 +02:00
Oren Cohen
e8165fdaa8
small fix
2019-03-26 10:52:45 +02:00
Oren Cohen
03c0302850
Add list option
2019-03-26 10:48:16 +02:00
Oren Cohen
aa21d36f51
Docs update
2019-03-26 10:48:16 +02:00
Oren Cohen
654882453b
Refactor
...
* Use default image command generator.
* Call directly to mbed-cli.
* Add --skip-tests.
2019-03-26 10:48:16 +02:00
Oren Cohen
16bcd5f8e3
List PSA secure platform and add choices option
2019-03-26 10:48:16 +02:00
Oren Cohen
10708f1991
Overhaul logging and verbosity
...
* Default verbose
* -q for quiet build with minimal status prints
2019-03-26 10:48:16 +02:00
ccli8
da7035eb6b
Fix MBED_RAM_START/MBED_RAM_SIZE symbol generation
...
1. Fix MBED_RAM_START/MBED_RAM_SIZE are not generated when there are
target.mbed_ram_start/target.mbed_ram_size overrides
2. Fix MBED_RAM_START/MBED_RAM_SIZE are duplicated.
2019-03-26 09:34:59 +08:00
Brian Daniels
b95732a1b5
get_mbed_official_release respects supported_toolchains
2019-03-23 18:24:59 -05:00
Brian Daniels
0f1bd76c01
Add link for ARMC5 warning
2019-03-23 18:24:59 -05:00
Brian Daniels
b94c4189b7
Updating supported toolchain printing with new options
2019-03-23 18:24:58 -05:00
Brian Daniels
1c31d365c2
Add ARMC5 as an option for the -t argument
2019-03-23 18:24:58 -05:00
Brian Daniels
b809ec6226
Make args_erroor less verbose.
...
This removes the arugment help from the output, making the error much
easier to find. This solves #10090 .
2019-03-23 18:24:58 -05:00
Brian Daniels
2b4960bffe
Front-end scripts now use the ARM toolchain fallback.
...
Some unused imports were removed as well as some general clean up.
2019-03-23 18:24:58 -05:00
Brian Daniels
04e90c278c
ARMC5 is supported if a target lists ARM as a supported_toolchain
2019-03-23 18:24:58 -05:00
Brian Daniels
6f5a3c3e8d
Add functions to enable ARM fallback to ARMC5.
...
There are two new functions: get_valid_toolchain_names and
find_valid_toolchain. These functions are used to figure out if a
fallback is possible and necessary. find_valid_toolchain is expected to
be used by the front-end scripts.
get_toolchain_name was updated with some different logic and comments.
2019-03-23 18:24:58 -05:00
Brian Daniels
08d9e32e63
Add utility functions and Exceptions
...
These functions will be used to handle some of the error state and
warning messages produced when the scripts attempt to select a valid
toolchain.
2019-03-23 18:24:57 -05:00
Brian Daniels
a8032db48a
Whitespace clean up
2019-03-23 18:24:57 -05:00
Cruz Monrreal
4e514ae3c5
Merge pull request #10199 from bridadan/fix_cores_in_uvision
...
Fix the removal of Mbed-added core flags in uvision exporter
2019-03-23 18:03:38 -05:00
Brian Daniels
f56bf8f689
Fix the removal of Mbed-added core flags in uvision exporter
2019-03-23 15:39:06 -05:00
Martin Kojtal
aca0f2f48e
Merge pull request #10114 from bridadan/armc6_mbed_ide
...
Allow the use of Mbed Studio's version of ARMC6
2019-03-23 16:30:01 +01:00
studavekar
31d4ea8722
update gcc arm version to 6-2017-q1-update
2019-03-22 13:48:46 -05:00
kegilbert
ac2a52a429
Remove gnuarmeclipse from baremetal export testing
...
baremetal does not currently work with gnuarmeclipse
2019-03-22 09:17:24 -05:00
Leszek Rusinowicz
8d8cf1acc3
Workaround for ARMC6 Windows 7 assembler issue
...
On Windows 7 using --preproc option in ARMC6 assembler doesn't work
when -MD option is also specified. Compiler creates incorrect filename for
dependency file and compilation files.
To workaround this issue, this change returns to using a temporary file and
separately calling preprocessor and assembler (as in a case of ARMC5).
2019-03-21 23:04:32 +01:00
Brian Daniels
e382b5034a
Add comments about the proper use of specific ARMC6 arguments
2019-03-21 16:24:44 -05:00
Oren Cohen
021faf24cd
Merge remote-tracking branch 'jimmy/targets-json-sectors' into rollup
2019-03-21 18:19:12 +02:00
Oren Cohen
4554258723
Merge remote-tracking branch 'jimmy/send-ram-cykit' into rollup
2019-03-21 18:18:51 +02:00
Jimmy Brisson
03f9a0cd23
Configure sector information in targets.json
2019-03-21 10:04:19 -05:00
Jimmy Brisson
c475a4a995
Fall back to target.json memories when CMSIS has empty memories
2019-03-21 09:42:47 -05:00
Oren Cohen
19f68d82a9
Remove cypress targets from CPM
2019-03-21 15:48:05 +02:00
Oren Cohen
ee9daecda5
Add RAM regions for cypress platforms
2019-03-21 15:13:02 +02:00
Kevin Gilbert
8084fd91af
Add baremetal example to testing
2019-03-20 18:04:33 -05:00
Cruz Monrreal
2192a8796e
Merge pull request #10173 from theotherjimmy/exclude-requires
...
Collect excluded libraries into ignored_dirs
2019-03-20 16:37:50 -05:00
Jimmy Brisson
41c1553d75
Collect excluded libraries into ignored_dirs
2019-03-20 09:01:38 -05:00
Jimmy Brisson
d331539853
Test that excluded libraries are correctly collected
2019-03-20 09:01:27 -05:00
Brian Daniels
6e629ded84
Version check the compiler in all build functions
...
This enables the use of Mbed Studio's version of ARMC6.
2019-03-19 17:37:55 -05:00
Brian Daniels
9824c3ccc3
Clean up some whitespace
2019-03-19 17:37:18 -05:00
Brian Daniels
c4a9fb3851
Test detection of Mbed Studio version of ARMC6
2019-03-19 17:36:28 -05:00
Brian Daniels
b13570907e
Remove stray prints and whitespace
2019-03-19 17:36:02 -05:00
Brian Daniels
bc06c535d0
Conditionally enable --ide=mbed from ARMC6 based on compiler version.
...
If the Mbed Studio build of ARMC6 is found, add the --ide=mbed to all
necessary executables.
2019-03-19 17:33:40 -05:00
Brian Daniels
9ac08e6313
Whitespace clean up
2019-03-19 17:33:09 -05:00
Jimmy Brisson
dabad7a074
Deduplicate RAM defines to linker command line
2019-03-19 13:38:45 -05:00
Jimmy Brisson
c37a31c5d4
Use PSA overrides for RAM
2019-03-19 13:38:44 -05:00
Jimmy Brisson
0bb3031ef2
Deduplicate MBED_ROM_xxxx defines on IAR linker command line
2019-03-19 09:17:52 -05:00
Martin Kojtal
a23d105dd2
Merge pull request #10105 from VeijoPesonen/esp32_app_config
...
test_configs: generic app config for boards with Wi-Fi
2019-03-19 09:30:00 +01:00
Martin Kojtal
e665df9c47
Merge pull request #10045 from bridadan/uvision_exporter_fixes
...
Uvision exporter fixes for Python 3, CPM updates, and Windows path issues
2019-03-18 08:12:47 +01:00
Cruz Monrreal
2b7fee3fbe
Merge pull request #10118 from arskanov/master
...
Selectively append changes to exported config files
2019-03-16 23:01:29 -05:00
Cruz Monrreal
241e6d2b46
Merge pull request #10065 from theotherjimmy/fix-postbuild-restrictions
...
Correct post-build-hook detection logic
2019-03-16 22:58:58 -05:00
Cruz Monrreal
97204b6914
Merge pull request #9964 from bridadan/fix_references_to_basestring
...
Add imports of basestring for python 3
2019-03-16 22:55:37 -05:00
David Saada
eb5cef84fd
Add bootloader support for the LPC55S69 board
...
bla
2019-03-16 00:13:40 +02:00
Martin Kojtal
35e30e1b70
Merge pull request #10113 from theotherjimmy/use-ns-rom-in-bl
...
Use secure/non-secure rom for bl modes
2019-03-15 21:19:54 +01:00
Artturi Ramanen
19562fff30
Selectively append changes to exported config files
...
In case of a non-overwriting change to an exported config file
the previous logic appended a new block of text to the previous file
every time the to-be-written block of text was not exactly matched.
This parses the old config file and the to-be-written changes into
sets, which can then be compared. If all of the incoming lines are
found in the old config file set, no changes are made. If some
incoming lines are not found in the old config file, only these are
appended.
2019-03-15 12:07:02 +02:00
Martin Kojtal
cde7d0be58
Merge pull request #10068 from NXPmicro/Add_LPC55S96_Exporter_Support
...
LPC55S69: Add IAR and uvision exporter support
2019-03-15 09:32:40 +01:00
Jimmy Brisson
e798276917
Override rom used by managed bootloader with PSA roms
2019-03-14 14:41:51 -05:00
Jimmy Brisson
10c6a277d3
Test that secure/non-secure memories are passed
...
To managed bootloader mode
2019-03-14 14:33:29 -05:00
Jimmy Brisson
a666e976a2
Clean all lint errors in configuration system
2019-03-14 12:15:34 -05:00
Veijo Pesonen
cf530877ac
test_configs: generic app config for boards with Wi-Fi
2019-03-14 17:31:48 +02:00
Yossi Levy
2c400b611e
Updating address of secure and non secure rom in CY8CKIT_062_WIFI_BT_PSA index.json file
2019-03-14 14:26:23 +02:00
Yossi Levy
b401e99bda
Updating Cypress CY8CKIT_062_WIFI_BT_PSA and CY8CKIT_062_BLE device name
2019-03-14 14:26:23 +02:00
Yossi Levy
dd27a3400b
mbed-os to support bootlader for Cypress CY8CKIT_062_WIFI_BT_PSA and CY8CKIT_062_BLE
2019-03-14 14:26:23 +02:00
Mahesh Mahadevan
3da7c6f3c0
Update to provide the right device name in the Asymmetric case
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-03-14 07:24:19 -05:00
Mahesh Mahadevan
83eed9eb78
LPC55S69: Add IAR and uvision exporter support
...
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-03-14 07:19:15 -05:00
Martin Kojtal
4c7fc650db
Merge pull request #9994 from theotherjimmy/fix-iar-dfpu
...
Correct FPU settings traceback found by IAR
2019-03-14 09:10:13 +01:00
Martin Kojtal
79c7fc8b54
Merge pull request #10044 from bridadan/remove_dep_on_armc6_in_path
...
Correct check for the ARM toolchain binary in the PATH.
2019-03-14 09:09:59 +01:00
Brian Daniels
f200c2757b
Make the presence of cmsis-pack-manager package optional
2019-03-13 17:17:10 -05:00
Jimmy Brisson
5912241b8d
Clean up all lint warnings in targets
2019-03-12 11:31:02 -05:00
Jimmy Brisson
59d35e36d2
Simplify conditions with get and getattr optional arguments
2019-03-12 11:31:02 -05:00
Jimmy Brisson
28c909c92f
Explicitly return None
2019-03-12 11:31:00 -05:00
Jimmy Brisson
7380451f6e
Correct post-build filtering options
2019-03-12 11:30:12 -05:00
Oren Cohen
963dd62524
Bugfix: send the correct parameter to _get_target_info()
2019-03-12 10:02:33 +02:00
Cruz Monrreal
7661d2d913
Merge pull request #10031 from adbridge/master
...
Add new mbed-os-example-attestation example
2019-03-11 19:24:43 -05:00
Cruz Monrreal
1471b4c130
Merge pull request #10041 from netanelgonen/Fix_include_mbedtls
...
Fix include in psa compliance tests to mbedtls config file
2019-03-11 19:19:40 -05:00
Brian Daniels
5ea3b32851
Fixing uvision exporter with CPM updates
2019-03-11 19:09:09 -05:00
Brian Daniels
00f204fce5
Ensure all exported paths use Posix style separators.
...
mbed_config.h is a file that is placed in your project root when you
export. This allows the configuration to be used by your IDE. When this
file already exists (due to a previous export), it changed the compiler
include option on Windows from "-include mbed_config.h" to "-include
.\mbed_config.h". The "\" character was interpreted as an escape
character "\m" and broke the build. This converts all resource paths to
use the Posix path separator "/" before writing project files to avoid
this issue.
2019-03-11 19:09:08 -05:00
Brian Daniels
1920212314
Fix include paths for uvision when exported with Python 3.
...
The call to encode() was causing the include paths to be placed in the
uvision product file with the prefix "b'" and the postfix "'". This
broke the parsing of this file and broke the build.
2019-03-11 19:09:07 -05:00
Brian Daniels
cd96b21370
Correct check for the ARM toolchain binary in the PATH.
...
The compiler used for the ARM toolchain changes depending on the target.
This changes the front end scripts to do the proper toolchain look up
before checking the system PATH for the compiler executable. The tools
were always checking for the ARMC5 compiler, now it should check for the
right version.
2019-03-11 19:04:32 -05:00
Alexander Zilberkant
0f5147c8b9
remove hidden tad
...
Co-Authored-By: netanelgonen <netanel.gonen@arm.com>
2019-03-11 19:30:51 +02:00
Netanel Gonen
24244b5a29
update crypto complience tests importer, fix include to mbedtls config
2019-03-11 19:06:29 +02:00
Oren Cohen
dad75b55f6
Minor changes fixing the script from getting stuck
...
* git diff of bin/hex files could be huge print and make
* calling python unbuffered with stdout=subprocess.PIPE could be problematic
2019-03-11 17:49:28 +02:00
Martin Kojtal
83d70199d1
Merge pull request #10027 from kfnta/tfm_fix_ftype
...
TF-M patch: Handle extended stack frame in tfm_svcall_psa_call
2019-03-11 15:48:49 +01:00
adbridge
34ae13dd48
Fix cut/paste error in the new example github link
2019-03-11 12:09:48 +00:00
adbridge
9432d45746
Looks like only the LPC55S69_NS flavour of target is required.
2019-03-11 11:57:56 +00:00