mirror of
https://github.com/Ai-Thinker-Open/Ai-Thinker-Open_RTL8710BX_ALIOS_SDK.git
synced 2026-08-28 09:11:31 +00:00
rel_1.6.0 init
This commit is contained in:
commit
27b3e2883d
19359 changed files with 8093121 additions and 0 deletions
88
Living_SDK/kernel/protocols/bluetooth/bluetooth.mk
Normal file
88
Living_SDK/kernel/protocols/bluetooth/bluetooth.mk
Normal file
|
|
@ -0,0 +1,88 @@
|
|||
NAME := bluetooth
|
||||
|
||||
$(NAME)_TYPE := kernel
|
||||
$(NAME)_MBINS_TYPE := kernel
|
||||
|
||||
GLOBAL_INCLUDES += include \
|
||||
include/drivers \
|
||||
common/include \
|
||||
port/include
|
||||
|
||||
$(NAME)_INCLUDES += common/tinycrypt/include \
|
||||
../../rhino/core/include
|
||||
|
||||
$(NAME)_COMPONENTS += yloop
|
||||
|
||||
ifeq ($(bt_mesh), 1)
|
||||
$(NAME)_COMPONENTS += protocols.bluetooth.host.bt_mesh
|
||||
$(NAME)_INCLUDES += include/bluetooth/mesh
|
||||
GLOBAL_DEFINES += CONFIG_BT_MESH
|
||||
endif
|
||||
|
||||
$(NAME)_SOURCES := common/atomic_c.c \
|
||||
common/buf.c \
|
||||
common/log.c \
|
||||
common/poll.c \
|
||||
host/uuid.c \
|
||||
host/hci_core.c \
|
||||
host/conn.c \
|
||||
host/l2cap.c \
|
||||
host/att.c \
|
||||
host/gatt.c \
|
||||
host/crypto.c \
|
||||
host/smp.c \
|
||||
host/keys.c \
|
||||
common/tinycrypt/source/cmac_mode.c \
|
||||
common/tinycrypt/source/aes_encrypt.c \
|
||||
common/rpa.c \
|
||||
common/work.c \
|
||||
port/aos_port.c
|
||||
|
||||
$(NAME)_SOURCES += host/hci_ecc.c \
|
||||
common/tinycrypt/source/utils.c \
|
||||
common/tinycrypt/source/sha256.c \
|
||||
common/tinycrypt/source/hmac.c \
|
||||
common/tinycrypt/source/hmac_prng.c \
|
||||
common/tinycrypt/source/cmac_mode.c \
|
||||
common/tinycrypt/source/aes_encrypt.c \
|
||||
common/tinycrypt/source/ecc.c \
|
||||
common/tinycrypt/source/ecc_dh.c
|
||||
|
||||
bt_controller?=0
|
||||
ifeq ($(bt_controller), 1)
|
||||
$(NAME)_COMPONENTS += protocols.bluetooth.controller
|
||||
GLOBAL_DEFINES += CONFIG_BT_CTLR
|
||||
endif
|
||||
|
||||
ifeq ($(hci_h4),1)
|
||||
$(NAME)_SOURCES += hci_drivers/h4.c
|
||||
endif
|
||||
|
||||
ifeq ($(COMPILER),)
|
||||
$(NAME)_CFLAGS += -Wall -Werror
|
||||
else ifeq ($(COMPILER),gcc)
|
||||
$(NAME)_CFLAGS += -Wall -Werror
|
||||
endif
|
||||
|
||||
GLOBAL_DEFINES += CONFIG_AOS_BLUETOOTH
|
||||
GLOBAL_DEFINES += CONFIG_BLUETOOTH
|
||||
GLOBAL_DEFINES += CONFIG_BT_PERIPHERAL
|
||||
GLOBAL_DEFINES += CONFIG_BT_SMP
|
||||
GLOBAL_DEFINES += CONFIG_BT_CONN
|
||||
|
||||
GLOBAL_DEFINES += CONFIG_BLE_50
|
||||
|
||||
## BLE debug log general control macro (Note: still to be affected by DEBUG)
|
||||
## Enable below macros if BLE stack debug needed
|
||||
GLOBAL_DEFINES += CONFIG_BT_DEBUG_LOG
|
||||
GLOBAL_DEFINES += CONFIG_BT_DEBUG
|
||||
|
||||
## BLE subsystem debug log control macro
|
||||
## Enable below macros if component-specific debug needed
|
||||
#GLOBAL_DEFINES += CONFIG_BT_DEBUG_L2CAP
|
||||
#GLOBAL_DEFINES += CONFIG_BT_DEBUG_CONN
|
||||
#GLOBAL_DEFINES += CONFIG_BT_DEBUG_ATT
|
||||
#GLOBAL_DEFINES += CONFIG_BT_DEBUG_GATT
|
||||
#GLOBAL_DEFINES += CONFIG_BT_DEBUG_HCI_DRIVER
|
||||
#GLOBAL_DEFINES += CONFIG_BT_DEBUG_HCI_CORE
|
||||
#GLOBAL_DEFINES += CONFIG_BT_DEBUG_CORE
|
||||
Loading…
Add table
Add a link
Reference in a new issue