mmc-utils: add new package
authorMichael Heimpold <redacted>
Fri, 6 Mar 2015 22:31:10 +0000 (23:31 +0100)
committerMichael Heimpold <redacted>
Fri, 6 Mar 2015 22:31:54 +0000 (23:31 +0100)
Signed-off-by: Michael Heimpold <redacted>
utils/mmc-utils/Makefile [new file with mode: 0644]

diff --git a/utils/mmc-utils/Makefile b/utils/mmc-utils/Makefile
new file mode 100644 (file)
index 0000000..566cb9e
--- /dev/null
@@ -0,0 +1,56 @@
+#
+# Copyright (C) 2015 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=mmc-utils
+PKG_VERSION=2015-03-06-$(PKG_SOURCE_VERSION)
+PKG_RELEASE:=1
+
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git
+PKG_SOURCE_VERSION:=f4eb241519f8d500ce6068a70d2389be39ac5189
+PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
+
+PKG_LICENSE:=GPL-2.0
+PKG_LICENSE_FILES:=
+
+PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
+
+PKG_BUILD_PARALLEL:=1
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/mmc-utils
+  SECTION:=utils
+  CATEGORY:=Utilities
+  TITLE:=Userspace tools for MMC/SD devices
+  URL:=http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git
+endef
+
+define Package/mmc-utils/description
+  This package contains the userspace mmc utils, the userspace
+  counterpart to the Linux MMC/SD subsystem.
+endef
+
+define Build/Configure
+endef
+
+define Build/Compile
+       $(MAKE) -C $(PKG_BUILD_DIR) \
+               $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS)" \
+               mmc
+endef
+
+define Package/mmc-utils/install
+       $(INSTALL_DIR) $(1)/sbin
+       $(INSTALL_BIN) $(PKG_BUILD_DIR)/mmc $(1)/sbin
+endef
+
+$(eval $(call BuildPackage,mmc-utils))
git clone https://git.99rst.org/PROJECT