summaryrefslogtreecommitdiffstats
path: root/rules/templates/template-image-genimage-make
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-06-14 10:15:10 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-06-14 13:54:35 +0200
commit9589823e37f1364324261c910374a2a1adeb994b (patch)
tree2404fa8f0349ebb4ef9875bae5939f36404ceb6a /rules/templates/template-image-genimage-make
parentc55569d576558ee51f6c4a181dd14c5f5aab0760 (diff)
downloadptxdist-9589823e37f1364324261c910374a2a1adeb994b.tar.gz
ptxdist-9589823e37f1364324261c910374a2a1adeb994b.tar.xz
templates: add image-genimage template
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/templates/template-image-genimage-make')
-rw-r--r--rules/templates/template-image-genimage-make34
1 files changed, 34 insertions, 0 deletions
diff --git a/rules/templates/template-image-genimage-make b/rules/templates/template-image-genimage-make
new file mode 100644
index 000000000..8f65c767c
--- /dev/null
+++ b/rules/templates/template-image-genimage-make
@@ -0,0 +1,34 @@
+# -*-makefile-*-
+#
+# Copyright (C) @YEAR@ by @AUTHOR@
+#
+# 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_@PACKAGE@) += image-@package@
+
+#
+# Paths and names
+#
+IMAGE_@PACKAGE@ := image-@package@
+IMAGE_@PACKAGE@_DIR := $(BUILDDIR)/$(IMAGE_@PACKAGE@)
+IMAGE_@PACKAGE@_IMAGE := $(IMAGEDIR)/@package@.@TYPE@
+IMAGE_@PACKAGE@_FILES := @FILES@
+IMAGE_@PACKAGE@_CONFIG := $(call genimage/config, @CONFIG@)
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+$(IMAGE_@PACKAGE@_IMAGE): $(IMAGE_@PACKAGE@_CONFIG)
+ @$(call targetinfo)
+ @$(call image/archive, IMAGE_@PACKAGE@)
+ @$(call finish)
+
+# vim: syntax=make