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-10-01
  13. PKG_SOURCE_VERSION:=7769a4d7abe339ce273c13a203394a79a11fcff9
  14. PKG_MIRROR_HASH:=4feb754875b680dfd815e1776e308d3296be84e4a345d9062677d5e7ee5490ed
  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))