From 49bb2a63342b847068b54f0cc554ec7264284589 Mon Sep 17 00:00:00 2001 From: Alex Tereschenko Date: Fri, 11 Nov 2016 20:38:04 +0100 Subject: [PATCH 1/3] Kconfig: make mraa settings a submenu Instead of presenting all our options as a plain list under External Sources, let's make it a dedicated submenu instead, so that users can nicely select things they want. Signed-off-by: Alex Tereschenko --- Kconfig | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/Kconfig b/Kconfig index 07f6d9d..cb3c945 100644 --- a/Kconfig +++ b/Kconfig @@ -16,7 +16,7 @@ # limitations under the License. # -config MRAA +menuconfig MRAA bool prompt "Mraa Support" default n @@ -26,10 +26,11 @@ config MRAA help This option enables the mraa lib +if MRAA + config MRAA_GPIO bool - prompt "Mraa GPIO function support" - select MRAA + prompt "GPIO function support" select GPIO default n help @@ -37,8 +38,7 @@ config MRAA_GPIO config MRAA_AIO bool - prompt "Mraa AIO function support" - select MRAA + prompt "AIO function support" select AIO default n help @@ -46,9 +46,8 @@ config MRAA_AIO config MRAA_I2C bool - prompt "Mraa I2C function support" + prompt "I2C function support" select I2C - select MRAA select MRAA_GPIO default n help @@ -56,29 +55,28 @@ config MRAA_I2C config MRAA_PWM bool - prompt "Mraa PWM function support" + prompt "PWM function support" select PWM - select MRAA default n help This option enables support for MRAA PWM config MRAA_UART bool - prompt "Mraa UART function support" + prompt "UART function support" select UART - select MRAA default n help This option enables support for MRAA UART config MRAA_SPI bool - prompt "Mraa SPI function support" + prompt "SPI function support" select SPI select GPIO - select MRAA - select PINMUX default n help This option enables support for MRAA SPI + +endif + From 884a10dae89f0a542ae8df2a0b23c33039c019a6 Mon Sep 17 00:00:00 2001 From: Alex Tereschenko Date: Fri, 11 Nov 2016 20:40:44 +0100 Subject: [PATCH 2/3] Kconfig: correct description in the header Signed-off-by: Alex Tereschenko --- Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kconfig b/Kconfig index cb3c945..58cf224 100644 --- a/Kconfig +++ b/Kconfig @@ -1,4 +1,4 @@ -# Kconfig - Cryptography primitive options for TinyCrypt +# Kconfig - Configuration options for mraa library # # Copyright (c) 2015 Intel Corporation From 6143c1fe03b3b094cf5d4d405916d79dca58f07d Mon Sep 17 00:00:00 2001 From: Alex Tereschenko Date: Fri, 11 Nov 2016 20:41:32 +0100 Subject: [PATCH 3/3] Kconfig: add NEWLIB_LIBC to the default set we select Signed-off-by: Alex Tereschenko --- Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/Kconfig b/Kconfig index 58cf224..1100bc3 100644 --- a/Kconfig +++ b/Kconfig @@ -23,6 +23,7 @@ menuconfig MRAA select PINMUX select PINMUX_DEV select PINMUX_DEV_QMSI + select NEWLIB_LIBC help This option enables the mraa lib