You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2021/08/26 18:56:30 UTC

[incubator-nuttx] 01/06: License: add Bluetooth LE support to the license guard

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 29bfbf8769bfc269440ad72a755947c1bc1f4f0f
Author: Alin Jerpelea <al...@sony.com>
AuthorDate: Thu Aug 26 11:09:48 2021 +0200

    License: add Bluetooth LE support to the license guard
    
    If ALLOW_BSD_COMPONENTS is not enabled in the license setup,
    Bluetooth LE support will be disabled
    
    Signed-off-by: Alin Jerpelea <al...@sony.com>
---
 Kconfig                    | 4 ++++
 wireless/bluetooth/Kconfig | 1 +
 2 files changed, 5 insertions(+)

diff --git a/Kconfig b/Kconfig
index e4cfc6b..f804a96 100644
--- a/Kconfig
+++ b/Kconfig
@@ -20,6 +20,10 @@ config ALLOW_BSD_COMPONENTS
 		NOTE: Please check that the license for each enabled
 		component matches your project license.
 
+		NOTE: If this option is not set the following components
+		are not included in the setup menu:
+		    Bluetooth LE support
+
 config ALLOW_GPL_COMPONENTS
 	bool "Use components that have GPL/LGPL licenses"
 	default n
diff --git a/wireless/bluetooth/Kconfig b/wireless/bluetooth/Kconfig
index f5bcb75..7508726 100644
--- a/wireless/bluetooth/Kconfig
+++ b/wireless/bluetooth/Kconfig
@@ -42,6 +42,7 @@
 menuconfig WIRELESS_BLUETOOTH
 	bool "Bluetooth LE support"
 	default n
+	depends on ALLOW_BSD_COMPONENTS
 	select MM_IOB
 	select SCHED_HPWORK
 	select SCHED_LPWORK