summaryrefslogtreecommitdiffstats
path: root/make/main.cfg
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2019-07-17 22:19:04 +1000
committerChris Johns <chrisj@rtems.org>2019-07-19 17:50:05 +1000
commit270c5df5dbaf93c19e2f66a27f4bb73c7e625629 (patch)
tree50c493a2212276ab93948412f18feaf949f85cc2 /make/main.cfg
parentscore/interr: Fix comments. (diff)
downloadrtems-270c5df5dbaf93c19e2f66a27f4bb73c7e625629.tar.bz2
Makefile.inc: Add support for staged builds.
- Allow the RTEMS_ROOT to be conditionally supplied. This can be a staging area before being moved to the final install prefix location. - Update the default.cfg to use RTEMS_ROOT and to not rely on the exec_prefix so it's paths can be staged. - Fix and add the needed configure subs. Closes #3768
Diffstat (limited to 'make/main.cfg')
-rw-r--r--make/main.cfg8
1 files changed, 4 insertions, 4 deletions
diff --git a/make/main.cfg b/make/main.cfg
index 1a712deb3e..285e1b9a84 100644
--- a/make/main.cfg
+++ b/make/main.cfg
@@ -16,9 +16,9 @@ default_target: all
# but could be overridden in custom files.
#
-PROJECT_RELEASE=$(exec_prefix)/$(RTEMS_BSP)
-PROJECT_BIN=$(PROJECT_ROOT)/bin
-PROJECT_INCLUDE=$(PROJECT_RELEASE)/lib/include
+PROJECT_RELEASE ?= $(exec_prefix)/$(RTEMS_BSP)
+PROJECT_BIN = $(PROJECT_ROOT)/bin
+PROJECT_INCLUDE = $(PROJECT_RELEASE)/lib/include
PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
## translate VARIANT into VARIANT_V
@@ -77,6 +77,6 @@ clean-generic:
-$(RM) -r $(CLEAN_ADDITIONS)
endif
-.PHONY: $(RECURSE_TARGETS)
+.PHONY: $(RECURSE_TARGETS)
.PHONY: clean-generic
.PHONY: distclean-generic