加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.09 KB
一键复制 编辑 原始数据 按行查看 历史
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/Toolchain-$@.cmake,)
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/Toolchain-$@.cmake,-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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化