Commit Graph

3337 Commits (69a2803319998cf637f1b4c4f8d53de4c3645f99)

Author SHA1 Message Date
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
adbridge 618d31bb2b Remove unecessary _S and _NS target variants from new example 2019-03-11 11:48:00 +00:00
adbridge af540936be Add new mbed-os-example-attestation example 2019-03-11 11:27:49 +00:00
Martin Kojtal ba24cb2875
Merge pull request #10010 from kfnta/psa_tools_docs_update
Update PSA tools
2019-03-11 11:55:34 +01:00
Michael Schwarcz 40bfa05797 Update tfm_importer.json 2019-03-11 11:57:50 +02:00
Oren Cohen f534caa4c7
Enhancements
* Replace call with check_call to throw exception on failure
* Check if binaries actually been changes before calling git commit
* Docstrings for all functions
* Small refactor
2019-03-10 21:39:10 +02:00
Oren Cohen 92cc3d0bcb Add git commit option 2019-03-10 17:10:50 +02:00
Oren Cohen 91dabb535a Update docs for PSA tools 2019-03-10 17:10:48 +02:00
Netanel Gonen d1aff16cd6 add needed crypto macros to secure side 2019-03-10 15:06:51 +02:00
Martin Kojtal b9c214b165
Merge pull request #10002 from kegilbert/psa_baremetal_fix
Disable PSA in baremetal profiles
2019-03-08 21:15:30 +01:00
Michael Schwarcz 401580f364 LPC55S69: Change post-build hook to create HEX 2019-03-08 07:33:48 -06:00
Michael Schwarcz ebd9dc83f7 LPC55S69: Use find_secure_image in post-build and add prebuilt secure images 2019-03-08 07:33:48 -06:00
Mahesh Mahadevan 4573d22299 LPC55S69: Add post processing script
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2019-03-08 07:33:47 -06:00
Martin Kojtal b582c54a5f
Merge pull request #10001 from kfnta/psa_release_build_profile
PSA: release.py - add build profile
2019-03-08 13:03:33 +01:00
Martin Kojtal 820a2e284d
Merge pull request #9908 from morser499/pr/cy-mbed-os-5.12.0
Pr/cy mbed os 5.12.0
2019-03-08 11:01:41 +01:00
Martin Kojtal d97902bf4d
Merge pull request #9989 from theotherjimmy/test-sector-info
Test for and Recompute sector information for all targets
2019-03-08 06:58:09 +01:00
kegilbert 3fd32884c3 Allow baremetal to build by removing PSA 2019-03-07 16:41:58 -06:00
Oren Cohen 9a3ab4983e
Add build profile option
Default set to release
2019-03-07 23:54:52 +02:00
Jimmy Brisson 35479e8111 Correct FPU settings traceback found by IAR
Fixes #9974

The error was that the Asymmetric CPUs were assumed to have the same
structure as the Symmetric CPUs. This is clearly false.

This PR changes the FPU detection of Asymmetric CPUs to find the correct
core and use it's cpu settings.

    [x] Fix
    [ ] Refactor
    [ ] Target update
    [ ] Functionality change
    [ ] Docs update
    [ ] Test update
    [ ] Breaking change
