aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorRalph Hempel <ralph.hempel@lantiq.com>2009-02-20 10:44:19 +0000
committerRalph Hempel <ralph.hempel@lantiq.com>2009-02-20 10:44:19 +0000
commit70633d5f2f63707a8cd4511d3e39ecdaa7b7ee28 (patch)
treea4f3f5de32bd4625454a7b082f23c3278da2123e /rules.mk
parent6adb2d7d34cd8df5857a47651de7d4be7690661c (diff)
downloadupstream-70633d5f2f63707a8cd4511d3e39ecdaa7b7ee28.tar.gz
upstream-70633d5f2f63707a8cd4511d3e39ecdaa7b7ee28.tar.bz2
upstream-70633d5f2f63707a8cd4511d3e39ecdaa7b7ee28.zip
second part of target rootfs relocation
SVN-Revision: 14578
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 2298e437db..1bd8667fda 100644
--- a/rules.mk
+++ b/rules.mk
@@ -63,7 +63,8 @@ TOOLCHAIN_DIR:=$(TOPDIR)/staging_dir/toolchain-$(ARCH)_gcc-$(GCCV)_$(LIBC)-$(LIB
PACKAGE_DIR:=$(BIN_DIR)/packages/target-$(ARCH)_$(LIBC)-$(LIBCV)
STAMP_DIR:=$(BUILD_DIR)/stamp
STAMP_DIR_HOST=$(BUILD_DIR_HOST)/stamp
-TARGET_DIR:=$(BUILD_DIR)/root-$(BOARD)
+TARGET_ROOTFS_DIR?=$(if $(call qstrip,$(CONFIG_TARGET_ROOTFS_DIR)),$(call qstrip,$(CONFIG_TARGET_ROOTFS_DIR)),$(BUILD_DIR))
+TARGET_DIR:=$(TARGET_ROOTFS_DIR)/root-$(BOARD)
DEBUG_DIR:=$(BUILD_DIR)/debug-$(BOARD)
TARGET_PATH:=$(TOOLCHAIN_DIR)/usr/bin:$(STAGING_DIR_HOST)/bin:$(STAGING_DIR)/host/bin:$(PATH)