kumquat-buildroot/package/coremark/coremark.mk
Joel Stanley c9a13ae083 package/coremark: Set cflags
The coremark build needs to set PORT_CFLAGS explicitly in order to pick
up the configured optmisation level, and other flags.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Acked-by: Chris Packham <judge.packham@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2023-04-16 21:10:33 +02:00

23 lines
646 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_CFLAGS="$(TARGET_CFLAGS)" \
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))