Skip to content

Commit 25347fe

Browse files
committed
bt:bt tele service refactor
bug: v/63069 update hfp ag_tele_service to support phone api Signed-off-by: JerryWang<[email protected]>
1 parent d90ac58 commit 25347fe

File tree

3 files changed

+656
-0
lines changed

3 files changed

+656
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -405,6 +405,12 @@ if(CONFIG_BLUETOOTH)
405405

406406
if(CONFIG_BLUETOOTH_HFP_AG)
407407
file(GLOB APPEND_FILES ${BLUETOOTH_DIR}/service/profiles/hfp_ag/*.c)
408+
if(CONFIG_PHONE_SERVICE)
409+
list(REMOVE_ITEM APPEND_FILES ${BLUETOOTH_DIR}/service/profiles/system/telephony_interface.c)
410+
list(REMOVE_ITEM APPEND_FILES ${BLUETOOTH_DIR}/service/profiles/hfp_ag/hfp_ag_tele_service.c)
411+
else()
412+
list(REMOVE_ITEM APPEND_FILES ${BLUETOOTH_DIR}/service/profiles/hfp_ag/hfp_ag_tele_phone_service.c)
413+
endif()
408414
list(APPEND CSRCS ${APPEND_FILES})
409415
endif()
410416

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,11 @@ endif #CONFIG_BLUETOOTH_HFP_HF
317317

318318
ifeq ($(CONFIG_BLUETOOTH_HFP_AG), y)
319319
CSRCS += service/profiles/hfp_ag/*.c
320+
ifeq ($(CONFIG_PHONE_SERVICE), y)
321+
CSRCS := $(filter-out $(wildcard service/profiles/system/telephony_interface.c) $(wildcard service/profiles/hfp_ag/hfp_ag_tele_service.c), $(wildcard $(CSRCS)))
322+
else
323+
CSRCS := $(filter-out $(wildcard service/profiles/hfp_ag/hfp_ag_tele_phone_service.c),$(wildcard $(CSRCS)))
324+
endif
320325
endif #CONFIG_BLUETOOTH_HFP_AG
321326

322327
ifeq ($(CONFIG_BLUETOOTH_SPP), y)

0 commit comments

Comments
 (0)