Browse Source

allow configuration of the target directory for binaries

Signed-off-by: Imre Kaloz <[email protected]>

SVN-Revision: 38890
Imre Kaloz 12 years ago
parent
commit
f0721fa502
2 changed files with 5 additions and 1 deletions
  1. 4 0
      Config.in
  2. 1 1
      rules.mk

+ 4 - 0
Config.in

@@ -421,6 +421,10 @@ menuconfig DEVEL
 		bool "Show broken platforms / packages" if DEVEL
 		default n
 
+	config BINARY_FOLDER
+		string "Binary folder" if DEVEL
+		default ""
+
 	config DOWNLOAD_FOLDER
 		string "Download folder" if DEVEL
 		default ""

+ 1 - 1
rules.mk

@@ -73,7 +73,7 @@ ifdef CONFIG_MIPS64_ABI
 endif
 
 DL_DIR:=$(if $(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(TOPDIR)/dl)
-BIN_DIR:=$(TOPDIR)/bin/$(BOARD)
+BIN_DIR:=$(if $(call qstrip,$(CONFIG_BINARY_FOLDER)),$(call qstrip,$(CONFIG_BINARY_FOLDER)),$(TOPDIR)/bin/$(BOARD))
 INCLUDE_DIR:=$(TOPDIR)/include
 SCRIPT_DIR:=$(TOPDIR)/scripts
 BUILD_DIR_BASE:=$(TOPDIR)/build_dir