summaryrefslogtreecommitdiffstats
path: root/rules/image-hd-vdi.make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-05-30 17:50:43 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-05-30 17:58:18 +0200
commitd86eba7179c90cbef1e602590c3ffe6ef7cf5732 (patch)
treee3f162d9eb2bdf6cab872cdf6810c68bd712cdcc /rules/image-hd-vdi.make
parent1520ffb8c2fb4b8c05d6bced777adbd723efe0f4 (diff)
downloadptxdist-d86eba7179c90cbef1e602590c3ffe6ef7cf5732.tar.gz
ptxdist-d86eba7179c90cbef1e602590c3ffe6ef7cf5732.tar.xz
turn vdi image into a new image
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/image-hd-vdi.make')
-rw-r--r--rules/image-hd-vdi.make35
1 files changed, 35 insertions, 0 deletions
diff --git a/rules/image-hd-vdi.make b/rules/image-hd-vdi.make
new file mode 100644
index 000000000..7193f2de5
--- /dev/null
+++ b/rules/image-hd-vdi.make
@@ -0,0 +1,35 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 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_HD_VDI) += image-hd-vdi
+
+#
+# Paths and names
+#
+IMAGE_HD_VDI := image-hd-vdi
+IMAGE_HD_VDI_IMAGE := $(IMAGEDIR)/hd.vdi
+IMAGE_HD_VDI_FILES := $(IMAGEDIR)/hd.img
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+$(IMAGE_HD_VDI_IMAGE):
+ @$(call targetinfo)
+ @$(call image/env) \
+ image_vdi_img="$(IMAGE_HD_VDI_FILES)" \
+ image_vdi_vdi="$(@)" \
+ ptxd_make_image_vdi
+ @$(call finish)
+
+# vim: syntax=make