Commit Graph

3074 Commits (2d77fccb091ef57a50b17e750a93206ea9f3af2c)

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