Commit Graph

32713 Commits (1850c03d5e717c76a1cf9e204d3fb52c7cfdf770)

Author SHA1 Message Date
Martin Kojtal e2a5f8f8ba
Merge pull request #14291 from harmut01/baremetal_freescale
Add bare metal support to freescale targets
2021-03-02 09:40:17 +00:00
Martin Kojtal 03b9d5a357
Merge pull request #14271 from ladislas/ladislas/feature/add-editorconfig
Add .editorconfig file
2021-03-02 09:39:24 +00:00
Harrison Mutai 191bd023eb Remove erroneous object file reference in IRAM1 definition 2021-03-01 16:27:24 +00:00
Harrison Mutai c55210fdc4 Correct vector table and ram size definitions 2021-03-01 15:30:31 +00:00
Martin Kojtal c5bfa7e471
Merge pull request #14340 from chrJost/master
STM32L5: enable USBDEVICE
2021-03-01 15:28:44 +00:00
Martin Kojtal 1f28e6e7dd
Merge pull request #14334 from hugueskamba/hk_cmake_remove_app_target_post_build_calls
CMake: Remove references of APP_TARGET
2021-03-01 14:59:02 +00:00
Martin Kojtal fbafcf2b0d
Merge pull request #14355 from ladislas/feature/ladislas/cmake-map-per-target
CMake - Configure memory map per target to allow multiple add_executable
2021-03-01 12:55:36 +00:00
Arto Kinnunen 7498683b4f Change file permissions from 755->644 2021-03-01 10:20:54 +02:00
Ladislas de Toldi fd7ea7305f
Configure memory map per target to allow multiple add_executable 2021-02-27 13:16:03 +01:00
Lingkai Dong 62c8379d8d TARGET_TFM_V1_0: compatibility with Mbed TLS 2.24.0
Mbed TLS 2.24.0 requires a few new macros and an inline function in
the PSA Crypto header. This PR adds them to make sure the TF-M v1.0
target (specifically CYTFM_064B0S2_4343W) continues to compile with
the new Mbed TLS.

Note: Support for older versions of TF-M than v1.2 will be dropped,
so existing TF-M targets should migrate to TF-M v1.2 as soon as
possible.
2021-02-25 15:40:57 +00:00
George Beckstein d00699c70f Add subtarget_init files to cmake 2021-02-25 10:34:42 -05:00
Ladislas de Toldi b23a8eb1c3
Add .editorconfig file 2021-02-25 16:26:34 +01:00
Ladislas de Toldi b12481b3c3
STM32WB - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:20:11 +01:00
Ladislas de Toldi c68c210a47
STM32L5 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:19:17 +01:00
Ladislas de Toldi 40120e6036
STM32L4 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:18:24 +01:00
Ladislas de Toldi 2c1d37e4a5
STM32L0 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:17:14 +01:00
Ladislas de Toldi 8361fda30f
STM32H7 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:16:37 +01:00
Ladislas de Toldi 1d4742e8c3
STM32G4 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:15:47 +01:00
Ladislas de Toldi 09457e2cf8
STM32G0 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:14:50 +01:00
Ladislas de Toldi 758d4c4245
STM32F3 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:13:52 +01:00
Ladislas de Toldi ea9eb73cc8
STM32F2 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:12:43 +01:00
Ladislas de Toldi aa30a254a9
STM32F1 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:10:21 +01:00
Martin Kojtal 63eeb93a5f
Merge pull request #14341 from artokin/update_traces_in_stm_emac_driver
Update stm32xx_emac driver traces
2021-02-25 15:09:10 +00:00
Ladislas de Toldi 1732c136da
STM32F0 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:08:59 +01:00
Martin Kojtal eceaea54fd
Merge pull request #14299 from hugueskamba/hk_cmake_refactor_mapfile_generation
CMake: Refactor mapfile generation
2021-02-25 15:08:55 +00:00
Ladislas de Toldi 143176b8c4
STM32F4 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:06:48 +01:00
Martin Kojtal 1de9e3973d
Merge pull request #14344 from hugueskamba/hk_cmake_fix_psoc6_post_build
CMake: Fix PSOC6 post build script
2021-02-25 15:06:48 +00:00
Ladislas de Toldi e1aa00ee76
STM32F7 - Add if defined check for USE_HAL_XXX_REGISTER_CALLBACKS 2021-02-25 16:06:41 +01:00
Martin Kojtal b845246d43
Merge pull request #14343 from JojoS62/add-lwIP-opttion-for-RDNSS
Add lw ip opttion for rdnss
2021-02-25 15:05:27 +00:00
Harrison Mutai 3c57f384b1 Remove IAR from list of supported toolchains 2021-02-25 14:23:19 +00:00
Harrison Mutai 23c4d6f4e2 Remove IAR from list of supported toolchains 2021-02-25 14:20:19 +00:00
Harrison Mutai f985169f04 Remove IAR from list of supported toolchains 2021-02-25 14:17:58 +00:00
Harrison Mutai de162d4087 Remove IAR from list of supported toolchains 2021-02-25 14:15:16 +00:00
Harrison Mutai 15e851194c Remove IAR from list of supported toolchains 2021-02-25 14:11:46 +00:00
Lingkai Dong 6ab4b1c1d4 "Updated secure binaries for [('ARM_MUSCA_S1', 'ARMCLANG')]" 2021-02-25 14:02:57 +00:00
Lingkai Dong 29f7f9f5d2 "Updated secure binaries for [('ARM_MUSCA_B1', 'ARMCLANG')]" 2021-02-25 14:02:57 +00:00
Lingkai Dong 2807a01fd3 "Updated directory platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST " 2021-02-25 14:02:57 +00:00
Lingkai Dong 0dd43976b8 Import mbedtls_ecp_write_key for Cypress Mbed TLS driver
Mbed TLS 2.24.0 has added a new function mbedtls_ecp_write_key()
which is the reverse of the existing mbedtls_ecp_read_key(). This
function should be platform agnostic, but needs to be copied into
Cypress's hardware-accelerated ECP driver as part of the updated
API.
2021-02-25 14:02:57 +00:00
Lingkai Dong 1f4f6dd0b6 Mbed TLS importer: don't import unnecessary files
The Mbed TLS importer accidentally imports Makefile and .gitignore
from Mbed TLS's `library/` directory. This commit restricts the
pattern to .h and .c files only, and removes the unnecessary files.
2021-02-25 14:02:57 +00:00
Lingkai Dong 241b062cdf Update .gitignore for Mbed TLS importer
The directory `mbed-tls-lib` previously in `.gitignore` no longer
exists. Instead, we can simply ignore the entire TARGET_IGNORE.
2021-02-25 14:02:57 +00:00
Lingkai Dong 63523bd0aa Remove _NS aliases for Musca B1/S1
In targets.json, ARM_MUSCA_B1 and ARM_MUSCA_S1 have alias target
names suffixed with `_NS`. They are identical to targets without
`_NS` and exist purely for compatibility with the old naming
convention we had. The CI builds them as separate targets and uses
extra resources.

