Skip to content
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

Conditionally compile USB-PD support #429

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

crawfxrd
Copy link
Member

Boards may not have USB-PD. Remove the need for a "none" option by only adding USB-PD sources when enabled.

The resulting binary for boards with USB-PD enabled (addw3, bonw15, serw13) are identical. The binary for boards without USB-PD now have the empty calls optimized out.

Boards may not have USB-PD. Remove the need for a "none" option by only
adding USB-PD sources when enabled.

The resulting binary for boards with USB-PD enabled (addw3, bonw15,
serw13) are identical. The binary for boards without USB-PD now have the
empty calls optimized out.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
@crawfxrd crawfxrd requested review from jackpot51 and a team January 18, 2024 17:52
@XV-02 XV-02 self-assigned this Jan 23, 2024
Copy link

@XV-02 XV-02 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not seeing any regressions around this. On a Serw13, I see the same charge behaviour on a build which includes this as with our currently release firmware. On other systems, everything seems similarly hunky-dory. Approving.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants