@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := coremark
PKG_SOURCE_DATE := 2020-05-28
PKG_SOURCE_VERSION := 7685fd32bd7919581bfff2881a6dac6320581400
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE := $( PKG_NAME) -$( PKG_SOURCE_DATE) .tar.gz
PKG_SOURCE_URL := https://codeload.github.com/eembc/coremark/tar.gz/$( PKG_SOURCE_VERSION) ?
@ -21,6 +21,8 @@ PKG_MAINTAINER:=Lim Guo Wei <limguowei@gmail.com>
PKG_LICENSE := Apache-2.0
PKG_LICENSE_FILES := LICENSE.md
PKG_USE_MIPS16 := 0
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / c o r e m a r k
@ -36,12 +38,27 @@ endef
DIR_ARCH := linux$( if $( CONFIG_ARCH_64BIT) ,64)
d e f i n e P a c k a g e / c o r e m a r k / c o n f i g
config COREMARK_OPTIMIZE_O3
bool "Use all optimizations (-O3)"
depends on PACKAGE_coremark
default y
help
This enables additional optmizations using the -O3 compilation flag.
e n d e f
TARGET_CFLAGS += -flto
i f e q ( $( CONFIG_COREMARK_OPTIMIZE_O 3) , y )
TARGET_CFLAGS := $( filter-out -O%,$( TARGET_CFLAGS) ) -O3
e n d i f
d e f i n e B u i l d / C o m p i l e
$( SED) 's|EXE = .exe|EXE =|' $( PKG_BUILD_DIR) /$( DIR_ARCH) /core_portme.mak
mkdir $( PKG_BUILD_DIR) /$( ARCH)
$( CP) -r $( PKG_BUILD_DIR) /$( DIR_ARCH) /* $( PKG_BUILD_DIR) /$( ARCH)
$( MAKE) -C $( PKG_BUILD_DIR) PORT_DIR = $( ARCH) $( MAKE_FLAGS) \
compile
PORT_CFLAGS = " $( TARGET_CFLAGS) " compile
e n d e f
d e f i n e P a c k a g e / c o r e m a r k / i n s t a l l