add $(SUBTARGET) to the filename if available
authorJohn Crispin <john@openwrt.org>
Wed, 30 May 2012 18:04:15 +0000 (18:04 +0000)
committerJohn Crispin <john@openwrt.org>
Wed, 30 May 2012 18:04:15 +0000 (18:04 +0000)
SVN-Revision: 32007

target/imagebuilder/Makefile

index 686a175065697f97787292723f2f1c48f70ce8a6..788e2c24963387a0f9e17b9277bc4cf45b1fc4f2 100644 (file)
@@ -15,7 +15,7 @@ override MAKEFLAGS=
 PKG_OS:=$(shell uname -s)
 PKG_CPU:=$(shell uname -m | sed "s/ //g")
 
-IB_NAME:=OpenWrt-ImageBuilder-$(BOARD)-for-$(PKG_OS)-$(PKG_CPU)
+IB_NAME:=OpenWrt-ImageBuilder-$(BOARD)$(if $(SUBTARGET),_$(SUBTARGET))-for-$(PKG_OS)-$(PKG_CPU)
 PKG_BUILD_DIR:=$(BUILD_DIR)/$(IB_NAME)
 IB_KDIR:=$(patsubst $(TOPDIR)/%,$(PKG_BUILD_DIR)/%,$(KERNEL_BUILD_DIR))
 IB_LDIR:=$(patsubst $(TOPDIR)/%,$(PKG_BUILD_DIR)/%,$(LINUX_DIR))