diff --git a/Kconfig b/Kconfig index 265bedb4c5..97aea1314f 100644 --- a/Kconfig +++ b/Kconfig @@ -78,15 +78,11 @@ menu "Toolchain" help flag to enable constrained flash options (eg limit init script status text) - if BOARD_CONSTRAINED_FLASH - - config BOARD_NO_HELP + config BOARD_NO_HELP bool "No help" help optional condition flag to disable help text on constrained flash systems - endif #BOARD_CONSTRAINED_FLASH - config BOARD_CONSTRAINED_MEMORY bool "Contrained memory" help diff --git a/boards/ark/can-gps/debug.px4board b/boards/ark/can-gps/debug.px4board index a6b0b2ef57..81f514a520 100644 --- a/boards/ark/can-gps/debug.px4board +++ b/boards/ark/can-gps/debug.px4board @@ -1,3 +1,4 @@ +CONFIG_BOARD_NO_HELP=y CONFIG_SYSTEMCMDS_REBOOT=y CONFIG_SYSTEMCMDS_TOP=y CONFIG_SYSTEMCMDS_TOPIC_LISTENER=y diff --git a/cmake/kconfig.cmake b/cmake/kconfig.cmake index 0d48fab43c..8645cda39a 100644 --- a/cmake/kconfig.cmake +++ b/cmake/kconfig.cmake @@ -273,9 +273,10 @@ if(EXISTS ${BOARD_DEFCONFIG}) if(CONSTRAINED_FLASH) set(px4_constrained_flash_build "1" CACHE INTERNAL "constrained flash build" FORCE) add_definitions(-DCONSTRAINED_FLASH) - if (NO_HELP) - add_definitions(-DCONSTRAINED_FLASH_NO_HELP="https://docs.px4.io/master/en/modules/modules_main.html") - endif() + endif() + + if (NO_HELP) + add_definitions(-DCONSTRAINED_FLASH_NO_HELP="https://docs.px4.io/master/en/modules/modules_main.html") endif() if(CONSTRAINED_MEMORY)