include/image: don't save gzip name/timestamp metadata
authorFelix Fietkau <nbd@openwrt.org>
Sun, 31 Jan 2016 23:29:22 +0000 (23:29 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sun, 31 Jan 2016 23:29:22 +0000 (23:29 +0000)
Signed-off-by: bryan newbold <bnewbold@robocracy.org>
SVN-Revision: 48587

include/image.mk

index 8f81861fd08de08d14d350743ab90da47af747e5..555d6523add518572411279eb39bcf3ddd2a5df1 100644 (file)
@@ -249,10 +249,9 @@ define Image/mkfs/cpiogz
 endef
 
 define Image/mkfs/targz
-       $(TAR) -czpf $(BIN_DIR)/$(IMG_PREFIX)$(if $(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))-rootfs.tar.gz \
-               --numeric-owner --owner=0 --group=0 --sort=name \
+       $(TAR) -cp --numeric-owner --owner=0 --group=0 --sort=name \
                $(if $(SOURCE_DATE_EPOCH),--mtime="@$(SOURCE_DATE_EPOCH)") \
-               -C $(TARGET_DIR)/ .
+               -C $(TARGET_DIR)/ . | gzip -9n > $(BIN_DIR)/$(IMG_PREFIX)$(if $(PROFILE_SANITIZED),-$(PROFILE_SANITIZED))-rootfs.tar.gz
 endef
 
 E2SIZE=$(shell echo $$(($(CONFIG_TARGET_ROOTFS_PARTSIZE)*1024*1024)))