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:=2022-01-16
  13. PKG_SOURCE_VERSION:=3969aa4804edb8aed7bcb3c958e49d0c7388b067
  14. PKG_MIRROR_HASH:=a9ad550e5cc2cae54facb000a1d5e98c41215ccaca439cec6ffddc9fd595f269
  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:=https://git.kernel.org/pub/scm/utils/mmc/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))