From 56cce1957801a866657ce3fb732e49119fd863f1 Mon Sep 17 00:00:00 2001 From: haukepetersen <hauke.petersen@fu-berlin.de> Date: Wed, 29 Apr 2015 20:50:18 +0200 Subject: [PATCH] make: added APPDIR as environment variable --- Makefile.include | 5 ++++- Makefile.vars | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.include b/Makefile.include index 7235312eb3..8a543ba0a3 100644 --- a/Makefile.include +++ b/Makefile.include @@ -16,7 +16,10 @@ RIOTPROJECT := $(abspath $(RIOTPROJECT)) # Path to the current directory relative to the git root BUILDRELPATH ?= $(shell git rev-parse --show-prefix) -BINDIRBASE ?= $(CURDIR)/bin +APPDIR ?= $(CURDIR) +APPDIR := $(abspath $(APPDIR))/ + +BINDIRBASE ?= $(APPDIR)/bin BINDIRBASE := $(abspath $(BINDIRBASE)) BINDIR ?= $(BINDIRBASE)/$(BOARD) diff --git a/Makefile.vars b/Makefile.vars index ab69f06e77..49fca3116c 100644 --- a/Makefile.vars +++ b/Makefile.vars @@ -19,6 +19,7 @@ export RIOTBOARD # For third party BOARDs this folder is the base of export RIOTPROJECT # Top level git root of the project being built, or PWD if not a git repository export BINDIRBASE # This is the folder where the application should be built in. For each BOARD a different subfolder is used. export BINDIR # This is the folder where the application should be built in. +export APPDIR # The base folder containing the application export PREFIX # The prefix of the toolchain commands, e.g. "arm-non-eabi-" or "msp430-". export CC # The C compiler to use. -- GitLab