Commit Graph

3074 Commits (544eb82a477e5ca43a9cc2f94e9d689a7bbc5265)

Author SHA1 Message Date
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