1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-03 11:24:10 +01:00
Commit Graph

4 Commits

Author SHA1 Message Date
osnwt
2868547e75 Windows flight batch build script: added more options for selective building.
SYNTAX: Makefile.cmd [build / clean / help]
 - build: builds all flight targets including uavobjects, bootloaders and firmware
 - clean: cleans all flight targets including bootloaders and firmware
 - help:  this help

Environment variables:
 - TARGETS_FW - list of target (default is all flight targets)
 - TARGETS_BL - list of target (default is all flight bootloader targets)
 - TARGET_FW_SUBDIR - subdirectory of build/ to build targets (default is .)
 - TARGET_BL_SUBDIR - subdirectory of build/ to build bootloaders (default is bootloaders)

Example usage (from a batch file with .cmd extension):
  set PATH=D:\Work\OpenPilot\Apps\CodeSourcery\bin\;%PATH%
  set TARGETS_FW=ahrs openpilot
  set TARGETS_BL=%TARGETS_FW%
  call svn\trunk\Makefile.cmd build


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2590 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-25 09:23:54 +00:00
osnwt
f0d824d74c Updated Windows flight build script to rebuild 3 bootloaders and 4 targets (ahrs, openpilot, pipxtreme and coptercontrol) with single click for Windows users.
Now it has variables TARGET_FW_SUBDIR=. and TARGET_BL_SUBDIR=bootloaders - you may easily choose where do you want to build targets today :-) (in build or build/flight, etc).


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2587 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-24 21:36:11 +00:00
osnwt
5b256e8b20 Now it can be run from any directory (w/o cd to it)
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2552 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-23 19:42:31 +00:00
osnwt
90df657a37 Windows-friendly batch file to build or clean all flight targets with one click.
SYNTAX: Makefile.cmd [build | clean | help]
 - build: builds all flight targets including uavobjects, bootloaders and firmware
 - clean: cleans all flight targets including bootloaders and firmware
 - help:  this help

Currently set are OpenPilot, AHRS, PipXtreme targets and their bootloaders.
It could be done even better but it seems that Windows users don't like command line.

Extra batches which could help (not committed) are:

flight-build.cmd:
---------------------------------
@echo off
rem
rem Build all flight targets
rem

Makefile.cmd build
---------------------------------

flight-clean.cmd :
---------------------------------
@echo off
rem
rem Clean all flight targets
rem

Makefile.cmd clean
---------------------------------


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2551 ebee16cc-31ac-478f-84a7-5cbb03baadba
2011-01-23 19:08:16 +00:00