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/utils/mmc/mmc-utils.git
  12. PKG_SOURCE_DATE:=2021-12-11
  13. PKG_SOURCE_VERSION:=a1b233c2a31baa5b77cb67c0c3be4767be86f727
  14. PKG_MIRROR_HASH:=3a1b75afd51f22054bc06d5dce79408c0c20b1f26b85251c8964bbc1e04a4b4b
  15. PKG_LICENSE:=GPL-2.0-only
  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))