[imagebuilder] 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 686a175..788e2c2 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))