-
Couldn't load subscription status.
- Fork 3k
Description
Description
- Type: Question, possible enhancement
- Priority: Minor
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?