mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
px4/io-v2: update nuttx config
px4_io - add knob to ensure ARCH_MATH_H is kept Upstream changes added ARCH_HAVE_MATH_H to protect from archs without math.h from causing isses for users setting CONFIG_ARCH_MATH_H and getting errors. PX4 provides a math.h and we need CONFIG_ARCH_MATH_H set. So this Selects ARCH_HAVE_MATH_H perserving CONFIG_ARCH_MATH_H a defconfig
This commit is contained in:
parent
36a75b79a4
commit
694ae56afe
9
boards/px4/io-v2/nuttx-config/Kconfig
Normal file
9
boards/px4/io-v2/nuttx-config/Kconfig
Normal file
@ -0,0 +1,9 @@
|
||||
#
|
||||
# For a description of the syntax of this configuration file,
|
||||
# see misc/tools/kconfig-language.txt.
|
||||
#
|
||||
# Hack to ensure ARCH_MATH_H is kept
|
||||
config BOARD_HAVE_MATH_H
|
||||
bool "Provide ARCH math.h (selects ARCH_HAVE_MATH_H)"
|
||||
default y
|
||||
select ARCH_HAVE_MATH_H
|
||||
1
boards/px4/io-v2/nuttx-config/drivers/Kconfig
Normal file
1
boards/px4/io-v2/nuttx-config/drivers/Kconfig
Normal file
@ -0,0 +1 @@
|
||||
|
||||
@ -7,8 +7,11 @@
|
||||
#
|
||||
# CONFIG_DEV_NULL is not set
|
||||
CONFIG_ARCH="arm"
|
||||
CONFIG_ARCH_BOARD_CUSTOM=y
|
||||
CONFIG_ARCH_BOARD_CUSTOM_DIR="../nuttx-config"
|
||||
CONFIG_ARCH_BOARD_CUSTOM_DIR_RELPATH=y
|
||||
CONFIG_ARCH_BOARD_CUSTOM_NAME="px4"
|
||||
CONFIG_ARCH_CHIP="stm32"
|
||||
CONFIG_ARCH_CHIP_STM32=y
|
||||
CONFIG_ARCH_CHIP_STM32F100C8=y
|
||||
CONFIG_ARCH_MATH_H=y
|
||||
@ -22,9 +25,7 @@ CONFIG_DEBUG_SYMBOLS=y
|
||||
CONFIG_DEFAULT_SMALL=y
|
||||
CONFIG_DISABLE_MOUNTPOINT=y
|
||||
CONFIG_DISABLE_MQUEUE=y
|
||||
CONFIG_DISABLE_POLL=y
|
||||
CONFIG_DISABLE_PTHREAD=y
|
||||
CONFIG_DISABLE_SIGNALS=y
|
||||
CONFIG_FDCLONE_DISABLE=y
|
||||
CONFIG_FDCLONE_STDIO=y
|
||||
CONFIG_HAVE_CXX=y
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user