Skip to content

Fuel gauge cmake library structure incorrect #93834

@matt-wood-ct

Description

@matt-wood-ct

Describe the bug

Fuel gauge drivers are creating a library per driver rather then one library for the fuel_gauge group with all sources included. This is not inline with the rest of the drivers in zephyr, this was a minor detail missed during the reviews on the original introduction.

The issue with this structure is that its is not properly extensible out of tree, normal out of tree drivers utilize zephyr_library_amend(), this cannot be used on fuel_gauges as there is no library called that to amend.

Edit:
Drafted pull request: #93836

Regression

  • This is a regression.

Steps to reproduce

N/A structural issue, reproduction not relevant

Relevant log output

N/A

Impact

Functional Limitation – Some features not working as expected, but system usable.

Environment

N/A

Additional Context

Discussed in Discord in advance of raising issue, @bjarki-andreasen confirms this is a mistake likely missed during initial reviews.

Metadata

Metadata

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions