Closed screamerbg closed 4 years ago
@screamerbg I take it the above instructions should be used with a particular sha for the pelion-integration
repo? Also, is this for the ARMmbed repo, or your fork?
@cmonr Correct, although you can reproduce it with any code where target.components_add
is "emitted" from a library (mbed_lib.json), but the application config (mbed_app.json) doesn't declare it, resulting the behavior explained above.
I've discussed this with @theotherjimmy in person about couple of weeks ago.
Bump @theotherjimmy @cmonr
@screamerbg thank you for raising this issue.Please take a look at the following comments:
Could you add some more detail to the description? A good description should be at least 25 words. What target(s) are you using? What toolchain(s) are you using? What version of Mbed OS are you using (tag or sha)? It would help if you could also specify the versions of any tools you are using? How can we reproduce your issue?
NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'.This indicates to us that at least all the fields have been considered. Please update the issue header with the missing information, the issue will not be mirroredto our internal defect tracking system or investigated until this has been fully resolved.
As this applies to the old tools I'm going to close this. @Patater can you add this to your list of things to ensure it isn't an issue with the new tools...
Description
The build system incorrectly handles a use case where
"component_add": ["SD"]
is "emitted" from a library, e.g.FEATURE_BOOTLOADER/mbed_lib.json
. The build system will correctly add-DCOMPONENT_SD=1
macro, but it will not add relevant component folders to the include paths, thus fails to compile the codebase.To reproduce:
mbed import http://github.com/screamerbg/pelion-integration
cd pelion-integration
+mbed update 48bd908
- don't use master which already has a workaround in place for this issue.mbed compile -t ARM -m UBLOX_C030_U201 -c -v
-DCOMPONENT_SD=1
is in the reported macros on the console, but thembed-os/components/COMPONENT_SD
path doesn't exist in the includes file inBUILD\UBLOX_C030_U201\ARM\.includes_<hash>.txt
mbed_app.json
and add"target.components_add" : ["SD"],
for entryUBLOX_C030_U201
mbed compile -t ARM -m UBLOX_C030_U201 -c -v
-DCOMPONENT_SD=1
is in the reported macros on the console, but this time thembed-os/components/COMPONENT_SD
path correctly is added to the includes file inBUILD\UBLOX_C030_U201\ARM\.includes_<hash>.txt
The codebase to reproduce this uses mbed-os-5.11.0 release.
Issue request type