Prep for the app suite: libble staging gate + README overview

Only stage libble/ into apps that include ble_central.h (so non-BLE apps
don't compile the central layer). Rewrite the README overview to list the
full app suite and note that everything except Battery Health needs the
custom firmware.
This commit is contained in:
2026-09-11 14:08:05 +01:00
parent 0610a70655
commit eb34f0e61c
2 changed files with 46 additions and 16 deletions
+5 -2
View File
@@ -21,7 +21,7 @@
set -euo pipefail
HERE="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
APPS=(bt_inspector ble_hid_host) # app dirs under $HERE, each staged with libble/
APPS=(bt_inspector ble_hid_host) # app dirs under $HERE; BLE apps staged with libble/
APP_SRC="$HERE/bt_inspector" # used only for the BLE_API=min symbol scan
FW_DIR="${FW_DIR:-$HERE/flipperzero-firmware}"
FW_TAG="${FW_TAG:-1.4.3}"
@@ -119,7 +119,10 @@ mkdir -p applications_user
for app in "${APPS[@]}"; do
rm -rf "applications_user/$app"
cp -r "$HERE/$app" "applications_user/$app"
cp "$HERE"/libble/*.c "$HERE"/libble/*.h "applications_user/$app/"
# Only apps that include the shared header get the libble sources.
if grep -rql 'ble_central.h' "$HERE/$app"; then
cp "$HERE"/libble/*.c "$HERE"/libble/*.h "applications_user/$app/"
fi
done
FBT_ARGS=(