diff --git a/port/mtk/Makefile b/port/mtk/Makefile index da7689fc1..63fa5a414 100644 --- a/port/mtk/Makefile +++ b/port/mtk/Makefile @@ -15,6 +15,7 @@ CFLAGS += -I$(BTSTACK_ROOT)/src/ CFLAGS += -I$(BTSTACK_ROOT)/ble CFLAGS += -I$(BTSTACK_ROOT)/platform/daemon/src CFLAGS += -I$(BTSTACK_ROOT)/platform/posix +CFLAGS += -I$(BTSTACK_ROOT)/3rd-party/md5 CFLAGS += -I. VPATH += $(BTSTACK_ROOT)/src @@ -23,6 +24,7 @@ VPATH += $(BTSTACK_ROOT)/src/classic VPATH += $(BTSTACK_ROOT)/platform/posix VPATH += $(BTSTACK_ROOT)/platform/daemon/src VPATH += $(BTSTACK_ROOT)/platform/daemon/example +VPATH += $(BTSTACK_ROOT)/3rd-party/md5 libBTstack_OBJS = \ btstack.o \ @@ -41,9 +43,11 @@ libBTstack_OBJS = \ BTdaemon_OBJS = $(libBTstack_OBJS) \ ad_parser.o \ att_dispatch.o \ - btstack_link_key_db_memory.o \ + btstack_link_key_db_tlv.o \ btstack_memory.o \ btstack_memory_pool.o \ + btstack_tlv.o \ + btstack_tlv_posix.o \ btstack_crypto.o \ daemon.o \ gatt_client.o \ @@ -52,7 +56,8 @@ BTdaemon_OBJS = $(libBTstack_OBJS) \ btstack_uart_block_posix.o \ l2cap.o \ l2cap_signaling.o \ - le_device_db_memory.o \ + le_device_db_tlv.o \ + md5.o \ rfcomm.o \ rfcomm_service_db_hash.o \ sdp_server.o \ diff --git a/port/mtk/btstack_config.h b/port/mtk/btstack_config.h index 77877bb14..363360bca 100644 --- a/port/mtk/btstack_config.h +++ b/port/mtk/btstack_config.h @@ -23,6 +23,8 @@ #define HCI_ACL_PAYLOAD_SIZE 1021 #define MAX_NR_LE_DEVICE_DB_ENTRIES 1 +#define NVM_NUM_DEVICE_DB_ENTRIES 16 + // Daemon configuration #define ENABLE_SDP #define ENABLE_RFCOMM