public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] meta: Add targz image class
@ 2018-11-20 11:50 Harald Seiler
  2018-11-20 11:54 ` Jan Kiszka
  2018-11-20 12:51 ` Henning Schild
  0 siblings, 2 replies; 11+ messages in thread
From: Harald Seiler @ 2018-11-20 11:50 UTC (permalink / raw)
  To: isar-users

Signed-off-by: Harald Seiler <hws@denx.de>
---
 meta/classes/targz-img.bbclass | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 meta/classes/targz-img.bbclass

diff --git a/meta/classes/targz-img.bbclass b/meta/classes/targz-img.bbclass
new file mode 100644
index 0000000..898c2a8
--- /dev/null
+++ b/meta/classes/targz-img.bbclass
@@ -0,0 +1,12 @@
+# This software is a part of ISAR.
+
+TARGZ_IMAGE_FILE = "${DEPLOY_DIR_IMAGE}/${IMAGE_FULLNAME}.tar.gz"
+
+do_targz_image[stamp-extra-info] = "${DISTRO}-${MACHINE}"
+
+do_targz_image() {
+    rm -f ${TARGZ_IMAGE_FILE}
+    sudo tar -cvzf ${TARGZ_IMAGE_FILE} -C ${IMAGE_ROOTFS} .
+}
+
+addtask targz_image before do_build after do_copy_boot_files
-- 
2.14.1



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-12-10 12:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-20 11:50 [PATCH] meta: Add targz image class Harald Seiler
2018-11-20 11:54 ` Jan Kiszka
2018-11-20 12:51 ` Henning Schild
2018-11-20 13:07   ` Harald Seiler
2018-11-20 13:14     ` chombourger
2018-11-20 13:19   ` [PATCH v2] " Harald Seiler
2018-11-23  7:32     ` Maxim Yu. Osipov
2018-11-23 11:38       ` Harald Seiler
2018-11-24 14:01         ` Cedric Hombourger
2018-11-27  9:13           ` [PATCH v3] " Harald Seiler
2018-12-10 12:04             ` Maxim Yu. Osipov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox