summaryrefslogtreecommitdiffstats
path: root/rules/image-root-cpio-gz.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-09-30 15:45:52 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-09-30 15:45:52 +0200
commit2c117c8065660f45367d5d7d11c441fbe23bd6fe (patch)
treee859e7f2bfd0f8d45699809315e9c049c1823dd5 /rules/image-root-cpio-gz.make
parent8906865c33ba0724c0240c74fd6a190c85ebaba0 (diff)
downloadptxdist-2c117c8065660f45367d5d7d11c441fbe23bd6fe.tar.gz
ptxdist-2c117c8065660f45367d5d7d11c441fbe23bd6fe.tar.xz
add new-style rules for root.cpio/root.cpio.gz
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/image-root-cpio-gz.make')
-rw-r--r--rules/image-root-cpio-gz.make40
1 files changed, 40 insertions, 0 deletions
diff --git a/rules/image-root-cpio-gz.make b/rules/image-root-cpio-gz.make
new file mode 100644
index 000000000..66a8369e3
--- /dev/null
+++ b/rules/image-root-cpio-gz.make
@@ -0,0 +1,40 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2012 by Michael Olbrich <m.olbrich@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+IMAGE_PACKAGES-$(PTXCONF_IMAGE_ROOT_CPIO_GZ) += image-root-cpio-gz
+
+#
+# Paths and names
+#
+IMAGE_ROOT_CPIO_GZ := image-root-cpio-gz
+IMAGE_ROOT_CPIO_GZ_DIR := $(BUILDDIR)/$(IMAGE_ROOT_CPIO_GZ)
+IMAGE_ROOT_CPIO_GZ_IMAGE := $(IMAGEDIR)/root.cpio.gz
+IMAGE_ROOT_CPIO_GZ_FILES := $(IMAGEDIR)/root.tgz
+IMAGE_ROOT_CPIO_GZ_CONFIG := cpio.config
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+IMAGE_ROOT_CPIO_GZ_ENV := \
+ FORMAT="newc" \
+ COMPRESS=gzip
+
+ifdef PTXCONF_IMAGE_ROOT_CPIO_GZ
+$(IMAGE_ROOT_CPIO_GZ_IMAGE):
+ @$(call targetinfo)
+ @$(call image/genimage, IMAGE_ROOT_CPIO_GZ)
+ @$(call finish)
+endif
+
+# vim: syntax=make