buildroot/package/coremark/coremark.mk
Chris Packham 32b219fdfe package/coremark: new package
CoreMark is a simple, yet sophisticated benchmark that is designed
specifically to test the functionality of a processor core. Running
CoreMark produces a single-number score allowing users to make quick
comparisons between processors.

https://www.eembc.org/coremark/

Signed-off-by: Chris Packham <judge.packham@gmail.com>
Reviewed-by: Matt Weber <matthew.weber@rockwellcollins.com>
Tested-by: Matt Weber <matthew.weber@rockwellcollins.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2021-01-07 23:01:52 +01:00

22 lines
611 B
Makefile

################################################################################
#
# CoreMark
#
################################################################################
COREMARK_VERSION = 1.01
COREMARK_SITE = $(call github,eembc,coremark,v$(COREMARK_VERSION))
COREMARK_LICENSE = Apache-2.0
COREMARK_LICENSE_FILES = LICENSE.md
define COREMARK_BUILD_CMDS
$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" -C $(@D) \
PORT_DIR=linux$(if $(BR2_ARCH_IS_64),64) EXE= link
endef
define COREMARK_INSTALL_TARGET_CMDS
$(INSTALL) -D $(@D)/coremark $(TARGET_DIR)/usr/bin/coremark
endef
$(eval $(generic-package))