Skip to content

Conversation

@crawfxrd
Copy link
Member

@crawfxrd crawfxrd commented Aug 19, 2025

Move modifying CFLAGS to common.mk so that boards only set configs by Make variables.

The only remaining use of CFLAGS in board Makefiles is for including headers from another directory to minimize duplicate files for model refreshes.

This also adds the CONFIG_ prefix to CHARGER and KBLED.

Test: Build with VERSION=0 is identical.

Resolves: #443

@crawfxrd crawfxrd force-pushed the cflags-configs branch 2 times, most recently from 1b1d844 to 65f4348 Compare August 19, 2025 21:36
Move modifying `CFLAGS` to `common.mk` so that boards only set configs
by Make variables.

The only remaining use of `CFLAGS` in board Makefiles is for including
headers from another directory to minimize duplicate files for model
refreshes.

This also adds the `CONFIG_` prefix to `CHARGER` and `KBLED`.

Test: Build with VERSION=0 is identical.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
Remove the default value for the charger to use.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
Copy link

@garrettjwilke garrettjwilke left a comment

Choose a reason for hiding this comment

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

built every firmware. all built correctly.

flashed and tested on a few laptops. all flashed correctly

@jackpot51 jackpot51 merged commit 273cc2f into master Sep 8, 2025
51 checks passed
@jackpot51 jackpot51 deleted the cflags-configs branch September 8, 2025 22:55
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.

boards: Replace use of CFLAGS with configs

3 participants