2019-03-07 14:06:50 -06:00
Oleg Kapshii aedec74b9a Added support for PSA target to WIFI_BT board
Added WiFi_Bt CM4 PSA target in mbedos json
Added SPE-NSPE mailbox initialization for CM4 SystemInit
Made similar to FUTURE_SEQUANA configurations
Copied FUTURE_SEQUANA CM0 SPM part for WiFi_Bt smoke test
Added CY8CKIT_062_WIFI_BT_M0 and CY8CKIT_062_WIFI_BT_M0_PSA targets
Sorted files for new CY8CKIT_062_WIFI_BT_M0 and CY8CKIT_062_WIFI_BT_M0_PSA targets
Copied files for CY8CKIT_062_WIFI_BT_M0_PSA from FUTURE_SEQUANA
Copied and updated cm0p start files
Corrected according to FUTURE_SEQUANA
Changes to M0 startup files to have SPM started
Fixed implicit declaration warning
Commented interrupts enabling according to FUTURE_SEQUANA flow
Updated prebuild spm_smore CM0 hex for CM4 target
Turned on greentea environment
Used special memory region for common CM0/CM4 data
Updated prebuild CM0 SPM hex
Placed shared memory region for flash operations into SPM shared memory region
Updated cyprotection code and configuration
Start address of protected regions is set by a defined number from target.json
Added masters pcMask configuration
Added support for PSA target to WIFI_BT board
Enabled resources protection for SPM
Aligned RAM usage according to Cypress FlashBoot and CyBootloader
alligned protection config
Added CYW943012P6EVB_01_M0 target
Enlarged heap size, remobed nv_seed
Added heap reservation in linker script from mbed-os
Removed heap size definition
turned on nv_seed config
Removed nv_seed macros
Enabled protection for PSoC6 CM0
Added PSoC6 CM0 PSA readme
Enabled mbed_hal-spm test
Enabled nv_seed and removed unneeded ipc config define
Added SPDX string to feature_ble cypress target files
Removed unneeded supported_toolchains lines for Cypress targets
Disabled protection settings
Corrected flash initialization for PSoC6 CM0 PSA
Changed PSoC6 IPC6 protection for flash
Enabled special flash initialization and enabled protection settings
Updated and added new prebuild PSoC6 CM0 PSA hex files
Disabled HW TRNG and CRC for PSoC6 CM4 PSA target
Added missing const to allow types to match
Updated PSoC6 WIFI_BT_PSA prebuilt directory
Moved PSoC6 shared section usage area definition to begin of ld
Added initial ARM_STD linker and startup files for PSoC6 CM0
Added initial IAR linker and startup files for PSoC6 CM0
Added defines to disable some SPM protection settings for PSoC64
Moved Flash function variables into separate memory region
Added defines for new Public area definition
Updated PSoC6 CM0_PSA hex-files
2019-03-07 08:40:20 -08:00
Cruz Monrreal 277c91f3b7
Merge pull request #9978 from kfnta/psa_release_tool_fix
PSA: Fix psa/release.py tool
2019-03-07 10:33:34 -06:00
Cruz Monrreal 5c0d226dde
Merge pull request #9953 from kfnta/mock_fix
PSA: automatic mocking of PSA targets in test builds
2019-03-07 10:13:23 -06:00
Jimmy Brisson f4d4d8be77 Recompute sector information for Nuvoton 2019-03-07 10:08:32 -06:00
Jimmy Brisson 4295891dd3 Add dummy sector information for R7S72100 2019-03-07 10:07:57 -06:00
Jimmy Brisson efbcbc7e07 Recompute sector information for STM32xxxxx 2019-03-07 10:07:54 -06:00
Cruz Monrreal a87c7c82f3
Merge pull request #9312 from kfnta/psa_compliance
PSA compliance tests suite
2019-03-07 09:14:58 -06:00
Jimmy Brisson 7a3ccf9518 Test for sector information 2019-03-07 09:05:59 -06:00
Oren Cohen 1b26cb7edf Fix tool 2019-03-07 15:22:17 +02:00
Nir Sonnenschein aedc1e10ea
Merge pull request #9963 from kfnta/psa_tools_docs
PSA tools docs
2019-03-07 12:03:21 +02:00
Amanda Butler f4a3d263ad
Edit README.md
Edit file for minor grammar and style tweaks, mostly for consistent capitalization and tense across docs.
2019-03-06 18:39:56 -06:00
Oren Cohen 43e819e785
Fix typo 2019-03-07 01:08:24 +02:00
Cruz Monrreal 120e43ed14
Merge pull request #9928 from kfnta/secure_release
Secure binaries release script
2019-03-06 16:57:32 -06:00
Oren Cohen 6695c22634
Remove python from code block 2019-03-06 23:21:09 +02:00
Cruz Monrreal f05a343678
Merge pull request #9894 from kfnta/find_secure_image
PSA tools: Find secure image at post-build
2019-03-06 13:45:13 -06:00
Oren Cohen b2c1fe0e31 Add README.md for tools/psa 2019-03-06 18:30:34 +02:00
Brian Daniels 0105395be2 Add imports of basestring for python 3 2019-03-06 09:33:02 -06:00
Martin Kojtal c37ac83e8e
Merge pull request #8757 from theotherjimmy/use-cpm
Update Cmsis-pack-manager to 0.2.3
2019-03-06 15:58:42 +01:00
Martin Kojtal f236125c74
Merge pull request #9918 from kfnta/unify_psa_generators
Unify PSA code generators
2019-03-06 15:39:49 +01:00
Michael Schwarcz 1f7a829e62 Compare non-secure image name without extension
- For cases where non-secure image is HEX and secure image is BIN
2019-03-06 16:38:45 +02:00
Martin Kojtal 9d72a5cf79
Merge pull request #9738 from theotherjimmy/reorder-bl-hooks
Tools: Reoder post-build hooks and bl merging
2019-03-06 13:02:45 +01:00
Oren Cohen 39e5ccf3e2 Remove _NS & _PSA from test_spec.json 2019-03-06 13:13:56 +02:00
Nir Sonnenschein 376e7ffe19 update importer hashes for latest changes 2019-03-06 10:58:03 +02:00
Michael Schwarcz f15505714a Add missing license header 2019-03-06 10:41:22 +02:00
Brian Daniels c129336453 Fix include paths for the assembler for makefiles.
The Makefile is run from the build directory. The source files were
properly prefixed with "../", however the paths provided to the
assmebler were not. This ensures the assembler include paths are
prefixed properly.
2019-03-05 15:13:37 -06:00
Jimmy Brisson a045c45996 Remove prints and lint warnings 2019-03-05 11:10:51 -06:00
Nir Sonnenschein 7fa275c85f update importer hashes for latest fixes 2019-03-05 17:34:47 +02:00
Martin Kojtal 812812a626 nuvoton m2351: fix RAM regions - only one RAM1
Revert latest change to index. Linker scripts follow one RAM region. If index is updated,
requires further changes in the target that should be done separately.
2019-03-05 09:49:59 +00:00
Jimmy Brisson 288fc2fb1c Manually re-combine NUMAKER_PFM_M2351 memories 2019-03-04 16:53:02 -06:00
Jimmy Brisson a69e2b45ff Recompute Numaker PFM M2351 sectors 2019-03-04 13:28:11 -06:00
Jimmy Brisson c9b613c2fe Remove unused import patch 2019-03-04 11:36:36 -06:00
Jimmy Brisson 1f4c2710b1 Add SPDX identifier to liscense in "new" file 2019-03-04 11:36:36 -06:00
Jimmy Brisson c9674dc7f8 Fix pylint in iar.py except for the long regex 2019-03-04 11:36:36 -06:00
Jimmy Brisson 1712506de2 Fix pylint warnings in gcc.py except for the long regex 2019-03-04 11:36:36 -06:00
Jimmy Brisson 5dd149cb13 Fix formatting erros in arm.py
except for the extremely long regex
2019-03-04 11:36:36 -06:00
Jimmy Brisson a2fcdba040 Move toolchain base class into another file 2019-03-04 11:32:16 -06:00
Jimmy Brisson b0b43c27bf Correct all pylint warnings and errors except 4
The 4 remaining are related to the fact that __init__.py defines a base class.
They'll be removed next commit
2019-03-04 11:32:16 -06:00
Jimmy Brisson 7a55bc7b0c Prevent "Image: None" in log 2019-03-04 11:32:16 -06:00
Jimmy Brisson 98a7bfcdcc Define filename when OUTPUT_EXT is elf 2019-03-04 11:32:16 -06:00
Jimmy Brisson 9c9e0595f2 Add SPDX identifier 2019-03-04 11:32:15 -06:00
Jimmy Brisson cd20c37cdc Drop unused variable from link_program 2019-03-04 11:32:15 -06:00
Jimmy Brisson 3353722d36 Correct use before definition bug in ARM 2019-03-04 11:32:15 -06:00
Jimmy Brisson a007212602 Remove use of hooks from IAR
Aparantely I missed this previously
2019-03-04 11:32:15 -06:00
Jimmy Brisson 58867c052e Correct test import locations
A few functions moved into their own module
2019-03-04 11:32:15 -06:00
Jimmy Brisson 4cac89c22b Reorder post-build and managed bootloader mode merging
Priously, post-bulid was run before the merge from managed bootloader mode.
This renders many post-build scripts less than useful, as most of them
compute a digest of the ROM image generated in a build.

This reorders the post-build scripts to come after the managed bootloader
mode so that post-build script digests are useful again.
2019-03-04 11:30:49 -06:00
Jimmy Brisson aeeb43fb3c Simplify hook tool implementation
The "hook tools" were capable of hooking into many commands run by the build system.
To my knowlage, the only hook is the "post-build-hook". The post build hook could be
easier to reason about if the implementation is specialized for just post-build
hooking.

This commit make it much easier to point out where post build hooks are called by
making the call explicit.
2019-03-04 11:30:49 -06:00
Jimmy Brisson 643b5785a5 Recreate STM32F439ZITx sector information 2019-03-04 11:24:48 -06:00
Jimmy Brisson fd63f5bde5 Correct python3 bug in gerenate index 2019-03-04 11:24:48 -06:00
Jimmy Brisson 1e5b83262a Recompute sector information for STM32F429ZITx 2019-03-04 11:24:47 -06:00
Jimmy Brisson c5bbfb2d51 Correct name of K22F 2019-03-04 11:24:47 -06:00
Jimmy Brisson 049ee2df4d Add old name for STM32H743ZI 2019-03-04 11:24:47 -06:00
Jimmy Brisson 859949fc74 Update index to include vendor information 2019-03-04 11:24:47 -06:00
Jimmy Brisson 8d7c15ee35 Use device variant in uvision export 2019-03-04 11:24:47 -06:00
Jimmy Brisson 9de37ec39c Correct uvisionn export 2019-03-04 11:24:47 -06:00
Brian Daniels dbbf336949 Avoid KeyError Exceptions.
Co-Authored-By: theotherjimmy <theotherjimmy@gmail.com>
2019-03-04 11:24:47 -06:00
Jimmy Brisson 4af70dcaa1 Use updated CPM info in config system 2019-03-04 11:24:47 -06:00
Jimmy Brisson aa07e126f1 Use upgrade table for unavailable CMP data 2019-03-04 11:24:47 -06:00
Jimmy Brisson 74f45fbbfc Start using CPM 2019-03-04 11:24:46 -06:00
Oren Cohen cf8ab27080 Add option to run on a single target 2019-03-04 19:11:38 +02:00
Oren Cohen 7b44834d81 Secure binaries release script
This script will find all the PSA targets and compile their secure binaries
Including test secure binaries
2019-03-04 18:42:28 +02:00
Michael Schwarcz a9fdf1f632 Add assertions and tests 2019-03-04 15:20:21 +02:00
Martin Kojtal e75794ec6e
Merge pull request #9888 from ARMmbed/feature-armc6
ARM Toolchain update to ARM Compiler 6.11(ARMC6)
2019-03-04 12:23:38 +01:00
Martin Kojtal 5c24ffefa4
Merge pull request #9915 from kfnta/tfm_import_new
Update TF-M sources
2019-03-04 10:53:12 +01:00
Oren Cohen f234a1dc5b
Unify PSA code generators 2019-03-03 21:15:49 +02:00
Michael Schwarcz f32f2ae0b0 Update tfm_importer.json with updated SHAs 2019-03-03 16:49:56 +02:00
Nir Sonnenschein b64fb53d43 [api-tests]: Updated to cb58d2c 2019-03-03 15:51:26 +02:00
Oren Cohen cfb60ec955 Fixes
* Add #include <stddef.h> to psa/client.h
* Add Attestation service to TFM
* Update FUTURE_SEQUANA_PSA secure binaries
* Remove MBED_SPM from K64F
* Refactor psa_manifest/sid.h
* Increase stackl size in spm-client tests
* Add handling of errors from psa_get in partitions
2019-03-03 13:30:58 +02:00
Michael Schwarcz e7341a98f8 tools: Add find_secure_image function
- Used by Non-secure targets post-build hooks to find
  the relevant secure image.
2019-03-03 12:35:02 +02:00
Michael Schwarcz 4eabce80b4 TF-M: Update tfm_importer.json 2019-03-03 10:55:47 +02:00
Michael Schwarcz b62c48977f Review fixes 2019-03-03 10:55:46 +02:00
Michael Schwarcz ef76ec83ee Generate psa_manifest/sid.h 2019-03-03 10:55:46 +02:00
Michael Schwarcz f9fbd6ae82 Align PSA SPM tests to TF-M 2019-03-03 10:55:42 +02:00
Oren Cohen 483b23c318 Fix SPM warnings 2019-03-03 10:54:55 +02:00
Oren Cohen 21d09b4156 Unify flags 2019-03-03 10:54:53 +02:00
Senthil Ramakrishnan e1e4456c47 Fixes for exporters failing with wrong compiler settings 2019-03-01 13:21:33 -06:00
Martin Kojtal 7ed16fbd76
Merge pull request #9892 from kfnta/psoc6_binary_hook
Update PSOC6 postbuild prints
2019-03-01 11:24:33 +01:00
Cruz Monrreal 13945c6db3
Merge pull request #9891 from deepikabhavnani/nuc472_iar8
Correct the device name for NUC472 / M453 - IAR 8
2019-02-28 19:11:54 -06:00
Cruz Monrreal 460e4e7836
Merge pull request #9817 from kegilbert/artifact_name_export
Apply artifact_name configuration parameter to exported projects
2019-02-28 18:22:28 -06:00
Cruz Monrreal aaf3ce4741
Merge pull request #9727 from pan-/optimize-size
BLE API devirtualization
2019-02-28 18:20:36 -06:00
Deepika a3c7caf3de Correct the device name for M453 2019-02-28 14:41:35 -06:00
Senthil Ramakrishnan 96c74d4dce Changes to use response files(pass includes in a file) 2019-02-28 12:03:14 -06:00
Senthil Ramakrishnan 7ced0683ad Fix for review comments and ARMC5 listing added for supported toolchain matrix output 2019-02-28 12:03:14 -06:00
Senthil Ramakrishnan f8dc7c2915 Modify tools to return ARMC5 or ARM for supported toolchain matrix 2019-02-28 12:03:14 -06:00
Senthil Ramakrishnan 51b1063195 Add right toolchains for version 2 toolchain support check 2019-02-28 12:03:14 -06:00
Senthil Ramakrishnan 8a8cff7c98 build_api.py changes to take ARMC5 into account when validating for offical target/release combination 2019-02-28 12:01:31 -06:00
Senthil Ramakrishnan 654f4d93a4 Modify ARM_STD,ARM_MICRO,ARMC6 constructors to be compatible with older versions of build tools 2019-02-28 12:00:11 -06:00
Senthil Ramakrishnan 4e7d34bbb6 Review fixes for uvision exporter,build_api and arm.py 2019-02-28 12:00:11 -06:00
Senthil Ramakrishnan 22da2be37f Update uvision exporter to capture ARMC6 as default toolchain 2019-02-28 12:00:11 -06:00
Senthil Ramakrishnan e2646407de Adding ARMC6 label for ARMC6 toolchain class 2019-02-28 12:00:11 -06:00
Senthil Ramakrishnan 378a70ca62 Fixes for test fails and code style update 2019-02-28 12:00:10 -06:00
Senthil Ramakrishnan 200829537f Remove unwanted spaces 2019-02-28 11:58:26 -06:00
Senthil Ramakrishnan 8624fdf0a7 Build metadata check added 2019-02-28 11:56:30 -06:00
Senthil Ramakrishnan 7490b1c87f Api tests modification and uLib related fixes 2019-02-28 11:55:21 -06:00
Senthil Ramakrishnan 50eb4f9da8 Build tools changes to support AC6 and AC5 2019-02-28 11:55:21 -06:00
Senthil Ramakrishnan 3956969a9f RealTek post script fix for ARMC6 2019-02-28 11:53:00 -06:00
Oren Cohen f7b6af0c1d Update PSOC6 postbuild prints 2019-02-28 18:23:03 +02:00
Deepika 01d6f38268 Correct the device name for NUC472 2019-02-28 10:03:00 -06:00
Martin Kojtal c123b98b3c
Merge pull request #9804 from aashishc1988/disable_update_cert
Provide an option to disable writing developer certificate
2019-02-27 11:13:30 +01:00
Martin Kojtal d4a07e0adb
Merge pull request #9851 from vidavidorra/feat/support-obj-in-memap
feat: add support for .obj files in memap
2019-02-27 09:48:46 +01:00
Cruz Monrreal e77f03cfbc
Merge pull request #9317 from naveenkaje/tools_bootloader_script
tools: support cases where bootloader is in chunks
2019-02-26 22:49:42 -06:00
Cruz Monrreal 4b13c8a212
Merge pull request #9768 from c1728p9/feature-hal-spec-usb-device
Bring USB Feature branch into master
2019-02-26 22:48:02 -06:00
Cruz Monrreal d29312e7ac
Merge pull request #9808 from ARMmbed/feature-iar8
IAR 8 feature branch merge
2019-02-26 15:30:27 -06:00
Aashish chaddha 294bb3a58f Modified code to stop assuming that subparser lies at certain position 2019-02-26 15:10:39 -06:00
Deepika 1ad23433f5 Remove IAR from required toolchains list 2019-02-26 10:26:13 -06:00
Jeroen de Bruijn faac445b34
feat: add support for .obj files in memap 2019-02-26 14:46:19 +01:00
Vincent Coubard c7169b0638 BLE - accept tpp extensions for header files. 2019-02-26 13:18:18 +00:00
deepikabhavnani f33fc3ae7b Set IAR version as 8.32 in tools 2019-02-26 12:53:30 +00:00
Cruz Monrreal 15ccb32d31
Merge pull request #9836 from kfnta/tfm_patch
TF-M: Fix issues found in SPM tests
2019-02-25 19:58:38 -06:00
Cruz Monrreal 22674a694d
Update tools/export/__init__.py
Co-Authored-By: kegilbert <K.Gilbert.CH@gmail.com>
2019-02-25 17:50:51 -06:00
Cruz Monrreal 044d0c9cb1
Merge pull request #9778 from michalpasztamobica/add_missing_wifi_config_params
Add missing wifi parameters to test configs
2019-02-25 17:30:36 -06:00
Cruz Monrreal 4532e41212
Merge pull request #9781 from vmedcy/psoc6-hex-align
PSOC6: correctly align hex files with split text sections
2019-02-25 17:29:14 -06:00
Jimmy Brisson da3eb5df47
Update tools/export/__init__.py
Co-Authored-By: kegilbert <K.Gilbert.CH@gmail.com>
2019-02-25 13:57:26 -06:00
Jimmy Brisson c0fbe95d54
Update tools/export/__init__.py
Co-Authored-By: kegilbert <K.Gilbert.CH@gmail.com>
2019-02-25 13:57:20 -06:00
Michal Paszta 42404be824 Change all wifi and WiFi occurences to Wi-Fi 2019-02-25 14:54:18 +02:00
Michael Schwarcz 5f2cbaa18d TFM Importer: Update SHAa of TFM patches 2019-02-25 14:36:52 +02:00
kegilbert 056b88ad0e Pull in artifact-name for exported projects 2019-02-22 17:47:13 -06:00
Russ Butler 2e7e026d2f Remove mbed 2 USB tests from Travis
Remove the mbed 2 USB tests since USB support will be part of mbed 5.
2019-02-22 10:52:32 -06:00
Aashish chaddha 151505c18e improve option names and description 2019-02-22 10:17:24 -06:00
Deepika 5501947197 Update IAR project template as per IAR 8.32
Reference template file is used from IAR8.32 installation available at path
"Embedded Workbench 8.2\arm\config\template\ConvertToIAR\template_project.ewp"

