2015-09-07 21:37:45 -03:00
|
|
|
d=$(PWD)
|
2013-02-23 20:05:59 -04:00
|
|
|
|
2015-09-10 15:08:03 -03:00
|
|
|
all: nuttx_px4fmu-v2_default
|
|
|
|
|
2015-09-10 14:57:54 -03:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# 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
|
2015-09-10 14:57:54 -03:00
|
|
|
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
|
2013-01-16 22:23:49 -04:00
|
|
|
|
2015-09-10 14:57:54 -03:00
|
|
|
|
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# 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
|
|
|
|
|
2015-09-10 14:57:54 -03:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# 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
|
2013-01-16 22:23:49 -04:00
|
|
|
|
2015-09-10 14:57:54 -03:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# OS: qurt BOARD: hil LABEL: simple
|
|
|
|
#
|
2015-09-10 00:00:58 -03:00
|
|
|
qurt_hil_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 .. -DQURT_ENABLE_STUBS=1 -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/Toolchain-hexagon.cmake \
|
2015-09-07 21:37:45 -03:00
|
|
|
-DOS=qurt -DBOARD=hil -DLABEL=simple && \
|
|
|
|
make -s && ctest -V && cpack -G ZIP
|
2015-05-22 17:22:12 -03:00
|
|
|
|
2015-09-10 14:57:54 -03:00
|
|
|
#----------------------------------------------------------------------------
|
|
|
|
# misc targets
|
|
|
|
#
|
2012-08-04 19:12:36 -03:00
|
|
|
clean:
|
2015-09-07 21:37:45 -03:00
|
|
|
rm -rf build_*/
|
2015-06-15 21:23:04 -03:00
|
|
|
|
2015-09-07 21:37:45 -03:00
|
|
|
.PHONY: clean
|