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