From 13770be456aa1e8edc9598cff6acc06b89937792 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Thu, 11 Aug 2022 09:57:06 +0200 Subject: [PATCH] pkg/esp32_sdk_lib_bt_esp32: add BLE library for ESP32 --- pkg/esp32_sdk_lib_bt_esp32/Kconfig | 14 ++++++++++++++ pkg/esp32_sdk_lib_bt_esp32/Makefile | 10 ++++++++++ pkg/esp32_sdk_lib_bt_esp32/Makefile.dep | 4 ++++ pkg/esp32_sdk_lib_bt_esp32/Makefile.include | 3 +++ pkg/esp32_sdk_lib_bt_esp32/doc.txt | 6 ++++++ 5 files changed, 37 insertions(+) create mode 100644 pkg/esp32_sdk_lib_bt_esp32/Kconfig create mode 100644 pkg/esp32_sdk_lib_bt_esp32/Makefile create mode 100644 pkg/esp32_sdk_lib_bt_esp32/Makefile.dep create mode 100644 pkg/esp32_sdk_lib_bt_esp32/Makefile.include create mode 100644 pkg/esp32_sdk_lib_bt_esp32/doc.txt diff --git a/pkg/esp32_sdk_lib_bt_esp32/Kconfig b/pkg/esp32_sdk_lib_bt_esp32/Kconfig new file mode 100644 index 0000000000..a26e637942 --- /dev/null +++ b/pkg/esp32_sdk_lib_bt_esp32/Kconfig @@ -0,0 +1,14 @@ +# Copyright (c) 2021 Gunar Schorcht +# +# This file is subject to the terms and conditions of the GNU Lesser +# General Public License v2.1. See the file LICENSE in the top level +# directory for more details. +# + +config PACKAGE_ESP32_SDK_LIB_BT_ESP32 + bool "ESP32 SDK Bluetooth library for the ESP32 SoC" + depends on TEST_KCONFIG + depends on HAS_ARCH_ESP32 + depends on HAS_ESP_BLE_ESP32 + help + Vendor SDK Bluetooth library for ESP32 SoC diff --git a/pkg/esp32_sdk_lib_bt_esp32/Makefile b/pkg/esp32_sdk_lib_bt_esp32/Makefile new file mode 100644 index 0000000000..3e5c369c26 --- /dev/null +++ b/pkg/esp32_sdk_lib_bt_esp32/Makefile @@ -0,0 +1,10 @@ +PKG_NAME=esp32_sdk_lib_bt_esp32 +PKG_URL=https://github.com/espressif/esp32-bt-lib +# This is a version in the v4.4.1 release branch +PKG_VERSION=b877f7e1fc98dccfcf4dbf31f215c5cb44ec3f0d +PKG_LICENSE=Apache-2.0 + +include $(RIOTBASE)/pkg/pkg.mk + +# there is nothing to compile +all: diff --git a/pkg/esp32_sdk_lib_bt_esp32/Makefile.dep b/pkg/esp32_sdk_lib_bt_esp32/Makefile.dep new file mode 100644 index 0000000000..28aab63061 --- /dev/null +++ b/pkg/esp32_sdk_lib_bt_esp32/Makefile.dep @@ -0,0 +1,4 @@ +# This package can only be used with the ESP32 CPU +FEATURES_REQUIRED += arch_esp32 +FEATURES_REQUIRED += esp_ble +FEATURES_REQUIRED += esp_ble_esp32 diff --git a/pkg/esp32_sdk_lib_bt_esp32/Makefile.include b/pkg/esp32_sdk_lib_bt_esp32/Makefile.include new file mode 100644 index 0000000000..cd7674d74a --- /dev/null +++ b/pkg/esp32_sdk_lib_bt_esp32/Makefile.include @@ -0,0 +1,3 @@ +export ESP32_SDK_LIB_BT_DIR ?= $(PKGDIRBASE)/esp32_sdk_lib_bt_esp32 + +PSEUDOMODULES += esp32_sdk_lib_bt_esp32 diff --git a/pkg/esp32_sdk_lib_bt_esp32/doc.txt b/pkg/esp32_sdk_lib_bt_esp32/doc.txt new file mode 100644 index 0000000000..b88167ee82 --- /dev/null +++ b/pkg/esp32_sdk_lib_bt_esp32/doc.txt @@ -0,0 +1,6 @@ +/** + * @defgroup pkg_esp32_sdk_lib_bt_esp32 ESP32 SDK Bluetooth library for the ESP32 SoC + * @ingroup pkg_esp32_sdk + * @brief Vendor SDK Bluetooth library for ESP32 SoC by Espressif + * @see https://github.com/espressif/esp32-bt-lib + */