Commit Graph

52 Commits (4d58e58b6bf3b73a6ad6c5a9116c17a00c609502)

Author SHA1 Message Date
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
Oren Cohen a127f10648 Check that required toolchains are in PATH 2019-04-07 18:49:35 +03: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
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
David Saada eb5cef84fd Add bootloader support for the LPC55S69 board
bla
2019-03-16 00:13:40 +02:00
Oren Cohen 963dd62524 Bugfix: send the correct parameter to _get_target_info() 2019-03-12 10:02:33 +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 ba24cb2875
Merge pull request #10010 from kfnta/psa_tools_docs_update
Update PSA tools
2019-03-11 11:55:34 +01: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
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
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
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
Michael Schwarcz f15505714a Add missing license header 2019-03-06 10:41:22 +02: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
Oren Cohen f234a1dc5b
Unify PSA code generators 2019-03-03 21:15:49 +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 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
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
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
Oren Cohen 8800ad5c80 TFM: Add defines to mbed_lib.json 2019-02-21 17:38:30 +02:00