Browse Source

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
sbg
Beat Küng 6 years ago committed by Lorenz Meier
parent
commit
694ae56afe
  1. 9
      boards/px4/io-v2/nuttx-config/Kconfig
  2. 1
      boards/px4/io-v2/nuttx-config/drivers/Kconfig
  3. 5
      boards/px4/io-v2/nuttx-config/nsh/defconfig

9
boards/px4/io-v2/nuttx-config/Kconfig

@ -0,0 +1,9 @@ @@ -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

@ -0,0 +1 @@ @@ -0,0 +1 @@

5
boards/px4/io-v2/nuttx-config/nsh/defconfig

@ -7,8 +7,11 @@ @@ -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 @@ -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…
Cancel
Save