Skip to content

Commit dcf2136

Browse files
committed
Kconfig: Update to use imply and rid module.conf
* Kconfig now has all the deps enabled so we can get rid of the hacky module.conf * deletes module.conf from all CMakelists as it will no longer be used Signed-off-by: Dhruva Gole <[email protected]>
1 parent a7d848a commit dcf2136

File tree

6 files changed

+7
-13
lines changed

6 files changed

+7
-13
lines changed

Kconfig

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66

77
config ARDUINO_API
88
bool "ARDUINO_API"
9-
depends on CPLUSPLUS
9+
imply CPLUSPLUS
10+
imply GPIO
11+
imply CPLUSPLUS
12+
imply I2C
13+
imply NEWLIB_LIBC_FLOAT_PRINTF
14+
imply CBPRINTF_FP_SUPPORT
15+
imply RING_BUFFER
1016
default n
1117

1218
if ARDUINO_API

module.conf

-8
This file was deleted.

samples/blinky_arduino/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
cmake_minimum_required(VERSION 3.20.0)
44

5-
set(CONF_FILE $ENV{ZEPHYR_BASE}/../modules/lib/Arduino-Zephyr-API/module.conf)
65
set(DTC_OVERLAY_FILE $ENV{ZEPHYR_BASE}/../modules/lib/Arduino-Zephyr-API/variants/${BOARD}/${BOARD}.overlay)
76

87
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

samples/button_press_led/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
cmake_minimum_required(VERSION 3.20.0)
44

5-
set(CONF_FILE $ENV{ZEPHYR_BASE}/../modules/lib/Arduino-Zephyr-API/module.conf)
65
set(DTC_OVERLAY_FILE $ENV{ZEPHYR_BASE}/../modules/lib/Arduino-Zephyr-API/variants/${BOARD}/${BOARD}.overlay)
76

87
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

samples/hello_arduino/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
cmake_minimum_required(VERSION 3.20.0)
44

5-
set(CONF_FILE $ENV{ZEPHYR_BASE}/../modules/lib/Arduino-Zephyr-API/module.conf)
65
set(DTC_OVERLAY_FILE $ENV{ZEPHYR_BASE}/../modules/lib/Arduino-Zephyr-API/variants/${BOARD}/${BOARD}.overlay)
76

87
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

samples/i2cdemo/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
cmake_minimum_required(VERSION 3.20.0)
44

5-
set(CONF_FILE $ENV{ZEPHYR_BASE}/../modules/lib/Arduino-Zephyr-API/module.conf)
65
set(DTC_OVERLAY_FILE $ENV{ZEPHYR_BASE}/../modules/lib/Arduino-Zephyr-API/variants/${BOARD}/${BOARD}.overlay)
76

87
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})

0 commit comments

Comments
 (0)