forked from PX4/DriverFramework
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
37 lines (27 loc) · 1.09 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
all: linux qurt rpi bebop edison
QC_SOC_TARGET?="APQ8074"
define df_cmake_generate
mkdir -p build_$(1) && cd build_$(1) && cmake .. -DOS=$(2) -DCMAKE_TOOLCHAIN_FILE=$(3) -DDF_ENABLE_TESTS=1 $(4)
endef
rpi linux bebop edison ocpoc:
$(call df_cmake_generate,$@,posix,cmake/toolchains/[email protected],)
cd build_$@ && make
qurt: dspal/cmake_hexagon
# qurt needs to be separate from rpi, bebop, etc. because it has "qurt"
# as the OS and not posix like the others.
$(call df_cmake_generate,$@,qurt,dspal/cmake_hexagon/toolchain/[email protected],-DQC_SOC_TARGET=${QC_SOC_TARGET})
cd build_$@ && make
dspal/cmake_hexagon:
git submodule update --init --recursive
run: linux
build_linux/test/df_testapp
helgrind: linux
valgrind --tool=helgrind build_linux/test/df_testapp
clean:
rm -rf build_*
qurt_load: qurt
cd build_qurt && make df_imu_test-load
fix-style:
@./dspal/tools/fix_code_style.sh -p ".git dspal build_qurt build_linux build_rpi build_bebop build_edison"
check-style:
@./dspal/tools/fix_code_style.sh -p ".git dspal build_qurt build_linux build_rpi build_bebop build_edison" --check