btstack/port/wiced-h4/wiced-h4.mk

75 lines
2.5 KiB
Makefile
Raw Normal View History

2016-01-06 14:32:27 +00:00
#
# BTstack port for WICED framework
#
ifndef BT_CHIP
$(error BT_CHIP not set - WICED BTstack port only supported with Broadcom Bluetooth chipset)
endif
NAME := BTstack_for_BCM$(BT_CHIP)$(BT_CHIP_REVISION)
2017-04-13 14:24:06 +00:00
GLOBAL_INCLUDES += \
. \
../../src \
../../platform/embedded \
../../platform/wiced \
2017-04-13 14:24:06 +00:00
../../chipset/bcm \
../../../../
2016-01-06 14:32:27 +00:00
# micro-ecc of WICED tree used for SECP256R1 in LE Secure Connections
$(NAME)_COMPONENTS += crypto/micro-ecc
# additional CFLAGS
$(NAME)_CFLAGS += $(BTSTACK_CFLAGS)
2016-01-06 14:32:27 +00:00
# core BTstack sources
$(NAME)_SOURCES += \
2016-09-29 14:06:01 +00:00
../../src/ad_parser.c \
2016-07-06 12:08:21 +00:00
../../src/ble/att_db.c \
2016-01-06 14:32:27 +00:00
../../src/ble/att_dispatch.c \
../../src/ble/att_server.c \
../../src/ble/gatt_client.c \
2016-01-06 14:32:27 +00:00
../../src/ble/le_device_db_memory.c \
2017-02-01 14:48:18 +00:00
../../src/ble/gatt-service/battery_service_server.c \
2016-01-06 14:32:27 +00:00
../../src/ble/sm.c \
2017-02-01 14:48:18 +00:00
../../src/classic/hfp.c \
../../src/classic/hfp_ag.c \
../../src/classic/hfp_hf.c \
../../src/classic/hsp_hs.c \
2016-01-17 21:19:28 +00:00
../../src/classic/hsp_hs.c \
2016-01-06 14:32:27 +00:00
../../src/classic/rfcomm.c \
2016-07-06 12:08:21 +00:00
../../src/classic/sdp_server.c \
2016-01-06 14:32:27 +00:00
../../src/classic/sdp_client.c \
2016-07-06 12:08:21 +00:00
../../src/classic/sdp_client_rfcomm.c \
2016-01-06 14:32:27 +00:00
../../src/classic/sdp_util.c \
../../src/classic/spp_server.c \
2016-01-22 12:57:45 +00:00
../../src/btstack_linked_list.c \
../../src/btstack_memory.c \
../../src/btstack_memory_pool.c \
../../src/btstack_run_loop.c \
2017-11-09 12:34:08 +00:00
../../src/btstack_tlv.c \
2016-01-22 12:57:45 +00:00
../../src/btstack_util.c \
2016-01-06 14:32:27 +00:00
../../src/hci.c \
2016-07-06 12:08:21 +00:00
../../src/hci_cmd.c \
2016-01-06 14:32:27 +00:00
../../src/hci_dump.c \
../../src/hci_transport_h4.c \
2016-01-06 14:32:27 +00:00
../../src/l2cap.c \
../../src/l2cap_signaling.c \
2017-02-01 14:48:18 +00:00
../../example/sco_demo_util.c \
2016-01-06 14:32:27 +00:00
# WICED port incl. support for Broadcom chipset
$(NAME)_SOURCES += \
main.c \
../../platform/wiced/btstack_link_key_db_wiced_dct.c \
../../platform/wiced/btstack_run_loop_wiced.c \
../../platform/wiced/btstack_stdin_wiced.c \
../../platform/wiced/btstack_uart_block_wiced.c \
../../platform/wiced/le_device_db_wiced_dct.c \
../../chipset/bcm/btstack_chipset_bcm.c \
ifeq ($(BT_CHIP_XTAL_FREQUENCY),)
$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/$(BT_FIRMWARE_FILE)
else
$(NAME)_SOURCES += ../../../drivers/bluetooth/firmware/$(BT_CHIP)$(BT_CHIP_REVISION)/$(BT_CHIP_XTAL_FREQUENCY)/$(BT_FIRMWARE_FILE)
endif