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.

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