summaryrefslogtreecommitdiffstats
path: root/rules/image-root-squashfs.make
diff options
context:
space:
mode:
authorBaeuerle, Florian <Florian.Baeuerle@allegion.com>2018-07-30 12:50:36 +0000
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-07-31 09:27:31 +0200
commit1cd7300e1029967ead17d5681dbd8352e4c620e1 (patch)
tree00790f93bae7abdf6ff3b814baba4369350a0f72 /rules/image-root-squashfs.make
parentccf39827e9acd01a0f2c9ccdedbd0058c92a7140 (diff)
downloadptxdist-1cd7300e1029967ead17d5681dbd8352e4c620e1.tar.gz
ptxdist-1cd7300e1029967ead17d5681dbd8352e4c620e1.tar.xz
image-root-squashfs: add rules for generic squashfs image
This adds rules for generating a squashfs image from the root filesystem via genimage.
Diffstat (limited to 'rules/image-root-squashfs.make')
-rw-r--r--rules/image-root-squashfs.make39
1 files changed, 39 insertions, 0 deletions
diff --git a/rules/image-root-squashfs.make b/rules/image-root-squashfs.make
new file mode 100644
index 000000000..204e5434f
--- /dev/null
+++ b/rules/image-root-squashfs.make
@@ -0,0 +1,39 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2018 by Florian Bäuerle <florian.baeuerle@allegion.com>
+#
+# 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_SQUASHFS) += image-root-squashfs
+
+#
+# Paths and names
+#
+IMAGE_ROOT_SQUASHFS := image-root-squashfs
+IMAGE_ROOT_SQUASHFS_DIR := $(BUILDDIR)/$(IMAGE_ROOT_SQUASHFS)
+IMAGE_ROOT_SQUASHFS_IMAGE := $(IMAGEDIR)/root.squashfs
+IMAGE_ROOT_SQUASHFS_FILES := $(IMAGEDIR)/root.tgz
+IMAGE_ROOT_SQUASHFS_CONFIG := squashfs.config
+
+# ----------------------------------------------------------------------------
+# Image
+# ----------------------------------------------------------------------------
+
+IMAGE_ROOT_SQUASHFS_ENV := \
+ EXTRA_ARGS=$(PTXCONF_IMAGE_ROOT_SQUASHFS_EXTRA_ARGS) \
+ COMPRESSION_MODE=$(PTXCONF_IMAGE_ROOT_SQUASHFS_COMPRESSION_MODE) \
+ BLOCK_SIZE=$(PTXCONF_IMAGE_ROOT_SQUASHFS_BLOCK_SIZE)
+
+$(IMAGE_ROOT_SQUASHFS_IMAGE):
+ @$(call targetinfo)
+ @$(call image/genimage, IMAGE_ROOT_SQUASHFS)
+ @$(call finish)
+
+# vim: syntax=make