Also added trustzone configs in iar_definitions.json
2019-02-22 09:25:08 +00:00
Michal Paszta 19c6732105 Add missing wifi parameters to test configs 2019-02-22 10:13:14 +02:00
Cruz Monrreal 870bd05904
Merge pull request #9708 from davidsaada/david_protected_storage
Implement PSA protected storage & restructure PSA storage implementation
2019-02-21 17:30:56 -06:00
Cruz Monrreal 77591fbdd3
Merge pull request #9772 from kfnta/tfm_extras
Additions to TF-M source integration
2019-02-21 15:32:28 -06:00
Naveen Kaje a47cfd4ccd tools: build_api_test: Add tests to verify the processing of bootloader images
Add tests to
    1. Verify that a ConfigException is generated if application is placed
        within the bootloader region
    2. Verify that a ConfigException is generated if bootloader segments
        don't fit witin rom.
2019-02-21 15:11:45 -06:00
Naveen Kaje 4cc21820bb tools: support cases where bootloader is in chunks
Support the requirement where bootloader can be in chunks and enable
placing the application at a particular offset specified by config.
With FEATURE_BOOTLOADER support, the bootloader can be placed at a
high address. Add support to the tools so that application can be
placed in the available space before the beginning of the bootloader.
2019-02-21 15:11:44 -06:00
Aashish chaddha 21cb81e252 Provide an option to disable writing developer certificate to cloud_credentials.c 2019-02-21 13:41:58 -06:00
David Saada 41eb5cbfd9 Implement PSA protected storage & restructure PSA storage implementation
- Move all PSA storage code under psa/storage directory
- Create a global PSA error codes header, eliminating ITS specific ones
- Create a common header file for PSA storage type definitions,
  eliminating ITS specific ones
- Create a common implementation for PS & ITS
- Implement protected storage feature
- Change ITS test to be common to PS as well
2019-02-21 20:58:59 +02:00
Michael Schwarcz 7016ac7d8c Add image signing scripts from TF-M bl2 library 2019-02-21 17:42:58 +02:00
Michael Schwarcz d2c433ccfe TFM Importer: Update SHAa of TFM patches 2019-02-21 17:42:56 +02:00
Oren Cohen 8800ad5c80 TFM: Add defines to mbed_lib.json 2019-02-21 17:38:30 +02:00
Brian Daniels 434d86b08a Ensure header CRC is written as unsigned int 2019-02-20 20:30:54 -06:00
Volodymyr Medvid 534becb175 PSOC6: correctly align hex files with split text sections
When the original PSOC6 CM4 hex file contains unalinged text sections
that span through multiple intelhex segments, aligned segments (filled
with zeroes) overlap with the original data segments, resulting in
error thrown by ihex.merge(alignments, overlap='error').
Such hex file can be produced when the ELF is built with ARM MDK Compiler
with --split_sections option:
http://www.keil.com/support/man/docs/armcc/armcc_chr1359124944914.htm

