px4-firmware/Makefile

66 lines
2.2 KiB
Makefile
Raw Normal View History

2015-09-07 21:37:45 -03:00
d=$(PWD)
2015-09-10 15:08:03 -03:00
all: nuttx_px4fmu-v2_default
#----------------------------------------------------------------------------
# OS: nuttx BOARD: px4fmu-v2 LABEL: simple
#
2015-09-10 00:00:58 -03:00
nuttx_px4fmu-v2_simple:
2015-09-07 21:37:45 -03:00
mkdir -p $d/build_$@ && cd $d/build_$@ && \
2015-09-10 00:00:58 -03:00
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/Toolchain-arm-none-eabi.cmake \
2015-09-07 21:37:45 -03:00
-DOS=nuttx -DBOARD=px4fmu-v2 -DLABEL=simple && \
make -s && ctest -V && cpack -G ZIP
nuttx_px4fmu-v2_simple_upload: nuttx_px4fmu-v2_simple
make -C build_$< upload
nuttx_px4fmu-v2_simple_test: nuttx_px4fmu-v2_simple
make -C build_$< test
#----------------------------------------------------------------------------
# OS: nuttx BOARD: px4fmu-v2 LABEL: default
#
nuttx_px4fmu-v2_default:
mkdir -p $d/build_$@ && cd $d/build_$@ && \
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/Toolchain-arm-none-eabi.cmake \
-DOS=nuttx -DBOARD=px4fmu-v2 -DLABEL=default && \
make -s && ctest -V && cpack -G ZIP
nuttx_px4fmu-v2_default_upload: nuttx_px4fmu-v2_default
make -C build_$< upload
nuttx_px4fmu-v2_default_test: nuttx_px4fmu-v2_default
make -C build_$< test
#----------------------------------------------------------------------------
# OS: nuttx BOARD: sim LABEL: simple
#
2015-09-10 00:00:58 -03:00
nuttx_sim_simple:
2015-09-09 09:18:41 -03:00
mkdir -p $d/build_$@ && cd $d/build_$@ && \
2015-09-10 00:00:58 -03:00
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/Toolchain-native.cmake \
2015-09-09 09:18:41 -03:00
-DOS=nuttx -DBOARD=sim -DLABEL=simple && \
make -s && ctest -V && cpack -G ZIP
#----------------------------------------------------------------------------
# OS: posix BOARD: sitl LABEL: simple
#
2015-09-10 00:00:58 -03:00
posix_sitl_simple:
2015-09-07 21:37:45 -03:00
mkdir -p $d/build_$@ && cd $d/build_$@ && \
2015-09-10 00:00:58 -03:00
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/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
#----------------------------------------------------------------------------
# OS: qurt BOARD: hil LABEL: simple
#
qurt_eagle_travis:
2015-09-07 21:37:45 -03:00
mkdir -p $d/build_$@ && cd $d/build_$@ && \
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/Toolchain-hexagon.cmake \
-DOS=qurt -DBOARD=eagle -DLABEL=travis && \
2015-09-07 21:37:45 -03:00
make -s && ctest -V && cpack -G ZIP
#----------------------------------------------------------------------------
# misc targets
#
clean:
2015-09-07 21:37:45 -03:00
rm -rf build_*/
2015-09-07 21:37:45 -03:00
.PHONY: clean