Default BLE_API to all

Export the full ST gap/gatt/hci/hal/l2cap command set by default instead of
just hci,gatt, so apps built against this SDK get the whole BLE API without
a rebuild. Costs ~9 KB more firmware flash: 788 KB, still 13 free pages to
the full stack. Update the build.sh comments and README (env-var table and
flash-budget table) to mark `all` as the default. Builds clean; all faps
link and resolve.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LEaD4ZeAfvWLBUxXp8G11r
This commit is contained in:
2026-09-11 15:03:38 +01:00
co-authored by Claude Fable 5.1
parent 17653ee6d7
commit 8a535df7e2
2 changed files with 8 additions and 8 deletions
+5 -5
View File
@@ -16,7 +16,7 @@
# includes the .fap under apps/Bluetooth) + SDK zip for ufbt
# ./build.sh flash build and flash over USB (Flipper connected, qFlipper closed)
# ./build.sh fap rebuild only the .fap (firmware already built once)
# BLE_API=all|min|hci,gap,gatt,hal,l2cap which ST API to export (default hci,gatt)
# BLE_API=all|min|hci,gap,gatt,hal,l2cap which ST API to export (default all)
# FW_TAG=1.4.3 ./build.sh pin a different firmware tag (default 1.4.3)
# JOBS=2 ./build.sh limit parallel compile jobs (default 4)
set -euo pipefail
@@ -135,10 +135,10 @@ FBT_ARGS=(
API_CSV=targets/f7/api_symbols.csv
# BLE_API selects which ST command headers are exported to apps (each exported
# function is kept in the firmware image):
# hci,gatt scanning, connections, GATT client/server (~12 KB, default)
# all also gap, hal, l2cap (~20 KB)
# min only the functions BT Inspector imports (~1.5 KB)
BLE_API="${BLE_API:-hci,gatt}"
# all every gap/gatt/hci/hal/l2cap command (~20 KB, default)
# hci,gatt scanning, connections, GATT client/server (~12 KB)
# min only the functions the bundled apps import (~1.5 KB)
BLE_API="${BLE_API:-all}"
# --- Firmware API exported to .fap apps (in addition to the ST BLE commands) ---
# Each area is appended below; every enabled symbol stays in the firmware image.