Change the merge strategy to overlap='ignore', so that the overlapping
zero-filled segments are skipped.
2019-02-20 22:34:10 +02:00
Cruz Monrreal 2910ed54c1
Merge pull request #9277 from deepikabhavnani/flags_fixes
Sleep: error flags fix
2019-02-20 12:07:15 -06:00
Martin Kojtal 3aeff7ae25
Merge pull request #9765 from kfnta/asm_config
Add config header to assembly compilation
2019-02-20 11:51:57 +01:00
Martin Kojtal e59166289f
Merge pull request #9756 from vmedcy/psoc6-cmake-export
PSOC6: enable export to CMake
2019-02-20 09:39:35 +01:00
Martin Kojtal 7f4475d924
Merge pull request #9736 from 0xc0170/fix_licenses_files
tools/test/cmsis: add license header
2019-02-20 09:38:55 +01:00
Oren Cohen 156bdc4b95
Add config header to assembly compilation
ARMC6 was not including mbed_config.h when compiling assembly files
2019-02-20 01:15:23 +02:00
Volodymyr Medvid cf0ea92104 tools/export: move hex_files selection to base Exporter class
CMake and makefile exporters share a common logic for hex file
selection. Factor it as a common property in the base class
to avoid code duplication.
2019-02-19 20:03:06 +02:00
Michael Schwarcz 01a78e98a2 Add mbed_app.json for TF-M bare-metal build 2019-02-19 15:19:06 +02:00
Michael Schwarcz 516af50cb7 Consolidating tools/tfm and tools/spm into tools/psa 2019-02-19 15:19:06 +02:00
Michael Schwarcz 2198d5c008 Update tfm_importer.json with SHAs of patches 2019-02-19 15:19:00 +02:00
Michael Schwarcz f5af459d4c Add TF-M autogen tool 2019-02-19 15:18:52 +02:00
Michael Schwarcz 771cdaa3e7 Add TF-M importer json 2019-02-19 15:18:52 +02:00
Volodymyr Medvid 7311a610e5 PSOC6: enable export to CMake
The approach for the hex_files subset selection is identical
to makefile exporter: https://github.com/ARMmbed/mbed-os/pull/9466

Single hex file should be passed to srec_cat when hex_filename
is set in targets.json or mbed_app.json.
2019-02-19 14:15:31 +02:00
Martin Kojtal 195965fd5e tools: move string description after import modules 2019-02-19 10:49:04 +00:00
Martin Kojtal 62b5b4644d memap: remove not needed comment prior future import 2019-02-19 09:55:05 +00:00
Martin Kojtal 34cdefc89e tools: fix hashbang 2019-02-18 15:45:33 +00:00
Cruz Monrreal f95ec957dd
Merge pull request #9742 from naveenkaje/mcuxpresso_export_fix
tools: export: MCUXpresso: fix case inconsistencies in .templ file names
2019-02-15 21:15:42 -06:00
Cruz Monrreal 5a8970a48b
Merge pull request #9649 from ngraziano/fix-vscode-export
Fix IntelliSense in VSCode export
2019-02-15 12:28:00 -06:00
Naveen Kaje 8d284cb4b6 tools: export: MCUXpresso: fix case inconsistencies in .templ file names
The templ file names are both all upper case and lower case letters.
The Target Names map is usually all upper case. The match could fail
if the templ file, as we have case-sensitive comparison. Handle such
cases by perorming a case-insensitve check.

mbed export of a project to MCUXpresso could potentially always fail
irrespective of what is passed in -m option since the target names
map entry and the filename may not match. This commit fixes this issue.

Example of the issue that this commit fixes:

$ mbed export -i mcuxpresso -m lpc11u68 -v
<snip>
project.py: error: LPC11U68 not supported by mcuxpresso
<snip>
2019-02-15 11:56:27 -06:00
Martin Kojtal c08f51aa36 copyright 2019 fix 2019-02-15 13:37:40 +00:00
Martin Kojtal c8f698ca36 tools: add license headers 2019-02-15 13:32:45 +00:00
Cruz Monrreal 883b8b8f4f
Merge pull request #9724 from naveenkaje/tools_dir_with_profile_name
tools/utils: ensure default build profiles are processed first
2019-02-14 21:21:19 -06:00
Cruz Monrreal 9e6c7234e2
Merge pull request #9715 from bridadan/inc_as_header_file
Add .inc as a header file type.
2019-02-14 20:26:38 -06:00
Cruz Monrreal 6278ed66b0
Merge pull request #9635 from bridadan/no_pelion_host
Do not provide a default Pelion host address.
2019-02-14 20:25:31 -06:00
Naveen Kaje 176b750257 tools/utils: ensure default build profiles are processed first
The command-line argument '--profile' looks for build
profiles provided in mbed-os/tools/profiles/. If a
directory name exists in the root folder with the
same name as one of the profile names provided by
default [e.g debug/develop/release], that directory
is processed instead resulting in incorrect behavior.
Fix this behavior by processing the default profiles first.
2019-02-14 10:37:05 -06:00
Martin Kojtal b9fb95860c check release: add license header 2019-02-14 14:06:15 +00:00
Brian Daniels 7e1dff5aec Add .inc as a header file type.
Currently, if you were to add a directory that only contained .inc
files, this file would not be passed as an include path to the compiler.
This ensures that .inc files are also considered header files.
2019-02-13 17:59:04 -06:00
Cruz Monrreal 2e9d6d2938
Merge pull request #9645 from AriParkkila/cellular-netsocket
Change TESTS/netsocket/ for cellular testing
2019-02-13 17:28:35 -06:00
Cruz Monrreal b820ec8922
Merge pull request #9561 from theotherjimmy/test-resources
Tools changes for bare metal
2019-02-13 12:31:54 -06:00
Ari Parkkila 56badd8616 Change TESTS/netsocket/ for cellular testing 2019-02-13 01:30:42 -08:00
Cruz Monrreal II b59bb465ba Removed decode since deeper tools always return strings 2019-02-12 12:05:28 -06:00
Cruz Monrreal II 8c10cb0b8d Prefixed string to properly be parsed as bytes 2019-02-12 12:05:28 -06:00
Martin Kojtal 26751eeaa9
Merge pull request #9658 from alekla01/patch-1
REALTEK_RTL8195AM binary timestamp
2019-02-12 09:51:34 +01:00
Cruz Monrreal f04d51b2cd
Merge pull request #9652 from kfnta/tools_fixes
Fix minor bugs in secure targets file filtering
2019-02-11 16:41:05 -06:00
Brian Daniels 3ff0ca4b23 Do not provide a default Pelion host address.
This moves the default pelion host address to be assigned by the cloud
sdk. It also cleans up the logic a bit to be shorter.
2019-02-11 16:11:43 -06:00
Cruz Monrreal 760aadf36d
Merge pull request #9657 from ARMmbed/revert-9496-Add_MXRT_IAR_Support
Revert "MIMXRT1050_EVK: Add IAR support in the exporter"
2019-02-11 16:10:30 -06:00
Nicolas Graziano e85bbdd767 Vscode export: replace obsolete ${workspaceRoot}
Replace with ${workspaceFolder}
2019-02-11 19:05:25 +01:00
Nicolas Graziano 4b1789de22 Vscode export: remove path separator conversion
VSCode handle "/" and it is easier to read.
2019-02-11 19:05:14 +01:00
Nicolas Graziano e682807bf5 Fix IntelliSense in VSCode export
Allow to use default intelliSenseEngine in visual studio code.
Add of compilerPath and forcedInclude of mbed_config header in the
created c_cpp_properties.json file.
2019-02-11 19:05:04 +01:00
Martin Kojtal 36df2aa868
Merge pull request #9633 from orenc17/update_delivery
Improvement to artifact delivery method
2019-02-11 17:54:51 +01:00
Aleksi Klasila 3e88cf7e83 REALTEK_RTL8195AM daplink timestamp from os.environ 2019-02-11 18:11:07 +02:00
Jimmy Brisson f331d9e94e Add SPDX identifier for new file 2019-02-11 08:49:18 -06:00
Jimmy Brisson 5b96cbfa34 Fix typo in config schema definitons 2019-02-11 08:45:35 -06:00
Martin Kojtal 10bb66a053
Merge pull request #9424 from SeppoTakalo/ONME-4125
Allows multiple network status listeners
2019-02-11 10:41:35 +01:00
Martin Kojtal 7e831a7f91
Revert "MIMXRT1050_EVK: Add IAR support in the exporter" 2019-02-11 09:36:18 +00:00
Oren Cohen 6fa47bdb23
Update test.py 2019-02-11 10:38:41 +02:00
Oren Cohen 0ca2615a72 Check source relative to ROOT on secure targets
When building secure targets, we would like compile only files that are in the the mbe-os root folder.
This Fixes an issue when sending multiple --source parameters that are all inside the mbed-os tree
2019-02-10 17:13:10 +02:00
Michael Schwarcz 8fb2467608 Force adding mbed-os root to include dirs 2019-02-10 16:32:21 +02:00
Michael Schwarcz 9013dc8e5d
Update tools/config/__init__.py
Co-Authored-By: orenc17 <oren.cohen@arm.com>
2019-02-09 13:55:32 +02:00
Oren Cohen e162d69f56 Make delivery_dir relative to the json it was declared in 2019-02-07 19:13:01 +02:00
Nir Sonnenschein 8c2ad14ace
Merge pull request #9568 from ARMmbed/feature-cellular-refactor
Merge feature cellular refactor
2019-02-07 18:17:32 +02:00
Nir Sonnenschein 5ef9499296
Merge pull request #9619 from deepikabhavnani/typo_correct
Correct the dsp flag from no_dsp to nodsp
2019-02-07 18:13:24 +02:00
Oren Cohen 44c1a2cea3 Make delivery_dir relative to mbed_os root 2019-02-07 14:56:57 +02:00
Anna Bridge 645c1cebb5
Merge pull request #9021 from naveenkaje/fix_part_size_check
tools: check that part size is not exceeding region size
2019-02-07 10:16:12 +00:00
Martin Kojtal 7e18cc5b6a
Merge pull request #9596 from vmedcy/make-cmd-files
Implement Linker command/response files in make export
2019-02-07 09:36:19 +01:00
Martin Kojtal 09db995c73
Merge pull request #9625 from kfnta/tools_arm_fix
Fix cortex-m33 armlink error
2019-02-07 09:24:42 +01:00
Martin Kojtal 9bda4494ca
Merge pull request #9614 from kfnta/tools_gcc_fix
Fix cortex-m33-S gcc compilation error
2019-02-07 09:24:00 +01:00
Oren Cohen 04a22a2e69 Improvement to artifact delivery method
A target can define a delivery directory instead of the default option
2019-02-06 15:26:59 +02:00
Michael Schwarcz 965410bef0
Fix cortex-m33-S armlink error
Add "-mfpu=none" compilation flag
2019-02-06 10:28:28 +02:00
Martin Kojtal 4ce6ed0f47
Merge pull request #9606 from deepikabhavnani/core_arch_v8m
Correct typo no_dsp - nodsp
2019-02-05 16:59:13 +01:00
deepikabhavnani 07ccd82719 Correct the dsp flag from no_dsp to nodsp 2019-02-05 09:35:46 -06:00
Michael Schwarcz 0e7d172d0f
Fix cortex-m33-S compile error
Compilation error was due to due to bug in gcc.py
2019-02-05 14:48:29 +02:00
Deepika b49a6b2ad8 Correct typo no_dsp - nodsp
armclang - nodsp
armlink - no_dsp

diff --git a/tools/t
2019-02-04 15:40:53 -06:00
Volodymyr Medvid 6918e6a76b makefile export: create .link_options.txt with echo
$(file > $@.in, $(filter %.o, $^)) is not supported in GNU Make 3.81.
Create the linker response file with pipe redirect from echo command.
This is tested with Cygwin make and make 3.8.1 shipped with macOS.

Also, change the linker responce file name to .link_options.txt.
This is an internal file, not a build artifact.
2019-02-04 20:10:47 +02:00
Martin Kojtal 1c483e87b0
Merge pull request #9589 from bridadan/fix_export_exception_msg
Improve error message for exports for OS2-only targets
2019-02-04 17:26:10 +01:00
Martin Kojtal dcba5ffa3c
Merge pull request #9529 from kfnta/its_crypto
RollUp PR Crypto with ITS
2019-02-04 17:14:05 +01:00
Martin Kojtal 0ae6a048e4
Merge pull request #9431 from deepikabhavnani/iar_armv8m_changes
Update IAR Armv8M changes
2019-02-04 14:34:28 +01:00
Brian Daniels 8d900c77cf Improve error message for exports for OS2-only targets 2019-02-01 17:02:46 -06:00
Brian Daniels 811152da65
Add missing space - coding style nit
Co-Authored-By: deepikabhavnani <deepika.bhavnani@arm.com>
2019-02-01 10:38:37 -06:00
Martin Kojtal 7ba83a517d
Merge pull request #9342 from Cypress-OpenOCD/master
Add support for debug and program launch configurations
2019-02-01 08:10:20 +01:00
Naveen Kaje 43da2f22af tools: build_api_test: add test to detect when part overflows region size 2019-01-31 17:09:28 -06:00
Naveen Kaje 4393e4b82a tools: check part size is not exceeding region size
If config is specified, check that part size is not
exceeding the region. Normally we now assume that
part.maxaddr() can be beyond end of rom.
2019-01-31 17:03:05 -06:00
deepikabhavnani 6097095de4 Set the DSP option as `E` for Cortex-M33 2019-01-31 16:19:24 -06:00
deepikabhavnani fdbcae3830 Correct the floating+dsp options for Cortex-M processors
As per the IAR Development guide, below options for CPU are valid

1. Cortex-M33
2. Cortex-M33.no_dsp (core without integer DSP extension)
3. Cortex-M33.fp (floating-point unit with support for single precision)
4. Cortex-M33.no_se (core without support for TrustZone)
5. Cortex-M4
6. Cortex-M4F
7. Cortex-M7
8. Cortex-M7.fp.dp (floating-point unit with support for double precision)
9. Cortex-M7.fp.sp (floating-point unit with support for single precision)
2019-01-31 16:19:24 -06:00
deepikabhavnani 0082474ef2 Update `cmse` flag based on core_arch instead of different cores 2019-01-31 16:19:24 -06:00
Deepika 80f6b0e002 M2351: Update code to support IAR 8.x builds 2019-01-31 16:19:24 -06:00
deepikabhavnani f760f72757 Update IAR flags for Armv8M devices.
Cortex-M23 / Cortex-M33 CPU settings for baseline and mainline
profile (with optional floating and dsp options) updated.
2019-01-31 16:19:24 -06:00
Jimmy Brisson c31fb479d9 Rename tests so that you get what they do 2019-01-31 14:14:26 -06:00
Jimmy Brisson 9b8a48f0f1 Rewrite and document _include_file 2019-01-31 13:55:33 -06:00
Jimmy Brisson 0265b57d35 Rewrite include finction to only heed nearest library 2019-01-31 11:31:33 -06:00
Andriy.Lishchynskyi be5a625771 Resolved code review comments 2019-01-31 19:31:28 +02:00
Jimmy Brisson 020c840cf8
Apply suggestions from code review
Co-Authored-By: Cypress-OpenOCD <39907069+Cypress-OpenOCD@users.noreply.github.com>
2019-01-31 19:29:13 +02:00
Jimmy Brisson 92475ae96c Test exclude within include 2019-01-31 11:13:52 -06:00
Jimmy Brisson a8323337aa Test include within an exclude 2019-01-31 11:11:56 -06:00
Jimmy Brisson 5335faf6c2 Pass only libraries to include_libaries 2019-01-31 11:04:47 -06:00
Cruz Monrreal c9e00cf781
Merge pull request #9480 from deepikabhavnani/core_arch_v8m
Refactor core optional parameters (FPU + DSP + Security extensions)
2019-01-31 10:22:09 -06:00
Jimmy Brisson a8a21d30a1 Implement Linker command/response files in make export 2019-01-31 17:38:25 +02:00
Jimmy Brisson f45b53fd47 Ignore non-config json files 2019-01-31 09:19:21 -06:00
Jimmy Brisson db30e714f9 Verify that we ignore non-config json files 2019-01-31 09:19:07 -06:00
Oren Cohen ea9f104463 Fix Licenses 2019-01-31 17:17:58 +02:00
Oren Cohen ff18a64e00 Check mbed-crypto-example with fork
Revert this commit once these changes are merged to example master
2019-01-31 17:17:57 +02:00
Oren Cohen 34895a05ad CR fixes 2019-01-31 17:17:54 +02:00
Oren Cohen 8841ba69f8 Align to new spec changes and prep for TFM SPM
# Conflicts:
#	components/TARGET_PSA/services/crypto/COMPONENT_PSA_SRV_IPC/psa_crypto_spm.c
#	components/TARGET_PSA/services/crypto/COMPONENT_SPE/psa_crypto_partition.c
2019-01-31 17:17:53 +02:00