From 8870d16ae0b5a234e8c7b00bf5f766de252f5dda Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 30 Jun 2025 09:33:39 +1200 Subject: [PATCH] Move NUM_MISSION_ITEMS_SUPPORTED to dataman The define is used in dataman, not navigator, so this config variable needs to be moved to the dataman module, otherwise it breaks the build if navigator is not included in the build. --- src/modules/dataman/Kconfig | 9 +++++++++ src/modules/navigator/Kconfig | 9 --------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/modules/dataman/Kconfig b/src/modules/dataman/Kconfig index a0e9c0852f..9e82a5425e 100644 --- a/src/modules/dataman/Kconfig +++ b/src/modules/dataman/Kconfig @@ -19,3 +19,12 @@ menuconfig DATAMAN_PERSISTENT_STORAGE depends on MODULES_DATAMAN ---help--- Dataman supports reading/writing to persistent storage + +menuconfig NUM_MISSION_ITMES_SUPPORTED + int "Maximum number of mission items" + default 500 + depends on MODULES_DATAMAN + ---help--- + This limit always applies if mission items are stored on the SD card or in RAM. It should be set + adequately per boards such that if the items are stored in RAM they still fit the available memory. + The runtime parameter to configure the storage option is `SYS_DM_BACKEND`. diff --git a/src/modules/navigator/Kconfig b/src/modules/navigator/Kconfig index 8fb47c788f..429acd60e7 100644 --- a/src/modules/navigator/Kconfig +++ b/src/modules/navigator/Kconfig @@ -27,12 +27,3 @@ menuconfig NAVIGATOR_ADSB ---help--- Add support for acting on ADSB transponder_report or ADSB_VEHICLE MAVLink messages. Actions are warnings, Loiter, Land and RTL without climb. - -menuconfig NUM_MISSION_ITMES_SUPPORTED - int "Maximum number of mission items" - default 500 - depends on MODULES_NAVIGATOR - ---help--- - This limit always applies if mission items are stored on the SD card or in RAM. It should be set - adequately per boards such that if the items are stored in RAM they still fit the available memory. - The runtime parameter to configure the storage option is `SYS_DM_BACKEND`.