Skip to content
Snippets Groups Projects
Commit bb281f03 authored by Mark Charlebois's avatar Mark Charlebois
Browse files

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: default avatarMark Charlebois <charlebm@gmail.com>
parent 54bae34a
No related branches found
No related tags found
No related merge requests found
......@@ -19,3 +19,6 @@
[submodule "src/lib/eigen"]
path = src/lib/eigen
url = https://github.com/PX4/eigen.git
[submodule "src/lib/dspal"]
path = src/lib/dspal
url = https://github.com/mcharleb/dspal.git
......@@ -35,14 +35,6 @@
#$(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.
#
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
QCTOOLSLIB = $(HEXAGON_TOOLS_ROOT)/qc/lib/$(V_ARCH)/G0
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
......@@ -121,10 +114,8 @@ ARCHDEFINES += -DCONFIG_ARCH_BOARD_$(CONFIG_BOARD) \
-D__EXPORT= \
-Drestrict= \
-D_DEBUG \
-I$(DSPAL_INCS)/ \
-I$(DSPAL_INCS)/dspal/include \
-I$(DSPAL_INCS)/dspal/sys \
-I$(DSPAL_INCS)/dspal/sys/sys \
-I$(DSPAL_INCS)/include \
-I$(DSPAL_INCS)/sys \
-I$(HEXAGON_TOOLS_ROOT)/gnu/hexagon/include \
-I$(PX4_BASE)/src/lib/eigen \
-I$(PX4_BASE)/src/platforms/qurt/include \
......
Subproject commit 1741154446c7c92c6e632d7ee1619c6d4174bf2d
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment