summaryrefslogtreecommitdiffstats
path: root/rules/post
diff options
context:
space:
mode:
authorJon Ringle <jringle@gridpoint.com>2014-01-19 03:35:58 -0500
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-01-20 12:06:25 +0100
commit0c30fd38e32126e6b1624a4acdc4a1efcd88c09c (patch)
tree9f320dad2421bc53efe85f37020ceebfb56853cc /rules/post
parentf9dbaff1d5e6c4052ba1bcef92c27528f8f6f011 (diff)
downloadptxdist-0c30fd38e32126e6b1624a4acdc4a1efcd88c09c.tar.gz
ptxdist-0c30fd38e32126e6b1624a4acdc4a1efcd88c09c.tar.xz
image: Create root.tgz with label
Create the root.tgz with a label in the form: ${PTXCONF_PROJECT_VENDOR}-${PTXCONF_PROJECT}${PTXCONF_PROJECT_VERSION} This is useful for an automated install script to verify quickly that the tar is of the right type by doing: tar --test-label -f root.tgz Signed-off-by: Jon Ringle <jringle@gridpoint.com> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/post')
-rw-r--r--rules/post/image_tgz.make4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules/post/image_tgz.make b/rules/post/image_tgz.make
index 53181432d..019077ddc 100644
--- a/rules/post/image_tgz.make
+++ b/rules/post/image_tgz.make
@@ -12,10 +12,10 @@ SEL_ROOTFS-$(PTXCONF_IMAGE_TGZ) += $(IMAGEDIR)/root.tgz
ifdef PTXCONF_IMAGE_TGZ
$(IMAGEDIR)/root.tgz: $(STATEDIR)/image_working_dir
- @echo -n "Creating root.tgz from working dir..."
+ @echo -n "Creating root.tgz from working dir with label..."
@cd $(image/work_dir); \
(awk -F: $(DOPERMISSIONS) $(image/permissions) && \
- ( echo -n "tar -zcf "; \
+ ( echo -n "tar --label '${PTXCONF_PROJECT_VENDOR}-${PTXCONF_PROJECT}${PTXCONF_PROJECT_VERSION}' -zcf "; \
echo -n "$@ ." ) \
) | $(FAKEROOT) --
@echo "done."