Browse Source

image: if possible use profile name when building .tar.gz images

Signed-off-by: Luka Perkov <[email protected]>

SVN-Revision: 38374
Luka Perkov 12 years ago
parent
commit
05625233ed
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/image.mk

+ 1 - 1
include/image.mk

@@ -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