px4-firmware/Makefile

28 lines
795 B
Makefile
Raw Normal View History

2015-09-07 21:37:45 -03:00
d=$(PWD)
2015-09-07 21:37:45 -03:00
px4fmu-v2_simple:
mkdir -p $d/build_$@ && cd $d/build_$@ && \
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-arm-none-eabi.cmake \
-DOS=nuttx -DBOARD=px4fmu-v2 -DLABEL=simple && \
make -s && ctest -V && cpack -G ZIP
2015-09-07 21:37:45 -03:00
px4fmu-v2_simple-upload: px4fmu-v2_simple
cd $d/build_$< && make upload
2015-09-07 21:37:45 -03:00
posix-sitl_simple:
mkdir -p $d/build_$@ && cd $d/build_$@ && \
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-posix-clang-native.cmake \
2015-09-07 21:37:45 -03:00
-DOS=posix -DBOARD=sitl -DLABEL=simple && \
make -s && ctest -V && cpack -G ZIP
2015-09-07 21:37:45 -03:00
qurt-hil_simple:
mkdir -p $d/build_$@ && cd $d/build_$@ && \
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-hexagon.cmake \
-DOS=qurt -DBOARD=hil -DLABEL=simple && \
make -s && ctest -V && cpack -G ZIP
clean:
2015-09-07 21:37:45 -03:00
rm -rf build_*/
2015-09-07 21:37:45 -03:00
.PHONY: clean