diff options
author | px4dev <px4@purgatory.org> | 2013-01-08 08:25:06 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-01-08 08:25:06 -0800 |
commit | ee5cd2c95a9510fd849cc515988564412c6accd0 (patch) | |
tree | 00af1a5540fd142edc8e476313a76141192ece09 /apps/mathlib | |
parent | c137ceba7d8c6d0ed2a65def5d206e30d83411bd (diff) | |
download | px4-firmware-ee5cd2c95a9510fd849cc515988564412c6accd0.tar.gz px4-firmware-ee5cd2c95a9510fd849cc515988564412c6accd0.tar.bz2 px4-firmware-ee5cd2c95a9510fd849cc515988564412c6accd0.zip |
Rather than assume that px4fmu means CMSIS DSPlib, test for cortex M4 and FPU.
Diffstat (limited to 'apps/mathlib')
-rw-r--r-- | apps/mathlib/Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/mathlib/Makefile b/apps/mathlib/Makefile index fe9b691b3..e5fab1e35 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 |