second part of target rootfs relocation
authorralph <ralph@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 20 Feb 2009 10:44:19 +0000 (10:44 +0000)
committerralph <ralph@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 20 Feb 2009 10:44:19 +0000 (10:44 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@14578 3c298f89-4303-0410-b956-a3cf2f4a3e73

rules.mk

index 2298e43..1bd8667 100644 (file)
--- 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)
This page took 0.028129 seconds and 4 git commands to generate.