mbed-os/targets
Jaeden Amero bf676c1264 psa: Avoid re-definition of MBEDTLS_PSA_CRYPTO_C
Mbed TLS now enables PSA APIs by default on all targets. It's not
necessary to explicitly enable MBEDTLS_PSA_CRYPTO_C, as that can be
gotten from the Mbed TLS config.h.

However, many PSA targets depend on `-DMBEDTLS_PSA_CRYPTO_C` being
defined by the Mbed OS json configuration system and are not yet
properly including the Mbed TLS configuration; for these PSA targets,
warnings may remain until this issue is fixed.

Avoiding re-definition will eliminate warnings like the following, when
building mbed-os-example-blinky:

    Compile [ 14.5%]: pal_client_api_empty_intf.c
    [Warning] pal_client_api_intf.h@35,0: "PSA_SUCCESS" redefined
    Compile [ 14.6%]: pal_client_api_intf.c
    Compile [ 14.7%]: DeviceKey.cpp
    Compile [ 14.9%]: pal_internal_trusted_storage_intf.c
    [Warning] pal_internal_trusted_storage_intf.c@45,9: 'psa_its_set' is deprecated: PS specific types should not be used [-Wdeprecated-declarations]
    Compile [ 15.3%]: val_attestation.c
    [Warning] client.h@40,0: "PSA_VERSION_NONE" redefined
    <..>
    Compile [ 33.3%]: asn1parse.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 33.5%]: aes.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 33.6%]: asn1write.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 33.7%]: psa_crypto.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 33.8%]: blowfish.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 33.9%]: camellia.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.0%]: base64.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.2%]: ccm.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.3%]: chacha20.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.4%]: chachapoly.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.5%]: cipher_wrap.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.6%]: cmac.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.7%]: cipher.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 34.9%]: bignum.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 35.0%]: des.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 35.1%]: dhm.c
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 35.2%]: ctr_drbg.c
    <..>
    Compile [ 70.9%]: EthernetInterface.cpp
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 71.0%]: InternetSocket.cpp
    Compile [ 71.1%]: L3IPInterface.cpp
    [Warning] config.h@2838,0: "MBEDTLS_PSA_CRYPTO_C" redefined
    Compile [ 71.2%]: NetworkInterface.cpp
2019-06-12 16:21:13 +01:00
..
TARGET_ARM_FM ARM SSG/FM: Cope correctly with NC GPIO 2019-05-02 12:16:34 +03:00
TARGET_ARM_SSG "Update secure binaries for ARM_MUSCA_A1_S (ARMC6)" 2019-05-29 20:56:07 +01:00
TARGET_Analog_Devices Dynamic heap support will be breaking change for all targets in IAR 7.x 2019-02-22 09:25:09 +00:00
TARGET_Atmel Atmel: Cope correctly with NC GPIO 2019-05-02 12:16:34 +03:00
TARGET_Cypress Cypress: Fix issue #10613 2019-06-05 13:08:10 +01:00
TARGET_Freescale K66F: Update to SDK 2.5 2019-05-15 21:54:48 -07:00
TARGET_GigaDevice GigaDevice targets can return ninitialized variable in CAN driver 2019-03-07 16:41:42 +01:00
TARGET_Maxim Dynamic heap support will be breaking change for all targets in IAR 7.x 2019-02-22 09:25:09 +00:00
TARGET_NORDIC Fix nrf52 enabled uart count and enable uart0/1 2019-06-12 16:15:57 +01:00
TARGET_NUVOTON Merge pull request #10147 from kjbracey-arm/atomic_bitwise 2019-05-13 14:18:05 +01:00
TARGET_NXP "Update secure binaries for LPC55S69_S (ARMC6)" 2019-05-29 20:48:28 +01:00
TARGET_ONSEMI Dynamic heap support will be breaking change for all targets in IAR 7.x 2019-02-22 09:25:09 +00:00
TARGET_RDA Fix Syntax Error for IAR & ARMCC 2019-04-30 11:53:26 +08:00
TARGET_RENESAS Change FPU enable timing in "SystemInit()" 2019-05-16 13:40:33 +09:00
TARGET_Realtek Introduce Semaphore::acquire methods 2019-05-28 17:02:06 +03:00
TARGET_STM Merge pull request #10636 from u-blox/activation_status 2019-05-23 21:39:48 +01:00
TARGET_Silicon_Labs Merge pull request #10482 from SiliconLabs/fix/allow_nc_pins 2019-05-22 08:36:06 +01:00
TARGET_TOSHIBA Fixed support for DigitalOut(NC) instantiation 2019-04-04 15:16:29 +05:30
TARGET_TT Merge pull request #10616 from ThunderSoft123/master 2019-05-23 21:40:10 +01:00
TARGET_WICED Introduce Semaphore::acquire methods 2019-05-28 17:02:06 +03:00
TARGET_WIZNET Merge pull request #10617 from Wiznet/wiznet_develop 2019-05-21 15:07:10 +01:00
TARGET_ublox HI2110: Cope correctly with NC GPIO 2019-05-02 12:16:34 +03:00
targets.json psa: Avoid re-definition of MBEDTLS_PSA_CRYPTO_C 2019-06-12 16:21:13 +01:00