Skip to content

custom_targets.json and modular target board support packages #6581

@0Grit

Description

@0Grit

Description

  • Type: Question, possible enhancement
  • Priority: Minor

@theotherjimmy @0xc0170

Background

Assume I create a custom target and want to use that target in multiple applications.
The most elegant approach I can think of with my limited understanding of the config system, would be to create a git repository that contains the following:

  • PinNames.h
  • device.h
  • custom_targets.json
  • git submodules of any of the board's IC drivers not already included with mbedOS

This repository would then be imported as a git submodule of any applications I develop for the board.

(or, if the application is hardware agnostic enough, I might create a new repository that includes both the application and BSP as git submodules)

Known Issues to using this approach:

  • custom_targets.json needs to be in the root of the "project"
  • managing mbedOS version dependencies

Questions

  • What currently is the cleanest way to accomplish modular custom target support for an application?

  • What, if anything, could be done to 'enhance' custom target support?

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