mmc-utils.mk 842 B

12345678910111213141516171819202122232425
  1. ################################################################################
  2. #
  3. # mmc-utils
  4. #
  5. ################################################################################
  6. MMC_UTILS_VERSION = d40ec535b9d4e4c974e8c2fbfb422cd0348cc5e8
  7. MMC_UTILS_SITE = https://git.kernel.org/pub/scm/linux/kernel/git/cjb/mmc-utils.git
  8. MMC_UTILS_SITE_METHOD = git
  9. MMC_UTILS_LICENSE = GPL-2.0
  10. MMC_UTILS_LICENSE_FILES = mmc.h
  11. # override AM_CFLAGS as the project Makefile uses it to pass
  12. # -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2, and the latter conflicts
  13. # with the _FORTIFY_SOURCE that we pass when hardening options are
  14. # enabled.
  15. define MMC_UTILS_BUILD_CMDS
  16. $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) AM_CFLAGS=
  17. endef
  18. define MMC_UTILS_INSTALL_TARGET_CMDS
  19. $(MAKE) -C $(@D) prefix=/usr DESTDIR=$(TARGET_DIR) install
  20. endef
  21. $(eval $(generic-package))