diff --git a/package/lean/coremark/Makefile b/package/lean/coremark/Makefile deleted file mode 100644 index 7efb2ee003..0000000000 --- a/package/lean/coremark/Makefile +++ /dev/null @@ -1,72 +0,0 @@ -# Copyright 2018 Embedded Microprocessor Benchmark Consortium (EEMBC) -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -include $(TOPDIR)/rules.mk - -PKG_NAME:=coremark -PKG_RELEASE:=15 - -PKG_SOURCE_PROTO:=git -PKG_SOURCE_URL:=https://github.com/eembc/coremark.git -PKG_SOURCE_VERSION:=7685fd32bd7919581bfff2881a6dac6320581400 -PKG_SOURCE_DATE:=2020-05-28 - -include $(INCLUDE_DIR)/package.mk - -define Package/coremark - SECTION:=utils - CATEGORY:=Utilities - TITLE:=CoreMark Embedded Microprocessor Benchmark - URL:=https://github.com/eembc/coremark -endef - -define Package/coremark/description - Embedded Microprocessor Benchmark -endef - -DIR_ARCH:=linux - -ifeq ($(CONFIG_ARCH_64BIT),y) - DIR_ARCH:=linux64 -else ifeq ($(CONFIG_64BIT),y) - DIR_ARCH:=linux64 -endif - -TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) -O3 -flto - -define Build/Compile - $(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) XCFLAGS="-DMULTITHREAD=16 -DUSE_PTHREAD" -C $(PKG_BUILD_DIR) PORT_DIR=$(ARCH) $(MAKE_FLAGS) \ - compile -endef - -define Package/coremark/install - $(INSTALL_DIR) $(1)/bin - $(INSTALL_BIN) $(PKG_BUILD_DIR)/coremark $(1)/bin/ - $(INSTALL_DIR) $(1)/etc - $(INSTALL_BIN) ./coremark.sh $(1)/etc/ - $(INSTALL_DIR) $(1)/etc/uci-defaults - $(INSTALL_BIN) ./coremark $(1)/etc/uci-defaults/xxx-coremark -endef - -define Package/coremark/postinst -#!/bin/sh -[ -n "$${IPKG_INSTROOT}" ] || sed -i '/coremark/d' /etc/crontabs/root -[ -n "$${IPKG_INSTROOT}" ] || echo "0 4 * * * /etc/coremark.sh" >> /etc/crontabs/root -[ -n "$${IPKG_INSTROOT}" ] || crontab /etc/crontabs/root -endef - -$(eval $(call BuildPackage,coremark)) diff --git a/package/lean/coremark/coremark b/package/lean/coremark/coremark deleted file mode 100755 index 2fcdd544bf..0000000000 --- a/package/lean/coremark/coremark +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -sed -i '/coremark/d' /etc/crontabs/root -echo "0 4 * * * /etc/coremark.sh" >> /etc/crontabs/root -crontab /etc/crontabs/root - -touch /etc/bench.log \ No newline at end of file diff --git a/package/lean/coremark/coremark.sh b/package/lean/coremark/coremark.sh deleted file mode 100755 index 6b0f9f127a..0000000000 --- a/package/lean/coremark/coremark.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -/bin/coremark > /tmp/coremark.log - -cat /tmp/coremark.log | grep "CoreMark 1.0" | cut -d "/" -f 1 > /etc/bench.log -sed -i 's/CoreMark 1.0/(CpuMark/g' /etc/bench.log -echo " Scores)" >> /etc/bench.log - -if [ -f "/etc/bench.log" ]; then - sed -i '/coremark/d' /etc/crontabs/root - crontab /etc/crontabs/root -fi \ No newline at end of file