summaryrefslogtreecommitdiffstats
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
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>
-rw-r--r--config/images/cpio.config6
-rw-r--r--platforms/image-root-cpio-gz.in10
-rw-r--r--platforms/image-root-cpio.in10
-rw-r--r--rules/image-root-cpio-gz.make40
-rw-r--r--rules/image-root-cpio.make40
5 files changed, 106 insertions, 0 deletions
diff --git a/config/images/cpio.config b/config/images/cpio.config
new file mode 100644
index 000000000..5c50ff8a8
--- /dev/null
+++ b/config/images/cpio.config
@@ -0,0 +1,6 @@
+image @IMAGE@ {
+ cpio {
+ format = "@FORMAT@"
+ compress = "@COMPRESS@"
+ }
+}
diff --git a/platforms/image-root-cpio-gz.in b/platforms/image-root-cpio-gz.in
new file mode 100644
index 000000000..79a789ac0
--- /dev/null
+++ b/platforms/image-root-cpio-gz.in
@@ -0,0 +1,10 @@
+## SECTION=image2
+
+config IMAGE_ROOT_CPIO_GZ
+ tristate
+ select HOST_GENIMAGE
+ select IMAGE_ROOT_TGZ
+ prompt "Generate images/root.cpio.gz"
+ help
+ Build the traditionally initrd RAM disk to be used
+ as initramfs by the kernel.
diff --git a/platforms/image-root-cpio.in b/platforms/image-root-cpio.in
new file mode 100644
index 000000000..28c589c44
--- /dev/null
+++ b/platforms/image-root-cpio.in
@@ -0,0 +1,10 @@
+## SECTION=image2
+
+config IMAGE_ROOT_CPIO
+ tristate
+ select HOST_GENIMAGE
+ select IMAGE_ROOT_TGZ
+ prompt "Generate images/root.cpio"
+ help
+ Build the traditionally initrd RAM disk to be used
+ as initramfs by the kernel.
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
diff --git a/rules/image-root-cpio.make b/rules/image-root-cpio.make
new file mode 100644
index 000000000..c883abe4d
--- /dev/null
+++ b/rules/image-root-cpio.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) += image-root-cpio
+
+#
+# Paths and names
+#
+IMAGE_ROOT_CPIO := image-root-cpio
+IMAGE_ROOT_CPIO_DIR := $(BUILDDIR)/$(IMAGE_ROOT_CPIO)
+IMAGE_ROOT_CPIO_IMAGE := $(IMAGEDIR)/root.cpio
+IMAGE_ROOT_CPIO_FILES := $(IMAGEDIR)/root.tgz
+IMAGE_ROOT_CPIO_CONFIG := cpio.config
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+IMAGE_ROOT_CPIO_ENV := \
+ FORMAT="newc" \
+ COMPRESS=
+
+ifdef PTXCONF_IMAGE_ROOT_CPIO
+$(IMAGE_ROOT_CPIO_IMAGE):
+ @$(call targetinfo)
+ @$(call image/genimage, IMAGE_ROOT_CPIO)
+ @$(call finish)
+endif
+
+# vim: syntax=make