mirror of
https://github.com/oopuuu/zTC1.git
synced 2025-12-16 23:18:24 +08:00
36 lines
1.1 KiB
Makefile
36 lines
1.1 KiB
Makefile
#
|
|
# Copyright 2016, MXCHIP Corporation
|
|
# All Rights Reserved.
|
|
#
|
|
|
|
NAME := Lib_Bluetooth_Embedded_Dual_mode_Stack_for_$(BT_CHIP)$(BT_CHIP_REVISION)
|
|
|
|
BTE_PLATFORM_DIR := ../BTE_platform
|
|
|
|
GLOBAL_INCLUDES += . \
|
|
../include
|
|
|
|
# Include BTE stack as component
|
|
#$(NAME)_COMPONENTS := libraries/bluetooth/BTE
|
|
|
|
BLUETOOTH_LIB_TYPE := dual_mode
|
|
|
|
ifneq ($(wildcard $(CURDIR)BTE_$(BLUETOOTH_LIB_TYPE).$(HOST_ARCH).$(TOOLCHAIN_NAME).release.a),)
|
|
$(NAME)_PREBUILT_LIBRARY := BTE_$(BLUETOOTH_LIB_TYPE).$(HOST_ARCH).$(TOOLCHAIN_NAME).release.a
|
|
else
|
|
# Build from source (MXCHIP internal)
|
|
include $(CURDIR)$(BLUETOOTH_LIB_TYPE)_src.mk
|
|
endif
|
|
|
|
|
|
# Include appropriate firmware as component
|
|
$(NAME)_COMPONENTS += libraries/bluetooth/firmware
|
|
|
|
$(NAME)_SOURCES += $(BTE_PLATFORM_DIR)/mico_bt_bus.c \
|
|
$(BTE_PLATFORM_DIR)/mico_bt_hcd.c \
|
|
$(BTE_PLATFORM_DIR)/mico_bt_logmsg.c \
|
|
$(BTE_PLATFORM_DIR)/mico_bt_nvram_access.c \
|
|
$(BTE_PLATFORM_DIR)/mico_upio.c
|
|
|
|
VALID_PLATFORMS := MK3238 MK3239
|
|
|