-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[build] Allow USB to be set to 0 #4619
Conversation
I'm confused about There's an It would also be good to not use |
None of the in-tree targets; a target would inevitably fail to compile if it did. microbit_v2, when/if added, should become the first one. |
Could you unify them, so it's simpler? Thanks. |
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.
One tweak. Otherwise it looks good. Thanks!
Unify USB-related makefile var and C def as CIRCUITPY_USB. Always define it as 0 or 1, same as all other settings. USB_AVAILABLE was conditionally defined in supervisor.mk, but never actually used to #ifdef USB-related code. Loosely related to adafruit#4546
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.
Thank you for cleaning this up!
USB_AVAILABLE
was conditionally defined in supervisor.mk,but never actually used to
#ifdef
USB-related code.Loosely related to #4546