As we are upgrading Musca targets to TF-M v1.2, it's time to clean
up the aliases.
2021-02-25 14:02:57 +00:00
Lingkai Dong eb0ac59494 Deprecation warnings for key enrollment algorithm
Setting/getting key enrollment algorithm is not recommended and not
part of the vanilla PSA or TF-M. For now keep the API just for
backward compatibility with existing projects, and this commit
adds deprecation warnings.
2021-02-25 14:02:57 +00:00
Lingkai Dong 12b2c89962 PSA/TF-M: support key enrollment algorithm
Add `psa_set_key_enrollment_algorithm()` and
`psa_get_key_enrollment_algorithm()` for TF-M targets.

Note: This is deprecated and for backward compatibility only.
Setting an enrollment algorithm is not recommended, because
using the same key with different algorithms can allow some
attacks based on arithmetic relations between different
computations made with the same key, or can escalate harmless
side channels into exploitable ones. Use this function only
if it is necessary to support a protocol for which it has been
verified that the usage of the key with multiple algorithms
is safe.
2021-02-25 14:02:57 +00:00
Lingkai Dong 88a38c2750 Musca S1: include missing `cmsis_nvic.h`
The vector table needs to be copied from ROM to RAM, in order for us
to set IRQ handlers at run time. The address in RAM is defined by
`NVIC_RAM_VECTOR_ADDRESS` in `cmsis_nvic.h`, but its inclusion
was missing from Musca S1's `cmsis.h` and consequently the vector
table was not copied.

On most targets this results in a memory access error when we set
vectors. But Musca S1's ROM is in its MRAM (which can be accessed
like any RAMs), and this causes the ROM image to be modified
with no error/warning. On the next boot, MCUboot fails the image
integrity check.

This commit adds the missing include, in the same spirit as
01dd997d55.
2021-02-25 14:02:57 +00:00
Lingkai Dong ac4533a5bd Exclude Musca signing layouts from compilation
Files containing signing layouts are parsed by the post build
hook for signing purpose only.
2021-02-25 14:02:57 +00:00
Vikas Katariya 79755ea243 Add missing license header and SPDX identifier
This files are imported and part of:
a8e12dae38

Issue has been raised https://github.com/mcu-tools/mcuboot/issues/930

As these scripts are going to be part of release its important to have
licensing information.
2021-02-25 14:02:57 +00:00
Vikas Katariya 1a8386a178 Refactor: MUSCA targets post binary hook scripts
Raise an exception if there was an issue with handling any command
when signing the binaries for MUSCA targets.
2021-02-25 14:02:57 +00:00
Vikas Katariya 308ffe9e89 Remove old binary signing scripts of TF-M 1.1 2021-02-25 14:02:56 +00:00
Vikas Katariya 8648e4f4d6 Remove: ARM_MUSCA_A1 support
ARM_MUSCA_A1 is not supported since Mbed OS 6.0
Refer: https://github.com/ARMmbed/mbed-os/pull/13165

Therefore remove files from kv_config and TF-M post binary hook script.
2021-02-25 14:02:56 +00:00
Vikas Katariya ef9ed987bc Update `ARM_MUSCA_S1.py` post binary hook script
The script changes are required with respect to TF-M v1.2
integration for this target. The imgtool.py is been replaced with
`wrapper.py` which uses click command to run the signing algorithm.

The version `-v` and dependencies `-d` have been updated to resolve
upgrade issues from TF-M v1.1 --> v1.2
2021-02-25 14:02:56 +00:00