You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=mmc-utils
  9. PKG_VERSION=2015-03-06-$(PKG_SOURCE_VERSION)
  10. PKG_RELEASE:=2
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git
  13. PKG_SOURCE_VERSION:=f4eb241519f8d500ce6068a70d2389be39ac5189
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_SOURCE_VERSION)
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
  16. PKG_LICENSE:=GPL-2.0
  17. PKG_LICENSE_FILES:=
  18. PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/mmc-utils
  23. SECTION:=utils
  24. CATEGORY:=Utilities
  25. TITLE:=Userspace tools for MMC/SD devices
  26. URL:=http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git
  27. endef
  28. define Package/mmc-utils/description
  29. This package contains the userspace mmc utils, the userspace
  30. counterpart to the Linux MMC/SD subsystem.
  31. endef
  32. define Build/Configure
  33. endef
  34. define Build/Compile
  35. $(MAKE) -C $(PKG_BUILD_DIR) \
  36. $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS)" \
  37. mmc
  38. endef
  39. define Package/mmc-utils/install
  40. $(INSTALL_DIR) $(1)/sbin
  41. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mmc $(1)/sbin
  42. endef
  43. $(eval $(call BuildPackage,mmc-utils))