Skip to content

build: separate development and flight configs#161

Open
mshinjo wants to merge 4 commits intomainfrom
finch-development-flag
Open

build: separate development and flight configs#161
mshinjo wants to merge 4 commits intomainfrom
finch-development-flag

Conversation

@mshinjo
Copy link
Member

@mshinjo mshinjo commented Mar 9, 2026

The goal is to have a clean mechanism to switch between development
builds and flight-ready builds without relying on ad-hoc comment/uncomment
changes in app configs.

Also, this separates hardware-dependent configuration from the app layer.

@mshinjo mshinjo force-pushed the finch-development-flag branch from 3795dcb to 0612559 Compare March 9, 2026 03:43
@mshinjo mshinjo marked this pull request as ready for review March 9, 2026 16:19
@alexapostolu
Copy link
Member

alexapostolu commented Mar 10, 2026

It might be better to have separate debug Kconfigs for debug instead of one main debug config, thoughts?

@mshinjo mshinjo force-pushed the finch-development-flag branch from 0612559 to e7b5af7 Compare March 10, 2026 22:02
@mshinjo mshinjo marked this pull request as draft March 10, 2026 22:18
@mshinjo
Copy link
Member Author

mshinjo commented Mar 10, 2026

It might be better to have separate debug Kconfigs for debug instead of one main debug config, thoughts?

Yeah, I didn't actually mean 'debug', but I mentioned it... Removed it where mentioned. The FINCH_DEVELOPMENT Kconfig is meant for development, not debugging. Sorry. Fixed!

mshinjo added 4 commits March 10, 2026 18:25
Add a 'FINCH_DEVELOPMENT' Kconfig option so development
configuration can stay separate from flight-ready builds.

This is important because:
1. We want to be able to switch between the two easily
(a single Kconfig option is nice and easy).
2. We want to avoid ad-hoc comment out/in styles, which is very messy
(including commenting out/in Kconfig options).
3. We want to make sure we can run CI on both modes.

Signed-off-by: Mirai SHINJO <oss@mshinjo.com>
Move GPIO and serial defaults into the FINCH board defconfigs so these
hardware-dependent capabilities live under 'boards/' instead of being
repeated in the apps' prj.conf files.

Signed-off-by: Mirai SHINJO <oss@mshinjo.com>
This keeps the default builds flight-ready and lets development builds
opt in through the FINCH_DEVELOPMENT Kconfig.

Signed-off-by: Mirai SHINJO <oss@mshinjo.com>
Disable the Zephyr boot banner and printk in the default app
configurations so the default flight builds stay quiet on UART.

Development builds can still enable UART logging through
'FINCH_DEVELOPMENT'.

Signed-off-by: Mirai SHINJO <oss@mshinjo.com>
@mshinjo mshinjo force-pushed the finch-development-flag branch from e7b5af7 to fdb3d9f Compare March 10, 2026 22:25
@mshinjo mshinjo marked this pull request as ready for review March 10, 2026 22:26

CONFIG_LOG=y
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_BOOT_BANNER=n
Copy link
Member

Choose a reason for hiding this comment

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

If I create a really nice ASIC art FINCH boot banner, then can we enable the boot banner :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants