Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

An example of the mbed_app.json file for non-K64F boards is not correct #84

@toyowata

Description

@toyowata

An example of the mbed_app.json file for non-K64F boards is not correct here:

https://github.com/ARMmbed/mbed-os-example-client#requirements-for-non-k64f-board

This example configuration generates following build error:

In file included from ./mbed-os/features/mbedtls/inc/mbedtls/config.h:2585:0,
                 from ./mbed-os/features/FEATURE_CLIENT/mbed-client-mbed-tls/mbed-client-mbedtls/m2mconnectionsecuritypimpl.h:25,
                 from .\mbed-os\features\FEATURE_CLIENT\mbed-client-mbed-tls\source\m2mconnectionsecurity.cpp:22:
./mbed-os/features/mbedtls/inc/mbedtls/check_config.h:135:2: error: #error "MBEDTLS_TEST_NULL_ENTROPY defined, but not all prerequisites"
 #error "MBEDTLS_TEST_NULL_ENTROPY defined, but not all prerequisites"
  ^

[mbed] ERROR: "python" returned error code 1.

I think correct configuration for the mbed_app.json file is something like this:

    "target_overrides": {
        "your-target-name": {
            "target.macros_add": ["MBEDTLS_TEST_NULL_ENTROPY", "MBEDTLS_NO_DEFAULT_ENTROPY_SOURCES"]
        },

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions