Skip to content

Add optional protocol and KCX_BTAUDIO build flags - #149

Merged
pfeerick merged 2 commits into
masterfrom
148-133-build-flags
Sep 2, 2026
Merged

Add optional protocol and KCX_BTAUDIO build flags#149
pfeerick merged 2 commits into
masterfrom
148-133-build-flags

Conversation

@pfeerick

@pfeerick pfeerick commented Sep 2, 2026

Copy link
Copy Markdown
Member

Summary

Both changes are pure targets.json data additions — cloudbuild's flag validation, cmake-arg generation, DB storage, and UI "Add Flag" picker are already fully generic and required no Go or frontend code changes.

Test plan

  • jq . targets.json validates
  • go build ./...
  • go test ./targets/... ./firmware/... pass
  • Ran the real API server locally (Postgres in Docker + go run ./cmd/ebuild run api) against this targets.json:
    • GET /api/targets returns the new flags/tags in the exact shape the UI consumes
    • POST /api/jobs with pxx2=NO + ghost=NO on x10express201, resolved to build_flags: [{"key":"GHOST","value":"NO"},{"key":"PXX2","value":"NO"}]
    • POST /api/jobs with kcx_btaudio=YES on tx15201, resolved to -DKCX_BTAUDIO=YES
    • Same kcx_btaudio=YES on x10express (no kcx_btaudio tag) → 422 option flag not supported, confirming tag-scoping correctly restricts it

🤖 Generated with Claude Code

pfeerick and others added 2 commits September 2, 2026 21:01
Adds pxx1, pxx2, ghost, multi, dsmp and afhds3 as global build flags so
individual radio protocol modules can be disabled at build-request time,
useful for flash-constrained targets such as translation builds (#148).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Adds an opt-in kcx_btaudio build flag (-DKCX_BTAUDIO=YES) scoped to the
tx15 and tx16smk3 targets via a new tag, matching the existing bluetooth
tag pattern. Available since firmware v3.0 nightly (EdgeTX/edgetx#6777,
EdgeTX/edgetx#7056) (#133).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@pfeerick
pfeerick merged commit f558de1 into master Sep 2, 2026
5 checks passed
@pfeerick
pfeerick deleted the 148-133-build-flags branch September 2, 2026 11:29
@pfeerick pfeerick mentioned this pull request Sep 2, 2026
4 tasks
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.

add options to turn off PXX1, PXX2, GHOST, MULTI, DSMP, AFHDS3 chore: add KCX_BTAUDIO

1 participant