Skip to content

Commit f590d4f

Browse files
alexanderwachterMaureenHelm
authored andcommitted
drivers: lora: build with newlib
The loramac-node library uses math functions from math.h that are not included in the minimal lib. This commit changes the samples project config to always build with newlib and adds a dependency to newlib. Signed-off-by: Alexander Wachter <[email protected]>
1 parent 03892c1 commit f590d4f

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

drivers/lora/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
menuconfig LORA
1010
bool "LoRa support"
11+
depends on NEWLIB_LIBC
1112
help
1213
Include LoRa drivers in the system configuration.
1314

samples/drivers/lora/receive/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ CONFIG_LORA=y
55
CONFIG_LORA_SX1276=y
66
CONFIG_PRINTK=y
77
CONFIG_COUNTER=y
8+
CONFIG_NEWLIB_LIBC=y

samples/drivers/lora/send/prj.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ CONFIG_LORA=y
55
CONFIG_LORA_SX1276=y
66
CONFIG_PRINTK=y
77
CONFIG_COUNTER=y
8+
CONFIG_NEWLIB_LIBC=y

0 commit comments

Comments
 (0)