Skip to content

Intended project structure #2335

@javier-moreno-tridonic-com

Description

Hi there,

We are doing our first attempt to port our current software to mbed5. The way we understood it, the new configuration would allow us to configure a new target per final product that could inherit from the platform target.

The initial idea was to translate all our old private yotta modules with different functionalities into "FEATURE_" folders. This way we could select the appropriate features for our different targets in the targets.json. Allowing us to fit everything (mbed5 + a bunch of own features) in one custom repository (reducing the overhead of maintaining and releasing).

For that approach to work, I had to modify the following code in /mbed-os/tools/config.py

 # Allowed features in configurations
    __allowed_features = [
        "UVISOR", "BLE", "CLIENT", "IPV4", "IPV6", "COMMON_PAL", "STORAGE", "LOGGER"
    ]

Where "FEATURE_LOGGER" is just a dummy feature that I'm using to test this concept. The fact that I needed to do such change makes me think that this is not the intended way to add custom functionality to mbed5. What is then the intended project structure?

@MarceloSalazar @markus-becker-tridonic-com

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions