Skip to content

Build system: handle library version updates and update u8g2 library #525

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

bradjc
Copy link
Contributor

@bradjc bradjc commented Jun 25, 2025

This PR adds a feature to AppMakefile.md to rebuild libraries if their version updates. The issue is that if a user already has compiled output for a library, if the version changes that compiled output is still there and make doesn't know to rebuild. This change allows libraries to specify a particular file as a dependency that make can track, and if the version updates that file will not exist and the library gets rebuilt.

This isn't necessary for completely new libraries as the pre-built files won't exist. This also doesn't affect libraries that only ever have one version.

As an example, I updated u8g2 to use this new feature.

@bradjc bradjc force-pushed the make-lib-versions-u8g2 branch from 307deed to e5c2e1d Compare June 25, 2025 19:12
bradjc added 2 commits June 25, 2025 13:51
Add `Makefile.version` so a library can express a particular file that
must exist for the library to be usable. If that file doesn't exist, the
build system knows to run Makefile.setup. This supports updating a
library, as even if the needed version changes the built artifacts will
still exist and make will not rebuild them.
Update to a newer version that includes the fixes for include
re-ordering.
@alevy alevy force-pushed the make-lib-versions-u8g2 branch from e5c2e1d to 3cc1ed0 Compare June 25, 2025 20:51
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.

2 participants