-
Notifications
You must be signed in to change notification settings - Fork 3k
Inheritance - name of the inheritated target is not in the lables #3129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
bump |
Should we add non-public targets too? In this example, adding non-public targets would add |
Ah yes, the ever useful One advantage of having non-public targets be added to the list of labels would be for targets like the Nordic boards. For example: https://github.com/ARMmbed/mbed-os/blob/master/targets/targets.json#L1344 It would remove the need to have |
#2488 has some prior discussion of this. |
As I understand, by default a target is set to private (public: false). Thus in my code snippet above MCU_K22F is private and its label is not polluted. Is that correct? This taken from 2488 referenced above:
I assumed the same. When creating MCU family port, you want to have that label available but target should be private (not able to use it with scripts as it can't be built for various reasons). I find having to add extra label as a workaround. It was not obvious to us while we were creating a new MCU family in the tree and were receiving error like "device.h" not found .and like hey, MCU target is correct, why it cant find it. Thus I created this issue. |
@0xc0170 A target is by default set to public (public: true) https://github.com/ARMmbed/mbed-os/blob/master/docs/mbed_targets.md#public |
I spent a few minutes trying to think of a time when this would cause problems and I honestly can't think of a case. It may even be useful to include the root So seems like a good idea to me 👍 |
any extra label added to Target is pretty useless, as the code that label guards will always be enabled. |
I would say yes. The question to answer within this ticket is how hierarchy should look like (target inheritance). The above code snippet I provided, is this a valid use case ? I would say it is, at least for now ,thats how its done for various targets. cc @sg- @geky for opinions - for the question quoted in this post |
Uh oh!
There was an error while loading. Please reload this page.
Description
Question
This code snippet illustrate the problem:
To make K22F work, I would need to add to extra labels
MCU_K22F512
to the targetMCU_K22F512
. It's not defined by default. But for a regular target like K22F it is, as I recall. I could not find any relevant info in the docs.cc @bogdanm @theotherjimmy @MarceloSalazar
The text was updated successfully, but these errors were encountered: