system76 / ec

System76 Open Source Embedded Controller
GNU General Public License v3.0
327 stars 72 forks source link

Conditionally compile USB-PD support #429

Closed crawfxrd closed 4 months ago

crawfxrd commented 9 months ago

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.