summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Klein <matthias.klein@optimeas.de>2016-06-16 10:44:31 +0200
committerMichael Olbrich <m.olbrich@pengutronix.de>2016-06-20 12:37:46 +0200
commit54749f2e0c2c7ff9c35588b8cf332dba045e2831 (patch)
tree62af83efb777baf9f078afe7dd621f17e458ab84
parent63c9e97d87f5d66edf855dc6a35914340ac2206c (diff)
downloadptxdist-54749f2e0c2c7ff9c35588b8cf332dba045e2831.tar.gz
ptxdist-54749f2e0c2c7ff9c35588b8cf332dba045e2831.tar.xz
mmc-utils: add new package
This tool allows to configure the eMMC user data area for enhanced mode (pseudo-SLC) Signed-off-by: Matthias Klein <matthias.klein@optimeas.de> [mol: cleanup] Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--rules/mmc-utils.in8
-rw-r--r--rules/mmc-utils.make55
2 files changed, 63 insertions, 0 deletions
diff --git a/rules/mmc-utils.in b/rules/mmc-utils.in
new file mode 100644
index 000000000..b053d9d79
--- /dev/null
+++ b/rules/mmc-utils.in
@@ -0,0 +1,8 @@
+## SECTION=disk_and_file
+config MMC_UTILS
+ tristate
+ prompt "mmc-utils"
+ help
+ mmc-utils is a tool for configuring MMC storage devices from userspace
+
+ See https://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/Documentation/mmc/mmc-tools.txt for details.
diff --git a/rules/mmc-utils.make b/rules/mmc-utils.make
new file mode 100644
index 000000000..444ff410d
--- /dev/null
+++ b/rules/mmc-utils.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2016 by Matthias Klein <matthias.klein@optimeas.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
+#
+PACKAGES-$(PTXCONF_MMC_UTILS) += mmc-utils
+
+#
+# Paths and names
+#
+# No tags: use a fake descriptive commit-ish to include the date
+MMC_UTILS_VERSION := 2016-06-07-g0ca049f25191
+MMC_UTILS_MD5 := da395e908be7e11bd8417cc02485be31
+MMC_UTILS := mmc-utils-$(MMC_UTILS_VERSION)
+MMC_UTILS_SUFFIX := tar.gz
+MMC_UTILS_URL := git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git;tag=$(MMC_UTILS_VERSION)
+MMC_UTILS_SOURCE := $(SRCDIR)/$(MMC_UTILS).$(MMC_UTILS_SUFFIX)
+MMC_UTILS_DIR := $(BUILDDIR)/$(MMC_UTILS)
+MMC_UTILS_LICENSE := GPL-2.0 AND BSD-3-Clause
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+MMC_UTILS_CONF_TOOL := NO
+MMC_UTILS_MAKE_ENV := $(CROSS_ENV) prefix=/usr
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/mmc-utils.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, mmc-utils)
+ @$(call install_fixup, mmc-utils,PRIORITY,optional)
+ @$(call install_fixup, mmc-utils,SECTION,base)
+ @$(call install_fixup, mmc-utils,AUTHOR,"Matthias Klein <matthias.klein@optimeas.de>")
+ @$(call install_fixup, mmc-utils,DESCRIPTION,missing)
+
+ @$(call install_copy, mmc-utils, 0, 0, 0755, -, /usr/bin/mmc)
+
+ @$(call install_finish, mmc-utils)
+
+ @$(call touch)
+
+# vim: syntax=make