Skip to content

bluetooth: hogp: add build system registration#50

Open
chengkai15 wants to merge 1 commit into
open-vela:devfrom
chengkai15:feature/dev-hogp
Open

bluetooth: hogp: add build system registration#50
chengkai15 wants to merge 1 commit into
open-vela:devfrom
chengkai15:feature/dev-hogp

Conversation

@chengkai15

Copy link
Copy Markdown
Contributor

Summary

Add HOGP Device/Host compilation entries in both CMakeLists.default.txt
and Makefile.default so that CONFIG_BT_HOGP_DEVICE and CONFIG_BT_HOGP_HOST
actually compile hogp_device.c / hogp_host.c into the final binary.

Why

external/zblue/zblue/subsys/bluetooth/services/hogp/{hogp_device,hogp_host}.c
are introduced by the inner zblue feature branch (see external_zblue#226), but
the outer zblue wrapper build system (Makefile.default + CMakeLists.default.txt)
did not register these source files, so turning on CONFIG_BT_HOGP_DEVICE=y
and CONFIG_BT_HOGP_HOST=y had no effect — HOGP object files never participated
in the link.

This PR adds the CSRCS entries in both build systems. After merge,
CONFIG_BT_HOGP_DEVICE=y / CONFIG_BT_HOGP_HOST=y correctly include the
HOGP implementation into libapps.a.

Dependencies

How tested

Local build on vendor/openvela/boards/vela/configs/goldfish-armeabi-v7a-ap
with CONFIG_BT_HOGP_DEVICE=y + CONFIG_BT_HOGP_HOST=y:

  • Build succeeds (exit 0)
  • nm nuttx | grep bt_hogp_ shows all bt_hogp_device_* / bt_hogp_host_* T symbols
  • HOGP .o files present in libapps.a

bug: v/89553

bug: v/89553

Add HOGP Device/Host compilation entries in both CMakeLists.default.txt
and Makefile.default so that CONFIG_BT_HOGP_DEVICE and CONFIG_BT_HOGP_HOST
actually compile hogp_device.c / hogp_host.c into the final binary.

Signed-off-by: Kai Cheng <chengkai@xiaomi.com>
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.

3 participants