mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 07:28:54 +08:00
Added common options for sensor drivers
uavcan_board_identity check for existance Added kconfig for compiler definitions
This commit is contained in:
committed by
Daniel Agar
parent
82888d3320
commit
815617e670
@@ -7,112 +7,122 @@ comment "Vendor: $(VENDOR)"
|
||||
comment "Model: $(MODEL)"
|
||||
comment "Label: $(LABEL)"
|
||||
|
||||
choice
|
||||
prompt "Platform"
|
||||
default PLATFORM_NUTTX
|
||||
config PLATFORM_NUTTX
|
||||
bool "nuttx"
|
||||
config PLATFORM_POSIX
|
||||
bool "posix"
|
||||
config PLATFORM_QURT
|
||||
bool "qurt"
|
||||
endchoice
|
||||
menu "Toolchain"
|
||||
choice
|
||||
prompt "Platform"
|
||||
default PLATFORM_NUTTX
|
||||
config PLATFORM_NUTTX
|
||||
bool "nuttx"
|
||||
config PLATFORM_POSIX
|
||||
bool "posix"
|
||||
config PLATFORM_QURT
|
||||
bool "qurt"
|
||||
endchoice
|
||||
|
||||
config BOARD_PLATFORM
|
||||
string
|
||||
default "nuttx" if PLATFORM_NUTTX
|
||||
default "posix" if PLATFORM_POSIX
|
||||
default "qurt" if PLATFORM_QURT
|
||||
config BOARD_PLATFORM
|
||||
string
|
||||
default "nuttx" if PLATFORM_NUTTX
|
||||
default "posix" if PLATFORM_POSIX
|
||||
default "qurt" if PLATFORM_QURT
|
||||
|
||||
choice
|
||||
prompt "Toolchain"
|
||||
default TOOLCHAIN_ARM_NONE_EABI
|
||||
config TOOLCHAIN_ARM_NONE_EABI
|
||||
bool "arm-none-eabi"
|
||||
config TOOLCHAIN_RISV64
|
||||
bool "riscv64-unknown-elf"
|
||||
help
|
||||
cmake toolchain
|
||||
endchoice
|
||||
choice
|
||||
prompt "Toolchain"
|
||||
default TOOLCHAIN_ARM_NONE_EABI
|
||||
config TOOLCHAIN_ARM_NONE_EABI
|
||||
bool "arm-none-eabi"
|
||||
config TOOLCHAIN_RISV64
|
||||
bool "riscv64-unknown-elf"
|
||||
help
|
||||
cmake toolchain
|
||||
endchoice
|
||||
|
||||
config BOARD_TOOLCHAIN
|
||||
string
|
||||
default "arm-none-eabi" if TOOLCHAIN_ARM_NONE_EABI
|
||||
default "riscv64-unknown-elf" if TOOLCHAIN_RISV64
|
||||
config BOARD_TOOLCHAIN
|
||||
string
|
||||
default "arm-none-eabi" if TOOLCHAIN_ARM_NONE_EABI
|
||||
default "riscv64-unknown-elf" if TOOLCHAIN_RISV64
|
||||
|
||||
choice
|
||||
prompt "Architecture"
|
||||
config ARCHITECTURE_CORTEX_M3
|
||||
bool "cortex-m3"
|
||||
config ARCHITECTURE_CORTEX_M4
|
||||
bool "cortex-m4"
|
||||
config ARCHITECTURE_CORTEX_M7
|
||||
bool "cortex-m7"
|
||||
config ARCHITECTURE_CORTEX_A8
|
||||
bool "cortex-a8"
|
||||
config ARCHITECTURE_CORTEX_A53
|
||||
bool "cortex-a53"
|
||||
help
|
||||
name of the CPU CMake is building for (used by the toolchain)
|
||||
endchoice
|
||||
choice
|
||||
prompt "Architecture"
|
||||
config ARCHITECTURE_CORTEX_M3
|
||||
bool "cortex-m3"
|
||||
config ARCHITECTURE_CORTEX_M4
|
||||
bool "cortex-m4"
|
||||
config ARCHITECTURE_CORTEX_M7
|
||||
bool "cortex-m7"
|
||||
config ARCHITECTURE_CORTEX_A8
|
||||
bool "cortex-a8"
|
||||
config ARCHITECTURE_CORTEX_A53
|
||||
bool "cortex-a53"
|
||||
help
|
||||
name of the CPU CMake is building for (used by the toolchain)
|
||||
endchoice
|
||||
|
||||
config BOARD_ARCHITECTURE
|
||||
string
|
||||
default "cortex-m3" if ARCHITECTURE_CORTEX_M3
|
||||
default "cortex-m4" if ARCHITECTURE_CORTEX_M4
|
||||
default "cortex-m7" if ARCHITECTURE_CORTEX_M7
|
||||
default "cortex-a8" if ARCHITECTURE_CORTEX_A8
|
||||
default "cortex-a53" if ARCHITECTURE_CORTEX_A53
|
||||
config BOARD_ARCHITECTURE
|
||||
string
|
||||
default "cortex-m3" if ARCHITECTURE_CORTEX_M3
|
||||
default "cortex-m4" if ARCHITECTURE_CORTEX_M4
|
||||
default "cortex-m7" if ARCHITECTURE_CORTEX_M7
|
||||
default "cortex-a8" if ARCHITECTURE_CORTEX_A8
|
||||
default "cortex-a53" if ARCHITECTURE_CORTEX_A53
|
||||
|
||||
config BOARD_ROMFSROOT
|
||||
string "ROMFSROOT"
|
||||
default "px4fmu_common"
|
||||
help
|
||||
relative path to the ROMFS root directory
|
||||
config BOARD_ROMFSROOT
|
||||
string "ROMFSROOT"
|
||||
default "px4fmu_common"
|
||||
help
|
||||
relative path to the ROMFS root directory
|
||||
|
||||
config BOARD_BUILD_BOOTLOADER
|
||||
bool "Enable bootloader"
|
||||
help
|
||||
flag to enable building and including the bootloader config
|
||||
config BOARD_BUILD_BOOTLOADER
|
||||
bool "Enable bootloader"
|
||||
help
|
||||
flag to enable building and including the bootloader config
|
||||
|
||||
config BOARD_IO
|
||||
string "IO board name"
|
||||
help
|
||||
name of IO board to be built and included in the ROMFS (requires a valid ROMFSROOT)
|
||||
config BOARD_IO
|
||||
string "IO board name"
|
||||
help
|
||||
name of IO board to be built and included in the ROMFS (requires a valid ROMFSROOT)
|
||||
|
||||
config BOARD_CONSTRAINED_FLASH
|
||||
bool "Contrained flash"
|
||||
help
|
||||
flag to enable constrained flash options (eg limit init script status text)
|
||||
config BOARD_CONSTRAINED_FLASH
|
||||
bool "Contrained flash"
|
||||
help
|
||||
flag to enable constrained flash options (eg limit init script status text)
|
||||
|
||||
if BOARD_CONSTRAINED_FLASH
|
||||
if BOARD_CONSTRAINED_FLASH
|
||||
|
||||
config BOARD_NO_HELP
|
||||
bool "No help"
|
||||
help
|
||||
optional condition flag to disable help text on constrained flash systems
|
||||
config BOARD_NO_HELP
|
||||
bool "No help"
|
||||
help
|
||||
optional condition flag to disable help text on constrained flash systems
|
||||
|
||||
endif #BOARD_CONSTRAINED_FLASH
|
||||
endif #BOARD_CONSTRAINED_FLASH
|
||||
|
||||
config BOARD_CONSTRAINED_MEMORY
|
||||
bool "Contrained memory"
|
||||
help
|
||||
flag to enable constrained memory options (eg limit maximum number of uORB publications)
|
||||
config BOARD_CONSTRAINED_MEMORY
|
||||
bool "Contrained memory"
|
||||
help
|
||||
flag to enable constrained memory options (eg limit maximum number of uORB publications)
|
||||
|
||||
config BOARD_EXTERNAL_METADATA
|
||||
bool "External metadata"
|
||||
help
|
||||
flag to exclude metadata to reduce flash
|
||||
config BOARD_EXTERNAL_METADATA
|
||||
bool "External metadata"
|
||||
help
|
||||
flag to exclude metadata to reduce flash
|
||||
|
||||
config BOARD_LINKER_PREFIX
|
||||
string "linker prefix"
|
||||
help
|
||||
optional to prefix on the Linker script.
|
||||
|
||||
config BOARD_COMPILE_DEFINITIONS
|
||||
string "add custom compile definitions"
|
||||
help
|
||||
add custom compile defitions to this specific target
|
||||
endmenu #Toolchain
|
||||
|
||||
config BOARD_TESTING
|
||||
bool "Testing"
|
||||
select SYSTEMCMDS_MICROBENCH
|
||||
select SYSTEMCMDS_TESTS
|
||||
help
|
||||
flag to enable automatic inclusion of PX4 testing modules
|
||||
|
||||
config BOARD_LINKER_PREFIX
|
||||
bool "PX4 board linker prefix"
|
||||
help
|
||||
optional to prefix on the Linker script.
|
||||
|
||||
config BOARD_ETHERNET
|
||||
bool "Ethernet"
|
||||
|
||||
Reference in New Issue
Block a user