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:=2017-03-20
  13. PKG_SOURCE_VERSION:=37c86e60c0442fef570b75cd81aeb1db4d0cbafd
  14. PKG_MIRROR_HASH:=652958e818d984804be6846ba504961f31c6e98414d0d34ec7a0d76d0844584a
  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))