image: if possible use profile name when building .tar.gz images
authorLuka Perkov <luka@openwrt.org>
Sat, 12 Oct 2013 21:44:46 +0000 (21:44 +0000)
committerLuka Perkov <luka@openwrt.org>
Sat, 12 Oct 2013 21:44:46 +0000 (21:44 +0000)
Signed-off-by: Luka Perkov <luka@openwrt.org>
SVN-Revision: 38374

include/image.mk

index e0731f0895b1dfc551c5d0948f3c190764028b53..f5f1c8fb54fe41ff09ba2e3952c632daf3f1894b 100644 (file)
@@ -141,7 +141,7 @@ endif
 ifneq ($(CONFIG_TARGET_ROOTFS_TARGZ),)
   define Image/mkfs/targz
                # Preserve permissions (-p) when building as non-root user
-               $(TAR) -czpf $(BIN_DIR)/$(IMG_PREFIX)-rootfs.tar.gz --numeric-owner --owner=0 --group=0 -C $(TARGET_DIR)/ .
+               $(TAR) -czpf $(BIN_DIR)/$(IMG_PREFIX)$(if $(PROFILE),-$(PROFILE))-rootfs.tar.gz --numeric-owner --owner=0 --group=0 -C $(TARGET_DIR)/ .
   endef
 endif