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.

54 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2015-2016 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_RELEASE:=1
  10. PKG_SOURCE_PROTO:=git
  11. PKG_SOURCE_URL:=https://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git
  12. PKG_SOURCE_DATE:=2018-03-27
  13. PKG_SOURCE_VERSION:=b4fe0c8c0e57a74c01755fa9362703b60d7ee49d
  14. PKG_MIRROR_HASH:=ce7018d6ba6f2cccc64a40103cfb64f8905c96262140cdc8bf5f7674f192b81b
  15. PKG_LICENSE:=GPL-2.0
  16. PKG_LICENSE_FILES:=
  17. PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
  18. PKG_BUILD_PARALLEL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/mmc-utils
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=Userspace tools for MMC/SD devices
  24. URL:=http://git.kernel.org/cgit/linux/kernel/git/cjb/mmc-utils.git
  25. endef
  26. define Package/mmc-utils/description
  27. This package contains the userspace mmc utils, the userspace
  28. counterpart to the Linux MMC/SD subsystem.
  29. endef
  30. define Build/Configure
  31. endef
  32. define Build/Compile
  33. $(MAKE) -C $(PKG_BUILD_DIR) \
  34. $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2" \
  35. mmc
  36. endef
  37. define Package/mmc-utils/install
  38. $(INSTALL_DIR) $(1)/sbin
  39. $(INSTALL_BIN) $(PKG_BUILD_DIR)/mmc $(1)/sbin
  40. endef
  41. $(eval $(call BuildPackage,mmc-utils))