summaryrefslogtreecommitdiffstats
path: root/scripts/lib/ptxd_lib_template.sh
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2012-06-12 00:49:11 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2012-06-14 13:40:25 +0200
commitf91f86bf45df463a63b496edb17f7549f2fdedd9 (patch)
tree85c596c66d9f4abd8017cfcd7685c86d93491a54 /scripts/lib/ptxd_lib_template.sh
parent3686fb8c8e81bac36c52f6bfac75758e30497dea (diff)
downloadptxdist-f91f86bf45df463a63b496edb17f7549f2fdedd9.tar.gz
ptxdist-f91f86bf45df463a63b496edb17f7549f2fdedd9.tar.xz
templates: add image-tgz template
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'scripts/lib/ptxd_lib_template.sh')
-rw-r--r--scripts/lib/ptxd_lib_template.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/lib/ptxd_lib_template.sh b/scripts/lib/ptxd_lib_template.sh
index 458892e61..5dbced6fd 100644
--- a/scripts/lib/ptxd_lib_template.sh
+++ b/scripts/lib/ptxd_lib_template.sh
@@ -372,3 +372,14 @@ ptxd_template_new_kernel() {
export -f ptxd_template_new_kernel
ptxd_template_help_list[${#ptxd_template_help_list[@]}]="kernel"
ptxd_template_help_list[${#ptxd_template_help_list[@]}]="create package for an extra kernel"
+
+ptxd_template_new_image_tgz() {
+ ptxd_template_read_name &&
+ ptxd_template_read_author &&
+ ptxd_template_read "add packages" PACKAGES '$(PTX_PACKAGES_INSTALL)'
+ ptxd_template_read "add files" FILES
+ ptxd_template_write_platform_rules
+}
+export -f ptxd_template_new_image_tgz
+ptxd_template_help_list[${#ptxd_template_help_list[@]}]="image-tgz"
+ptxd_template_help_list[${#ptxd_template_help_list[@]}]="create package for a tgz image"