From 4c2c06060db8a8ca0feb63a58e4c3740c12f4512 Mon Sep 17 00:00:00 2001 From: Peter van der Perk Date: Wed, 4 Jan 2023 09:29:46 +0100 Subject: [PATCH] PX4Board kconfig add dependency chain for QURT & POSIX modules --- Kconfig | 1 + platforms/common/uORB/Kconfig | 1 + src/drivers/qshell/Kconfig | 1 + src/drivers/qshell/posix/Kconfig | 3 ++- src/drivers/qshell/qurt/Kconfig | 3 ++- src/modules/muorb/Kconfig | 1 + src/modules/muorb/apps/Kconfig | 9 +++++---- src/modules/muorb/slpi/Kconfig | 9 +++++---- 8 files changed, 18 insertions(+), 10 deletions(-) diff --git a/Kconfig b/Kconfig index f8b4f3e782..2d53a79c05 100644 --- a/Kconfig +++ b/Kconfig @@ -195,5 +195,6 @@ source "src/examples/Kconfig" endmenu menu "platforms" +depends on PLATFORM_QURT || PLATFORM_POSIX source "platforms/common/Kconfig" endmenu diff --git a/platforms/common/uORB/Kconfig b/platforms/common/uORB/Kconfig index 67f492b1f8..ca39e467cf 100644 --- a/platforms/common/uORB/Kconfig +++ b/platforms/common/uORB/Kconfig @@ -1,5 +1,6 @@ menuconfig ORB_COMMUNICATOR bool "orb communicator" default n + depends on PLATFORM_QURT ---help--- Enable support for the uorb communicator for distributed platforms diff --git a/src/drivers/qshell/Kconfig b/src/drivers/qshell/Kconfig index 36edef2887..f63cdd4038 100644 --- a/src/drivers/qshell/Kconfig +++ b/src/drivers/qshell/Kconfig @@ -1,3 +1,4 @@ menu "qshell" +depends on PLATFORM_QURT || PLATFORM_POSIX rsource "*/Kconfig" endmenu #qshell diff --git a/src/drivers/qshell/posix/Kconfig b/src/drivers/qshell/posix/Kconfig index 91c2ab36dd..2552624910 100644 --- a/src/drivers/qshell/posix/Kconfig +++ b/src/drivers/qshell/posix/Kconfig @@ -1,5 +1,6 @@ menuconfig DRIVERS_QSHELL_POSIX bool "posix" default n + depends on PLATFORM_POSIX ---help--- - Enable support for posix \ No newline at end of file + Enable support for posix diff --git a/src/drivers/qshell/qurt/Kconfig b/src/drivers/qshell/qurt/Kconfig index 73b3b81ca9..0e03993ab1 100644 --- a/src/drivers/qshell/qurt/Kconfig +++ b/src/drivers/qshell/qurt/Kconfig @@ -1,5 +1,6 @@ menuconfig DRIVERS_QSHELL_QURT bool "qurt" default n + depends on PLATFORM_QURT ---help--- - Enable support for qurt \ No newline at end of file + Enable support for qurt diff --git a/src/modules/muorb/Kconfig b/src/modules/muorb/Kconfig index 22790832e9..bdb109f575 100644 --- a/src/modules/muorb/Kconfig +++ b/src/modules/muorb/Kconfig @@ -1,3 +1,4 @@ menu "MUORB" +depends on PLATFORM_QURT || PLATFORM_POSIX rsource "*/Kconfig" endmenu #MUORB diff --git a/src/modules/muorb/apps/Kconfig b/src/modules/muorb/apps/Kconfig index 05a94bec67..ec520b1e37 100644 --- a/src/modules/muorb/apps/Kconfig +++ b/src/modules/muorb/apps/Kconfig @@ -1,5 +1,6 @@ menuconfig MODULES_MUORB_APPS - bool "apps" - default n - ---help--- - Enable support for muorb apps + bool "apps" + default n + depends on PLATFORM_QURT + ---help--- + Enable support for muorb apps diff --git a/src/modules/muorb/slpi/Kconfig b/src/modules/muorb/slpi/Kconfig index 10ee5913b8..b4d398f14a 100644 --- a/src/modules/muorb/slpi/Kconfig +++ b/src/modules/muorb/slpi/Kconfig @@ -1,5 +1,6 @@ menuconfig MODULES_MUORB_SLPI - bool "muorb_slpi" - default n - ---help--- - Enable support for muorb slpi + bool "muorb_slpi" + default n + depends on PLATFORM_QURT + ---help--- + Enable support for muorb slpi