Skip to contentSkip to conversation

mmc-utils: new package

PATCH New Sébastien Szymanski 2 participants 2 messages Jan 15, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmc-utils: new package

mmc-utils provides tools to manipulate mmc device registers. It is under "Hardware handling".

---
 package/Config.in              |  1 +
 package/mmc-utils/Config.in    | 10 ++++++++++
 package/mmc-utils/mmc-utils.mk | 23 +++++++++++++++++++++++
 3 files changed, 34 insertions(+)
 create mode 100644 package/mmc-utils/Config.in
 create mode 100644 package/mmc-utils/mmc-utils.mk
package/Config.in +1 -0
index 78c0e06..058c1e4 100644
@@ -312,6 +312,7 @@ source "package/mdadm/Config.in"
 source "package/media-ctl/Config.in"
 source "package/memtester/Config.in"
 source "package/minicom/Config.in"
+source "package/mmc-utils/Config.in"
 source "package/nanocom/Config.in"
 source "package/neard/Config.in"
 source "package/ofono/Config.in"
package/mmc-utils/Config.in new file +10 -0
new file mode 100644
index 0000000..07650c8
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_MMC_UTILS
+	bool "mmc-utils"
+	depends on BR2_LARGEFILE
+	help
+	  MMC utils
+
+	  https://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git
+
+comment "mmc-utils needs a toolchain w/ largefile"
+	depends on !BR2_LARGEFILE
package/mmc-utils/mmc-utils.mk new file +23 -0
new file mode 100644
index 0000000..857d9ac
@@ -0,0 +1,23 @@
+################################################################################
+#
+# mmc-utils
+#
+################################################################################
+
+MMC_UTILS_VERSION = 11f2ceabc4ad3f0dd568e0ce68166e4803e0615b
+MMC_UTILS_SITE    = git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git
+MMC_UTILS_LICENSE = GPLv2
+
+define MMC_UTILS_BUILD_CMDS
+	$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
+endef
+
+define MMC_UTILS_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/mmc $(TARGET_DIR)/usr/bin/mmc
+endef
+
+define MMC_UTILS_UNINSTALL_TARGET_CMDS
+	$(RM) $(TARGET_DIR)/usr/bin/mmc
+endef
+
+$(eval $(generic-package))
Signature · 1 line
1.8.3.2
#1 lore raw

PATCH 1/1 mmc-utils: new package

Quoted 4 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"S?bastien" == S?bastien Szymanski <[email protected]> writes:

mmc-utils provides tools to manipulate mmc device registers. It is under "Hardware handling".

I know it could go in both sections, but we have E.G. flashbench under filesystem and flash utilities, so I put it there instead.

Quoted 11 lines
package/mmc-utils/mmc-utils.mk new file +11 -0
+################################################################################
+#
+# mmc-utils
+#
+################################################################################
+
+MMC_UTILS_VERSION = 11f2ceabc4ad3f0dd568e0ce68166e4803e0615b
+MMC_UTILS_SITE    = git://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git
+MMC_UTILS_LICENSE = GPLv2
+
+define MMC_UTILS_BUILD_CMDS

package/mmc-utils/mmc-utils.mk line 21

Quoted 10 lines
package/mmc-utils/mmc-utils.mk new file +10 -0
+	$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
+endef
+
+define MMC_UTILS_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 0755 $(@D)/mmc $(TARGET_DIR)/usr/bin/mmc
+endef
+
+define MMC_UTILS_UNINSTALL_TARGET_CMDS
+	$(RM) $(TARGET_DIR)/usr/bin/mmc
+endef

We have deprecated uninstall commands, so this can go. Other than that it looks good - Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard