From ac9ebb57c191de10a95c51f562583e280cc752ed Mon Sep 17 00:00:00 2001 From: coolsnowwolf Date: Tue, 25 Sep 2018 23:48:06 +0800 Subject: [PATCH] Bu Fu Pao Ge Fen? CoreMark(r) is an industry-standard benchmark that measures the performance of OpenWrt router --- package/lean/coremark/Makefile | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 package/lean/coremark/Makefile diff --git a/package/lean/coremark/Makefile b/package/lean/coremark/Makefile new file mode 100644 index 000000000..fcc3be952 --- /dev/null +++ b/package/lean/coremark/Makefile @@ -0,0 +1,51 @@ +# 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:=1 + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL:=https://github.com/eembc/coremark.git +PKG_SOURCE_VERSION:=509d8ef94ca17e527fd085c53f2a14a165a3650a +PKG_SOURCE_DATE:=2018-05-31 + +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 + +define Build/Compile + $(SED) 's|EXE = .exe|EXE =|' $(PKG_BUILD_DIR)/linux/core_portme.mak + mkdir $(PKG_BUILD_DIR)/$(ARCH) + cp -r $(PKG_BUILD_DIR)/linux/* $(PKG_BUILD_DIR)/$(ARCH) + $(MAKE) -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/ +endef + +$(eval $(call BuildPackage,coremark))