-
-
Notifications
You must be signed in to change notification settings - Fork 781
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
target: add weak aliasing to allow disabling targets #1044
target: add weak aliasing to allow disabling targets #1044
Conversation
I don't understand the chain of includes that made it so this fails with my changes, supposedly doesn't touch any of that |
doesn't make much sense, it should have been failing before? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good and seems mostly ready for merge - please address the couple of points in target_probes.c and rebase against main and we'll merge it.
Thank you for the contribution!
Signed-off-by: Rafael Silva <[email protected]>
Signed-off-by: Rafael Silva <[email protected]>
72a2a47
to
2709f67
Compare
I thought about adding a debug message to warn that a probe method was called that has been disabled at build time, but left it for a future commit/pr if there's interest to not block this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, merging.
This'll definitely make, eg, just dropping all LPC targets out of firmware for debug builds.. considerably easier - thank you!
Cherry-picked from #1033
This PR doesn't actually allow (easily) the disabling targets, just lays some groundwork for it, and cleans a couple things up
Signed-off-by: Rafael Silva [email protected]