coremark.mk 646 B

12345678910111213141516171819202122
  1. ################################################################################
  2. #
  3. # CoreMark
  4. #
  5. ################################################################################
  6. COREMARK_VERSION = 1.01
  7. COREMARK_SITE = $(call github,eembc,coremark,v$(COREMARK_VERSION))
  8. COREMARK_LICENSE = Apache-2.0
  9. COREMARK_LICENSE_FILES = LICENSE.md
  10. define COREMARK_BUILD_CMDS
  11. $(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" -C $(@D) \
  12. PORT_CFLAGS="$(TARGET_CFLAGS)" \
  13. PORT_DIR=linux$(if $(BR2_ARCH_IS_64),64) EXE= link
  14. endef
  15. define COREMARK_INSTALL_TARGET_CMDS
  16. $(INSTALL) -D $(@D)/coremark $(TARGET_DIR)/usr/bin/coremark
  17. endef
  18. $(eval $(generic-package))