Use Nuttx defconfig defines to determine arch (#9516)

These hard coded paths assume all Nuttx targets are ARMv7-M targets. Updating them to use ${CONFIG_ARCH} and ${CONFIG_ARCH_FAMILY} instead allows for the architecture defined by the incoming Nuttx defconfig to be correctly targeted.
This commit is contained in:
Joshua Whitehead
2018-05-23 12:20:39 -07:00
committed by Daniel Agar
parent 28f616b1c1
commit 3b6b1ee066
+3 -3
View File
@@ -182,9 +182,9 @@ function(px4_os_add_flags)
)
include_directories(
${PX4_BINARY_DIR}/NuttX/nuttx/arch/arm/src/armv7-m
${PX4_BINARY_DIR}/NuttX/nuttx/arch/arm/src/chip
${PX4_BINARY_DIR}/NuttX/nuttx/arch/arm/src/common
${PX4_BINARY_DIR}/NuttX/nuttx/arch/${CONFIG_ARCH}/src/${CONFIG_ARCH_FAMILY}
${PX4_BINARY_DIR}/NuttX/nuttx/arch/${CONFIG_ARCH}/src/chip
${PX4_BINARY_DIR}/NuttX/nuttx/arch/${CONFIG_ARCH}/src/common
${PX4_BINARY_DIR}/NuttX/apps/include
)