esp32: extract component/btstack, depend on CONFIG_BLUEDROID_ENABLED=n, update README

This commit is contained in:
Matthias Ringwald 2017-03-07 18:33:49 +01:00
parent 90b574741c
commit f69d0bf9f0
7 changed files with 36 additions and 22 deletions

View File

@ -3,7 +3,8 @@
# project subdirectory.
#
PROJECT_NAME := esp32_le_counter
PROJECT_NAME := spp_and_le_streamer
EXTRA_COMPONENT_DIRS := components
include $(IDF_PATH)/make/project.mk

View File

@ -4,7 +4,8 @@ Status: Initial port. Only SPP + LE Throughput example provided.
## Setup
- Follow [Espressif IoT Development Framework (IDF) setup](https://github.com/espressif/esp-idf) to install xtensa toolchain and esp-idf.
- Follow [Espressif IoT Development Framework (IDF) setup](https://github.com/espressif/esp-idf) to install xtensa toolchain.
- Checkout our [esp-idf fork](https://github.com/mringwal/esp-idf) and switch to branch 'support-alternative-bluetooth-stack' to allow alternative Bluetooth stack and make IDF_PATH point to it.
- In port/esp32, configure serial port for firmware upload as described before
## Usage

View File

@ -0,0 +1,31 @@
#
# Main component makefile.
#
# This Makefile can be left empty. By default, it will take the sources in the
# src/ directory, compile them and link them into lib(subdirectory_name).a
# in the build directory. This behaviour is entirely configurable,
# please read the ESP-IDF documents if you need to do this.
#
BTSTACK_ROOT := ../../../..
COMPONENT_ADD_INCLUDEDIRS := \
${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include \
${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include \
$(BTSTACK_ROOT)/src/classic \
$(BTSTACK_ROOT)/src/ble/gatt-service \
$(BTSTACK_ROOT)/src/ble \
$(BTSTACK_ROOT)/src/classic \
$(BTSTACK_ROOT)/src \
$(BTSTACK_ROOT)/platform/freertos \
include \
COMPONENT_SRCDIRS := \
$(BTSTACK_ROOT)/src/ble/gatt-service \
$(BTSTACK_ROOT)/src/ble \
$(BTSTACK_ROOT)/src/classic \
$(BTSTACK_ROOT)/src/ \
$(BTSTACK_ROOT)/platform/freertos \
. \
CFLAGS += -Wno-format

View File

@ -6,25 +6,5 @@
# in the build directory. This behaviour is entirely configurable,
# please read the ESP-IDF documents if you need to do this.
#
BTSTACK_ROOT := ../../..
COMPONENT_ADD_INCLUDEDIRS := \
$(BTSTACK_ROOT)/src/ble/gatt-service \
$(BTSTACK_ROOT)/src/ble \
$(BTSTACK_ROOT)/src/classic \
$(BTSTACK_ROOT)/src \
$(BTSTACK_ROOT)/platform/freertos \
${BTSTACK_ROOT}/3rd-party/bluedroid/decoder/include \
${BTSTACK_ROOT}/3rd-party/bluedroid/encoder/include \
. \
COMPONENT_SRCDIRS := \
$(BTSTACK_ROOT)/src/ble/gatt-service \
$(BTSTACK_ROOT)/src/ble \
$(BTSTACK_ROOT)/src/classic \
$(BTSTACK_ROOT)/src/ \
$(BTSTACK_ROOT)/platform/freertos \
. \
CFLAGS += -Wno-format

View File

@ -90,6 +90,7 @@ CONFIG_OPTIMIZATION_LEVEL_DEBUG=y
# Component config
#
CONFIG_BT_ENABLED=y
CONFIG_BLUEDROID_ENABLED=y
CONFIG_BTC_TASK_STACK_SIZE=3072
# CONFIG_BLUEDROID_MEM_DEBUG is not set
# CONFIG_BT_DRAM_RELEASE is not set