zephyr/drivers/lora/Kconfig
Jordan Yates f12d36a51e lorawan: move REQUIRES_FULL_LIBC dependency
Move the `REQUIRES_FULL_LIBC` dependency from `config LORA` to
`config LORAWAN`. The commit that added the `select` (f590d4fa) mentions
that this is required by `loramac-node`, which is only used by LoRaWAN,
not the base LoRa code.

This results in small FLASH savings when compiling the samples, but can
result in larger savings in more complex applications:
```
// With REQUIRES_FULL_LIBC
west build -b 96b_wistrio zephyr/samples/drivers/lora/send/
[162/162] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       37708 B       128 KB     28.77%
            SRAM:        8832 B        32 KB     26.95%
        IDT_LIST:          0 GB         2 KB      0.00%

// Without REQUIRES_FULL_LIBC
[181/181] Linking C executable zephyr/zephyr.elf
Memory region         Used Size  Region Size  %age Used
           FLASH:       37444 B       128 KB     28.57%
            SRAM:        8832 B        32 KB     26.95%
        IDT_LIST:          0 GB         2 KB      0.00%
```

Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
2022-07-02 14:16:18 +02:00

38 lines
669 B
Plaintext

#
# Copyright (c) 2019 Manivannan Sadhasivam
#
# SPDX-License-Identifier: Apache-2.0
#
# Top-level configuration file for LORA drivers.
menuconfig LORA
bool "LoRa support [EXPERIMENTAL]"
select POLL
select EXPERIMENTAL
help
Include LoRa drivers in the system configuration.
if LORA
module = LORA
module-str = lora
source "subsys/logging/Kconfig.template.log_config"
config LORA_SHELL
bool "LoRa Shell"
default y
depends on SHELL
help
Enable LoRa Shell for testing.
config LORA_INIT_PRIORITY
int "LoRa initialization priority"
default 90
help
System initialization priority for LoRa drivers.
source "drivers/lora/Kconfig.sx12xx"
endif # LORA