platformio / platformio/platformio-core
Build error when parameter is overridden in mbed_app.json (for mbed libraries into project/lib)
@valeros is already working on this.
Since Feb 5, 2020.
- Dominant language
- Python
- Stars
- 9.5k
- Forks
- 905
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 2
Description
Configuration
Operating system: Ubuntu 16.04.6 LTS
PlatformIO Version (platformio --version): version 4.1.1b9
Description of problem
Currently it is possible to build mbed libraries in project/lib directory as PlatformIO can parse mbed_lib.json for each library and add macroses into mbed_config.h. The issue appears when you try to override parameters of those libraries through mbed_app.json. Build fails with error "mbed build API internal error. Attempt to override undefined parameter". It looks like currently it is only possible to override parameters of libraries which come with mbed by default.
Steps to Reproduce
- clone https://github.com/edgrin/pio-mbed-lib-target-overrides/tree/a8b580c5deb6e36e74de38f5755cdb611166445f
- try to build
- see error Attempt to override undefined parameter 'newlib.param' in 'application[*]'
- delete line 4 with '"newlib.param": 2' in mbed_app.json
- try to build
- see successful build with newlib in Dependency Graph
Actual Results
mbed build API internal error
Expected Results
Successful build
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.