Commit Graph

59 Commits (76af152fe1851c37bb80c374918e822598350c4a)

Author SHA1 Message Date
Vikas Katariya cdb5ebdd6b Documentation update for tools/psa
Signed-off-by: Vikas Katariya <Vikas.Katariya@arm.com>
2019-11-08 14:57:06 +00:00
Vikas Katariya dae119e7ea PSA release script changes.
Since the offline build is made to auto-generate PSA related components
and services for Secure targets, we can change the output directory to
update the files in the respective locations.
TARGET_PSA
  --TARGET_MBED_SPM
    --COMPONENT_SPE
      psa_setup.c
  --TARGET_TFM
    --COMPONENT_SPE
      --inc
	tfm_partition_defs.inc
        tfm_partition_list.inc
        tfm_service_list.inc
        tfm_spm_signal_defs.h
  --services
    --inc
      autogen_sid.h
      mbed_spm_partitions.h

The release script is been modified to commit these files if there are
any changes detected when `--commit` argument is passed.
Cleaning of auto-generated is been removed as it uses the main directory
for its operations, but PSA auto-generation will work if any of the
service and application-based manifests are updated.

Signed-off-by: Vikas Katariya <Vikas.Katariya@arm.com>
2019-11-08 14:57:06 +00:00
Juhani Puurula bdaa38c1bb Change imgtool lib import to relative import 2019-10-03 12:12:43 +03:00
Jaeden Amero 5c81d19bc1 psa: Document a test partition creation gotcha
The release script must be run from mbed-os root, otherwise the test
partition binaries will not be created. Add a note in the tool's README
to make this clear and hopefully help save someone some debugging time
in the future.
2019-09-02 17:10:59 +01:00
jeromecoutant 79ea26614b PSA release script update: add toolchain option 2019-05-17 16:32:49 +02:00
Alexander Zilberkant fe9eac78c2 Update PSA tools Readme 2019-04-30 14:41:09 +03:00
Alexander Zilberkant 8c5ba9154d Update PSA code generator
Unify TF-M and Mbed-SPM code generators:
 - Unify SPM initialization logic:
   - All partitions are registered at once
   - Test partitions are guarded by #ifndef
   - Introduce single template list
 - Beatify template files and add "Autogen-do not modify" notice
Prepare for integration with mbed-os build system:
 - Generate all the files in a single place
Simplify tools/psa/release.py script
2019-04-30 14:10:23 +03:00
Oren Cohen ae4341e8db Refactor PSA code generators
* Unify PSA generators
* Replace scanning for mbed_spm templates with json
* Make generate_source_files and parse_manifests common
* Make assert_int an internal function
* Use parse_manifests in pytests
* Update docs
2019-04-10 14:15:28 +03:00
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