Files
operating-system/buildroot/package/coremark/coremark.mk
Stefan Agner f358f322da Bump Buildroot to 2021.02-rc3 (#1260)
* Rebase patches to Buildroot 2021.02-rc3

* Update Buildroot to 2021.02-rc3

* Declare Kernel headers to be Linux version 5.10 (since they are, and new Buildroot knows about 5.10)
2021-03-04 00:50:33 +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))