From ee5cd2c95a9510fd849cc515988564412c6accd0 Mon Sep 17 00:00:00 2001 From: px4dev Date: Tue, 8 Jan 2013 08:25:06 -0800 Subject: [PATCH] Rather than assume that px4fmu means CMSIS DSPlib, test for cortex M4 and FPU. --- apps/mathlib/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/mathlib/Makefile b/apps/mathlib/Makefile index fe9b691b3a..e5fab1e354 100644 --- a/apps/mathlib/Makefile +++ b/apps/mathlib/Makefile @@ -31,6 +31,8 @@ # ############################################################################ +include $(TOPDIR)/.config + # # Math library # @@ -51,7 +53,7 @@ CXXHDRS = math/test/test.hpp \ math/Matrix.hpp # XXX this really should be a CONFIG_* test -ifeq ($(TARGET),px4fmu) +ifeq ($(CONFIG_ARCH_CORTEXM4)$(CONFIG_ARCH_FPU),yy) INCLUDES += math/arm CXXSRCS += math/arm/Vector.cpp \ math/arm/Matrix.cpp