mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
tools: use global environment variables to set download and tools location
This allows to define OPENPILOT_DL_DIR and OPENPILOT_TOOLS_DIR to override local tools download and installation directory. So the same toolchains can be used for all working copies. Particularly useful for CI server agents, but also for local installations. Paths should use forward (unix-style) slashes. If no OPENPILOT_* variables found, makefile internal DL_DIR and TOOLS_DIR are used. They still can be overriden by the make command line parameters.
This commit is contained in:
parent
de4ca359dd
commit
f0780c96c6
4
Makefile
4
Makefile
@ -29,9 +29,9 @@ export OPENPILOT_IS_COOL := Fuck Yeah!
|
||||
|
||||
# Set up some macros for common directories within the tree
|
||||
export ROOT_DIR := $(realpath $(dir $(lastword $(MAKEFILE_LIST))))
|
||||
export TOOLS_DIR := $(ROOT_DIR)/tools
|
||||
export DL_DIR := $(if $(OPENPILOT_DL_DIR),$(OPENPILOT_DL_DIR),$(ROOT_DIR)/downloads)
|
||||
export TOOLS_DIR := $(if $(OPENPILOT_TOOLS_DIR),$(OPENPILOT_TOOLS_DIR),$(ROOT_DIR)/tools)
|
||||
export BUILD_DIR := $(ROOT_DIR)/build
|
||||
export DL_DIR := $(ROOT_DIR)/downloads
|
||||
export PACKAGE_DIR := $(ROOT_DIR)/build/package
|
||||
|
||||
# Set up default build configurations (debug | release)
|
||||
|
Loading…
Reference in New Issue
Block a user