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-08-08
  13. PKG_SOURCE_VERSION:=d40ec535b9d4e4c974e8c2fbfb422cd0348cc5e8
  14. PKG_MIRROR_HASH:=06bc3a82e173dc0b6823c04645b30db74e2686dc15559bb4e2d4805c43e30b51
  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))