aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
14 hoursBuild: Only get mcuboot code if we need itHEADmasterChris Brand
If BL2 is OFF, we won't be using the mcuboot code at all, so there's no point in downloading it. Change-Id: I37403ea6892f39a2dc88436b14b47b787da92a86 Signed-off-by: Chris Brand <chris.brand@cypress.com>
14 hoursPlatform PSoC64: align flash data bufferAndrei Narkevitch
Flash data buffer has to be 32-bit aligned Signed-off-by: Andrei Narkevitch <ainh@cypress.com> Change-Id: I9c0aee7922d2e9241eb9bf9d1cfb3496efeb5ff7
38 hoursBoot: Rename RAM_LOADING to RAM_LOADTamas Ban
To be aligned with the original MCUboot repo. Change-Id: Icbd3c80a016584741fca056305f5bf5b0436182c Signed-off-by: Tamas Ban <tamas.ban@arm.com>
38 hoursBoot: Remove platform specific code from bl2_main.cDavid Vincze
Clean-up bl2_main.c and move all platform dependent code to appropriate boot_hal.c Signed-off-by: Balint Matyi <Balint.Matyi@arm.com> Change-Id: Ieef1896ca6a0afc15c513bc4aa0acf3fa1a06c7a
38 hoursBoot: Remove forked MCUboot from TF-MBalint Matyi
Remove the generic MCUboot source files from TF-M in order to rely only on upstream MCUboot project as a secure second stage bootloader. At this point all the features from the internal fork are already upstreamed to the original project so from feature point of view the switch is seamless. From now on any new development is going to be directly upstreamed to the original project. Some platform and project specific files and scripts are still kept in the bl2/ext/mcuboot folder to make possible the integration with TF-M project. Signed-off-by: Balint Matyi <Balint.Matyi@arm.com> Signed-off-by: Tamas Ban <Tamas.Ban@arm.com> Change-Id: I261c11383202d02eecff06c21d5c51d6ec8f27ea
38 hoursAttest: Remove LEGACY_TFM_TLV_HEADER supportBalint Matyi
The boot record is shared between bootloader and runtime firmware in the structure of TLV data. The header of the TLV fields are filled differently by original MCUboot and its TF-M fork. The config option LEGACY_TFM_TLV_HEADER was meant to make the distinction. Since the forked version of MCUboot is going to be removed therefore this differentiation could also be deleted. Signed-off-by: Balint Matyi <Balint.Matyi@arm.com> Change-Id: Ie3904996eb0f1006eaa67c324dfbbb21a9e146ab
38 hoursBoot: Rename NO_SWAP upgrade strategy to DIRECT_XIPTamas Ban
The NO_SWAP upgrade strategy was upstreamed to the mainline MCUboot repo, but the feature was renamed to DIRECT_XIP. This change do the same renaming in TF-M to be aligned with the mainline repo, because the MCUboot fork is going to be removed from the TF-M repository. Change-Id: I63201a5319a68394d45d753a700444cdc848b5dc Signed-off-by: Tamas Ban <tamas.ban@arm.com>
38 hoursBuild: Update MCUboot versionTamas Ban
Pick-up a version which contains all features which were upstreamed from TF-M MCUboot fork. Change-Id: Ic59069c8851cf003133124838365ae97abc389ba Signed-off-by: Tamas Ban <tamas.ban@arm.com>
38 hoursBuild: Fix MCUboot git tagTamas Ban
To be able to properly fetch a version indicated by a tag or a commit hash move the 'v' character from the cmake file to the value of the MCUBOOT_VERSION variable. Change-Id: Ied87384636805205f13b1e4735e564d63417dffb Signed-off-by: Tamas Ban <tamas.ban@arm.com>
47 hoursDocs: Code Review GuidelinesKen Liu
A document to clarify the uncertain items while reviewing. The audience is mainly the reviewers but also helpful for contributors. Change-Id: I4ca04ea602aaf18eef6b52237279a8e602388083 Signed-off-by: Ken Liu <ken.liu@arm.com>
4 daysBuild: Remove compiler version checkRaef Coles
Not actually necessary, and has a bug in it that causes issues with armclang. Change-Id: Iec55dd1a33d03607be90b9c4552eeef9368251fc Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Fix minor issues with new buildsystemRaef Coles
Several minor bugfixes: * Add error messages for unsupported generators / compilers * Remove unsupported warning disablement option on IAR * Fix typo in error message Change-Id: I492872d5af5e507d52e2f9f1fbb28f39359349ee Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Add IAR support to new build systemTTornblom
Adding IAR toolchain cmake file and target files for an519, an521, musca_a, sse-200_aws, psoc64, lpcxpresso55s69 Updated a few files to discriminate between armclang/gcc and iar Removed some dead files Add patch file to mbedcrypto - this can be removed once the PR with the same changes is merged upstream Signed-off-by: Raef Coles <raef.coles@arm.com> Signed-off-by: TTornblom <thomas.tornblom@iar.com> Change-Id: I2aafff7803d0aa12f1df598b8f157e94e1f3c03f
7 daysDocs: Update for new build systemAnton Komlev
Update docs to use new build commands. Document new build options Remove mentions of manifest generation. Remove mentions of hex file generation. Signed-off-by: Anton Komlev <anton.komlev@arm.com> Change-Id: I01c49c462403468c3e3650534893160cdfb6f5c5
7 daysBuild: Convert docs directory to modern cmakeMinos Galanakis
Add cmake files to docs directory. Remove unneeded cmake files. By default, the targets are generated but not run by `make all` or `make`. The documentation can be generated by running `make docs` Please refer to the tfm_build_instructions document for reference examples. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for ease of understanding. Change-Id: I1b004a8f8ccfba2df901d91b093576fdc6bfa40d Signed-off-by: Minos Galanakis <minos.galanakis@arm.com> Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysDocs: Decouple from CMAKE and enable sphynx-build.Minos Galanakis
This patch is reducing the dependency of the documentation to the TrustedFirmware-M build environment. Currently CMake will copy over files from platforms, render the configuration files, sort design documents and invoke the corresponding tools to build the documentation. This patch introduces an environment communicating interface file, which CMAKE will need to populate, before calling the build command. The file copy operation has been moved over to the sphynx-build logic, and the design document’s classification is no longer required by the new user interface. The new implemenatation allows: * Documentation can be built in an identical way through the build system, retaining compatibility with existing tools, such as the CI. * It is now possible to build documentation, by just invoking sphynx-build from the build-docs directory. * Third party tools/services like readthedocs.org can now render the TF-M documentation. * Reduced CMake code size. * Documentation generating logic invokes ‘git describe’ in order to determine a version. The order of precedence is set as: Git Describe Version-> CMake hardcoded version -> Template version. * CMake logic can still toggle parts of the new logic on and off if required. * The full set of TF-M build dependencies are not longer required in order to build documentation. Just the documentation dependencies would suffice. Change-Id: I12e7bbffe9d1adb756329c46da13905e95096381 Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
7 daysBuild: Convert fvp_sse300 target to modern cmakeRaef Coles
Add cmake files to mps2/fvp_sse300 target directory. Alter scatter files to remove preprocessor shebang. Alter header files where include paths have changed. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for ease of understanding. Signed-off-by: Marton Berke <marton.berke@arm.com> Signed-off-by: Anton Komlev <anton.komlev@arm.com> Change-Id: I18158967fb1dff1e7adf4f4ac8ea003989ff717a
7 daysBuild: Convert stm targets to modern cmakeRaef Coles
Add cmake files to stm vendor directory. Alter scatter files to remove preprocessor shebang. Alter header files where include paths have changed. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for ease of understanding. Change-Id: Ic0ff1e22c5594e68b637c4921f4680551d8ec213 Signed-off-by: Michel Jaouen <michel.jaouen@st.com> Signed-off-by: Balint Matyi <Balint.Matyi@arm.com> Signed-off-by: Raef Coles <raef.coles@arm.com> Signed-off-by: Anton Komlev <anton.komlev@arm.com>
7 daysBuild: Convert musca_b1 target to modern cmakeBalint Matyi
Add cmake files to musca_b1 target directory. Alter scatter files to remove preprocessor shebang. Alter header files where include paths have changed. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for ease of understanding. Signed-off-by: Balint Matyi <Balint.Matyi@arm.com> Signed-off-by: Raef Coles <raef.coles@arm.com> Change-Id: I10409f08f3f9b8fcce59464c015866b176e6372e
7 daysBuild: Convert sse-200_aws target to modern cmakeBalint Matyi
Add cmake files to sse-200_aws target directory. Alter scatter files to remove preprocessor shebang. Alter header files where include paths have changed. Move to mps2 subdirectory. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for ease of understanding. Signed-off-by: Raef Coles <raef.coles@arm.com> Signed-off-by: Balint Matyi <Balint.Matyi@arm.com> Change-Id: I38540fa53ab90f2911019a564eb855d6251b9b0e
7 daysBuild: Convert musca_a target to modern cmakeBalint Matyi
Add cmake files to musca_a target directory. Alter scatter files to remove preprocessor shebang. Alter header files where include paths have changed. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for ease of understanding. Signed-off-by: Raef Coles <raef.coles@arm.com> Signed-off-by: Balint Matyi <Balint.Matyi@arm.com> Change-Id: Icde58c51a248d680a8a00a9516f15f86906a0e57
7 daysBuild: Convert cypress targets to modern cmakeRaef Coles
Add cmake files to cypress vendor directory. Alter scatter files to remove preprocessor shebang. Alter header files where include paths have changed. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for ease of understanding. Change-Id: I5edfbe653927d897589ae20f320799368890e8d5 Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Convert mps3/an524 target to modern cmakeRaef Coles
Add cmake files to an539 target directory. Alter scatter files to remove preprocessor shebang. Alter header files where include paths have changed. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for ease of understanding. Change-Id: I386315c03e04e98e113f6b303013992cb1cf3512 Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Convert mps2/an539 targets to modern cmakeRaef Coles
Add cmake files to an539 target directory. Alter scatter files to remove preprocessor shebang. Alter header files where include paths have changed. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for ease of understanding. Signed-off-by: Raef Coles <raef.coles@arm.com> Change-Id: I3ab85c6911e2a9ede481e5c0ec957b413c997735
7 daysBuild: Convert mps2/an521 targets to modern cmakeBalint Matyi
Add cmake files to an521 target directory. Alter scatter files to remove preprocessor shebang. Alter header files where include paths have changed. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for clarity of changes. Signed-off-by: Balint Matyi <Balint.Matyi@arm.com> Change-Id: I4cc0cb33cb17328da01481b7b41f23730ac72132 Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Convert mps2/an519 targets to modern cmakeBalint Matyi
Add cmake files to an519 target directory. Alter scatter files to remove preprocessor shebang. Alter header files where include paths have changed. Move common files to mps2 common directory. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for clarity of changes. Signed-off-by: Balint Matyi <Balint.Matyi@arm.com> Change-Id: Iad72acb23e7bcfe7fc602f7fb1500112146408af Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Convert NXP targets to modern cmakeMate Toth-Pal
Add cmake files to nxp vendor directory. Alter scatter files to remove preprocessor shebang. Alter header files where include paths have changed. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for clarity of changes. Change-Id: I96723fdc1220ff26e34a6d6acbc027995c0c3137 Signed-off-by: Mate Toth-Pal <mate.toth-pal@arm.com> Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Convert musca_s1 target to modern cmakeRaef Coles
Add cmake files to musca_s1 target directory. Alter scatter files to remove preprocessor shebang. Alter header files where include paths have changed. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for clarity of changes. Change-Id: I2e73fed67a189254818217015277525ae1fbd018 Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Convert tools dir to modern cmakeRaef Coles
Rewrite cmake files inside the tools directory. Convert some files to cmake-configurable files. Alter the interface to the manifest list parser. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for clarity of changes. Change-Id: Ibb4494a6bf739f91337146a459f74a9faf9a5a60 Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Convert interface dir to modern cmakeRaef Coles
Rewrite cmake files inside the interface directory. Remove generated files as they are now generated into the build tree. Modify header includes where include paths have changed. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for clarity of changes. Change-Id: I9ebfb1e31bebcba4a45ea3bb9ed0aa1c3d1c144d Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Convert cmake dir to modern cmakeRaef Coles
Remove unneeded cmake files inside the cmake directory. Add some new utility files. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for clarity of changes. Change-Id: I07dfb1c1e8f8346ae10e7cd891df700e5dd0d827 Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Convert platform dir to modern cmakeRaef Coles
Rewrite cmake files inside the platform directory. Removed generated files as they are now generated into the build tree. Move Mbed Crypto config files to lib/ext/mbedcrypto. Alter header includes where include paths have changed. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for clarity of changes. Change-Id: I54c6ec5e0256032450260a1b0ac9702bc8ca3700 Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Convert secure_fw dir to modern cmakeRaef Coles
Rewrite cmake files inside the secure_fw directory. Removed generated files as they are now generated into the build tree. Alter header includes where include paths have changed. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for clarity of changes. Change-Id: Ib1b13c9b69f2fcb1ff354ed6b5e5b717a207e3b8 Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Convert lib dir to modern cmakeRaef Coles
Rewrite cmake files inside the lib directory. Adds subdirectories for external dependencies that are now fetched automatically by cmake. Add patches for external repos that require them. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for clarity of changes. Change-Id: I545fd9278fbccb56c4216ffd5a390e35787dc41a Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Convert CC312 buildsystem to modern cmakeRaef Coles
Adds cmake files inside the lib/ext/cryptocell-312-runtime directory. Removes previous make based buildsystem. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for clarity of changes. Change-Id: I305048674bfb30ace0a2390196674ba162c229ba Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Convert bl2 dir to modern cmakeRaef Coles
Alters cmake files inside the bl2 directory. Moves some bl2 files to mirror the directory structure of upstream MCUboot. Renames some of the key files to allow easier programmatic selection. Alters some headers where the include paths have changed. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for clarity of changes. Change-Id: I8fe822d982d5e1635fb3176135e33bc3acf9163a Signed-off-by: Raef Coles <raef.coles@arm.com>
7 daysBuild: Convert buildsystem base to modern cmakeRaef Coles
Alters root cmake file and configuration files, and adds cmake toolchain files. WARNING: This change will not build in isolation, it requires _all_ other cmake changes to successfully build. It is split out only for clarity of changes. Signed-off-by: Raef Coles <raef.coles@arm.com> Change-Id: Iecc914859a5b1d497176ec82f0b6c22764c7b556
7 daysDocs: Updated the introductory readme.Minos Galanakis
This patch introduces minor changes to the readme page, updating the content to align with the latest PSA branding guidelines Signed-off-by: Minos Galanakis <minos.galanakis@arm.com> Change-Id: I2ef03e646bb046de0f3dd81381244aa347298fb2
8 daysPlatform PSoC64: add policy with device certificatesAndrei Narkevitch
- added policy with device certificates policy_multi_CM0_CM4_tfm_dev_certs.json - added reprov_helper.py for certificates creation and reprovisioning the board with device certificates - added default signing keys - updated documentation Signed-off-by: Andrei Narkevitch <ainh@cypress.com> Change-Id: Ia77a49a433cd07b7dcae443047c47bc5a02a9e29
8 daysPlatform PSoC64: update psoc64 documentationAndrei Narkevitch
- update readme files to the latest CySecureTools CLI and policy changes Signed-off-by: Andrei Narkevitch <ainh@cypress.com> Change-Id: Iaa12249123880e01d3dfd1ec8fd26f077a334367
8 daysPlatform PSoC64: rename default TFM policyAndrei Narkevitch
Renamed default TFM policy to be consistent with cysecuretools naming schema to policy_multi_CM0_CM4_tfm.json Removed no longer used sign.py script. Signed-off-by: Andrei Narkevitch <ainh@cypress.com> Change-Id: I543b884b807d5fca32959eab51ed782568ed4786
8 daysPlatform PSoC64: Move TFM-specific dataAndrei Narkevitch
Move TFM-specific data in policy to the custom data section. - Policy file used for provisioning or re-provisioning can contain optional list of sections, e.g.: "custom_data_sections": ["abc", "xyz"], "abc": { ... }, "xyz": { ... } - All listed sections content will be added to the prov_req jwt packet. Signed-off-by: Andrei Narkevitch <ainh@cypress.com> Change-Id: I9354e93d7aa354ae9396d65343a2ece458a2652c
8 daysPlatform PSoC64: remove cysecuretools v1.0.x supportAndrei Narkevitch
Signed-off-by: Andrei Narkevitch <ainh@cypress.com> Change-Id: I9353bcd37aeb81b7b6aad357f9b6e27e1e85b870
8 daysPlatform PSoC64: move policy file to the policy directoryAndrei Narkevitch
Signed-off-by: Andrei Narkevitch <ainh@cypress.com> Change-Id: I6f4cc2354267b0402af4b3d5867d89cdab1d5fa1
8 daysPlatform PSoC64: Update policy to latest CySecureToolsAndrei Narkevitch
Updated the default TFM policy to comply with the CySecureTools v.2.0.0 pypi.org/project/cysecuretools Signed-off-by: Andrei Narkevitch <ainh@cypress.com> Change-Id: I2ec71c2407bd42ea409e1636f396d2c0ced8776f
8 daysPlatform PSoC64: Update policies to use different keys for SPE and NSPEAndrei Narkevitch
- Use different keys to sign tfm_s and tfm_ns images - Provided more details for signing keys commands shortcuts in keys/readme.rst Signed-off-by: Andrei Narkevitch <ainh@cypress.com> Change-Id: Ifb45dc28c8b1e168c49b40d23ba673df0d1c579f
8 daysDocs: Added an index files for profiles folderMinos Galanakis
This patch adds an index, for the design_documents/profiles folder.Any new .rst file dropped there will be automatically included. Signed-off-by: Minos Galanakis <minos.galanakis@arm.com> Change-Id: Ie4cd1b9bbd60ca462d4e77a4ed1bca467643dacc
8 daysDocs: Added information on IRQ implementationsBoris Deletic
Described IRQ source in more detail Pointed to files which contain relavent information Signed-off-by: Boris Deletic <boris.deletic@arm.com> Change-Id: Ie75962e9ba2a42383b56701d82bb9031b88f2f67
8 daysDocs: Added docs for RoT implementationBoris Deletic
Added section for RoT service implementation Change-Id: I58ce1511167c9c5b6168bfb8679905c35edf5d70 Signed-off-by: Boris Deletic <boris.deletic@arm.com>
13 daysPlatform: Fix system_reset issue in Musca-S1Gabor Toth
This commit fixes the issue around system_reset, reverting the MPC settings back to secure. Change-Id: I9733f384b9d4e089f2f6a88a465ace6c829f2c63 Signed-off-by: Gabor Toth <gabor.toth@arm.com>