Commit Graph

2950 Commits (tools-release-5.12.3)

Author SHA1 Message Date
Jimmy Brisson a8e5a4cb0f Enable Legacy Builds 2019-05-09 15:52:21 +01:00
Alexander Zilberkant 7bc5f1a499 Update PSA tools Readme 2019-05-03 12:47:32 +01:00
Alexander Zilberkant 3e91a89c0d 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-05-03 12:47:01 +01:00
Alexander Zilberkant 4d0f429e7e 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-05-03 12:37:24 +01:00
Alexander Zilberkant 932aebe5b3 Add Cortex-M33E to cpu conversion table for ARMC6 2019-05-03 12:24:48 +01:00
Alexander Zilberkant 6d4b905279 Handle Cortex-M33E no-fpu flags
Add compilation "-mfpu=none" flag for Cortex-M33E.
2019-05-03 12:24:48 +01:00
Oren Cohen bdb63a0713 Fix armclang fpu detection 2019-05-03 12:24:48 +01:00
fred.li 31a3e68fc1 remove blank line 2019-05-03 12:24:48 +01:00
fred.li 807ed533f6 Size should be calculate after confirm the start address 2019-05-03 12:24:48 +01:00
Veijo Pesonen 134542eb57 Wi-SUN: adds greentea test config 2019-05-03 12:24:48 +01:00
Brian Daniels b99f3c1549 Fix for downloading the wrong binary in the online compiler 2019-05-03 12:24:48 +01:00
Oren Cohen 61b441e57f Update commit sha's 2019-05-03 12:24:48 +01:00
Mahesh Mahadevan ccba7a6161 MIMXRT1050: Readd IAR support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-05-03 12:24:48 +01:00
ccli8 0cb20e6f69 Pass TFM_LVL macro to linker files
With this, single linker file can support different TFM security levels.
2019-05-03 12:24:48 +01:00
Kevin Bracey 94bca9f516 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-05-03 12:24:48 +01:00
Kevin Bracey ebab23ccef 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-05-03 12:24:48 +01:00
Oren Cohen 0c71ca0a8f 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-05-03 12:24:48 +01:00
Oren Cohen 60aabaee8e Update commit sha's 2019-04-24 13:49:38 +01:00
Oren Cohen 39c1f6bfa0 Remove outdated patch 2019-04-24 13:48:02 +01:00
j3hill 0663378d96 Update CMSIS pack manager to properly handle OSError 2019-04-24 13:37:42 +01:00
Brian Daniels 42b1d7f28a Fixing default algorithms in cmsis pack index 2019-04-24 13:37:42 +01:00
Cruz Monrreal II dc4aa42e86 Fixed status reporting. 'tr' command wasn't doing any replacement 2019-04-24 13:37:42 +01:00
Cruz Monrreal II a4b59fe119 Fixed shellcheck issues found in functions.sh Added comments to functions 2019-04-24 13:37:42 +01:00
Cruz Monrreal II 7a36f93bf5 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-24 13:37:42 +01:00
Cruz Monrreal II 8be769ab9e Re-enabled PR status reporting. Added external bash file to source functions from 2019-04-24 13:37:42 +01:00
Brian Daniels 3b89599bb3 Apply suggestions from code review
Co-Authored-By: theotherjimmy <theotherjimmy@gmail.com>
2019-04-24 13:37:42 +01:00
Brian Daniels ff47253b85 Apply suggestions from code review
Co-Authored-By: theotherjimmy <theotherjimmy@gmail.com>
2019-04-24 13:37:42 +01:00
Jimmy Brisson 98d076d1b2 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-04-24 13:37:42 +01:00
Brian Daniels f594860c4f Fix detection of supported targets for mbed 2 builds 2019-04-24 13:37:42 +01:00
Jimmy Brisson ed72b448c4 Fix the bug that travis caught 2019-04-24 13:37:42 +01:00
Jimmy Brisson d9b3de3584 Parse section starts beginning with whitespace 2019-04-24 13:37:42 +01:00
Jimmy Brisson 9efccffa02 Correct all linting errors 2019-04-24 13:37:42 +01:00
Brian Daniels af73a39440 Make files call the linker from the build dir, so correct the path 2019-04-24 13:37:42 +01:00
Brian Daniels 9c7175fa8f Correct call to add_file_ref 2019-04-24 13:37:42 +01:00
Brian Daniels c10528b5d5 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-24 13:37:42 +01:00
Brian Daniels 6774caf6d8 Test to ensure only the last linker file is used in a project 2019-04-24 13:37:42 +01:00
Naveen Kaje c3fa5252e5 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-24 13:37:42 +01:00
Brian Daniels 5251ec69ac Remove outdated projectfiles case for makefiles 2019-04-24 13:37:42 +01:00
Brian Daniels 5ceedf11ec 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-24 13:37:42 +01:00
Brian Daniels a21c0611da Fixing copying of static filerefs 2019-04-24 13:37:42 +01:00
Brian Daniels 286a3690bf Add c_cpp_properties file to gen_files for zipping 2019-04-24 13:37:42 +01:00
Brian Daniels e29f9838f3 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-24 13:37:42 +01:00
Brian Daniels dac6e3c1be Fix incorrect reference to a filetype 2019-04-24 13:37:42 +01:00
Brian Daniels 44fad8467d 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-24 13:37:42 +01:00
Brian Daniels 7ec8ce4445 Fixing path comparisons on Windows 2019-04-24 13:37:42 +01:00
Aleksi Klasila 8786f4c692 rm ["python", "-m"] from build_command 2019-04-24 13:37:42 +01:00
alekla01 c923ae3eac examples test compile optional verbose 2019-04-24 13:37:42 +01:00
Brian Daniels b8ed898642 Break up large prints from --supported 2019-04-24 13:37:42 +01:00
Brian Daniels 39205aed8b Allow toolchain paths to be wrapped in quotes 2019-04-24 13:37:42 +01:00
Oren Cohen 69ee1efa9d Check that required toolchains are in PATH 2019-04-24 13:37:42 +01:00