aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-07-19 12:09:52 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-07-19 12:09:52 +0000
commit38c3a1299ec9f4a595cf44a3676dd4ed40a34275 (patch)
treeb608d2e8141afcbc87f5042ed32ae8d82b10af8f /rules.mk
parent6dd63759c3d2570fe92eaf54495993cfc9f05e39 (diff)
downloadupstream-38c3a1299ec9f4a595cf44a3676dd4ed40a34275.tar.gz
upstream-38c3a1299ec9f4a595cf44a3676dd4ed40a34275.tar.bz2
upstream-38c3a1299ec9f4a595cf44a3676dd4ed40a34275.zip
Add optionnal support for a BUILD_DIR suffix (#2057)
SVN-Revision: 8050
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/rules.mk b/rules.mk
index 6fbf88f801..4d6c7d0986 100644
--- a/rules.mk
+++ b/rules.mk
@@ -14,6 +14,7 @@ export SHELL=/usr/bin/env bash -c '. $(TOPDIR)/include/shell.sh; eval "$$2"' --
ARCH:=$(strip $(subst ",, $(CONFIG_ARCH)))
TARGET_OPTIMIZATION:=$(strip $(subst ",, $(CONFIG_TARGET_OPTIMIZATION)))
+BUILD_DIR_SUFFIX:=$(strip $(subst ",, $(CONFIG_BUILD_SUFFIX)))
WGET:=$(strip $(subst ",, $(CONFIG_WGET)))
#"))"))")) # fix vim's broken syntax highlighting
@@ -30,7 +31,7 @@ STAGING_DIR:=$(TOPDIR)/staging_dir_$(ARCH)
BIN_DIR:=$(TOPDIR)/bin
PACKAGE_DIR:=$(BIN_DIR)/packages
IPKG_TARGET_DIR:=$(PACKAGE_DIR)
-BUILD_DIR:=$(TOPDIR)/build_$(ARCH)
+BUILD_DIR:=$(TOPDIR)/build_$(ARCH)$(BUILD_DIR_SUFFIX)
TMP_DIR:=$(TOPDIR)/tmp
STAMP_DIR:=$(BUILD_DIR)/stamp
TARGET_DIR:=$(BUILD_DIR)/root