Added DSPAL as a git submodule of PX4

The DSPAL headers are required to build for qurt. When we move to
a cmake build system, the DSPAL headers can be conditionally included.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois 2015-09-04 11:35:55 -07:00
parent 54bae34a2c
commit bb281f03f3
3 changed files with 7 additions and 12 deletions

3
.gitmodules vendored
View File

@ -19,3 +19,6 @@
[submodule "src/lib/eigen"] [submodule "src/lib/eigen"]
path = src/lib/eigen path = src/lib/eigen
url = https://github.com/PX4/eigen.git url = https://github.com/PX4/eigen.git
[submodule "src/lib/dspal"]
path = src/lib/dspal
url = https://github.com/mcharleb/dspal.git

View File

@ -35,14 +35,6 @@
#$(info TOOLCHAIN gnu-arm-eabi) #$(info TOOLCHAIN gnu-arm-eabi)
#
# Stop making if DSPAL paths are not set. This defines the path to
# DspAL headers and libs
#
ifndef DSPAL_INCS
$(error DSPAL_INCS is not set)
endif
# Toolchain commands. Normally only used inside this file. # Toolchain commands. Normally only used inside this file.
# #
HEXAGON_TOOLS_ROOT ?= /opt/6.4.03 HEXAGON_TOOLS_ROOT ?= /opt/6.4.03
@ -57,6 +49,7 @@ HEXAGON_ISS_DIR = $(HEXAGON_TOOLS_ROOT)/qc/lib/iss
TOOLSLIB = $(HEXAGON_TOOLS_ROOT)/dinkumware/lib/$(V_ARCH)/G0 TOOLSLIB = $(HEXAGON_TOOLS_ROOT)/dinkumware/lib/$(V_ARCH)/G0
QCTOOLSLIB = $(HEXAGON_TOOLS_ROOT)/qc/lib/$(V_ARCH)/G0 QCTOOLSLIB = $(HEXAGON_TOOLS_ROOT)/qc/lib/$(V_ARCH)/G0
QURTLIB = $(HEXAGON_SDK_ROOT)/lib/common/qurt/ADSP$(V_ARCH)MP/lib QURTLIB = $(HEXAGON_SDK_ROOT)/lib/common/qurt/ADSP$(V_ARCH)MP/lib
DSPAL_INCS ?= $(PX4_BASE)/src/lib/dspal
CC = $(HEXAGON_CLANG_BIN)/$(CROSSDEV)clang CC = $(HEXAGON_CLANG_BIN)/$(CROSSDEV)clang
@ -121,10 +114,8 @@ ARCHDEFINES += -DCONFIG_ARCH_BOARD_$(CONFIG_BOARD) \
-D__EXPORT= \ -D__EXPORT= \
-Drestrict= \ -Drestrict= \
-D_DEBUG \ -D_DEBUG \
-I$(DSPAL_INCS)/ \ -I$(DSPAL_INCS)/include \
-I$(DSPAL_INCS)/dspal/include \ -I$(DSPAL_INCS)/sys \
-I$(DSPAL_INCS)/dspal/sys \
-I$(DSPAL_INCS)/dspal/sys/sys \
-I$(HEXAGON_TOOLS_ROOT)/gnu/hexagon/include \ -I$(HEXAGON_TOOLS_ROOT)/gnu/hexagon/include \
-I$(PX4_BASE)/src/lib/eigen \ -I$(PX4_BASE)/src/lib/eigen \
-I$(PX4_BASE)/src/platforms/qurt/include \ -I$(PX4_BASE)/src/platforms/qurt/include \

1
src/lib/dspal Submodule

@ -0,0 +1 @@
Subproject commit 1741154446c7c92c6e632d7ee1619c6d4174bf2d