You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.3 KiB

  1. #
  2. # Copyright (C) 2018 Lim Guo Wei
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=coremark
  9. PKG_SOURCE_DATE:=2020-01-19
  10. PKG_SOURCE_VERSION:=0c91314d1a4fdfc157d623ad5cb6ac5aef746db1
  11. PKG_RELEASE:=1
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_DATE).tar.gz
  13. PKG_SOURCE_URL:=https://codeload.github.com/eembc/coremark/tar.gz/$(PKG_SOURCE_VERSION)?
  14. PKG_HASH:=ed046fc8b4402090a9a4aaea14013489c3184617da493a70c7576da69efea8ba
  15. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_SOURCE_VERSION)
  16. PKG_MAINTAINER:=Lim Guo Wei <limguowei@gmail.com>
  17. PKG_LICENSE:=Apache-2.0
  18. PKG_LICENSE_FILES:=LICENSE.md
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/coremark
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=CoreMark Embedded Microprocessor Benchmark
  24. URL:=https://github.com/eembc/coremark
  25. endef
  26. define Package/coremark/description
  27. Embedded Microprocessor Benchmark
  28. endef
  29. define Build/Compile
  30. $(SED) 's|EXE = .exe|EXE =|' $(PKG_BUILD_DIR)/linux/core_portme.mak
  31. mkdir $(PKG_BUILD_DIR)/$(ARCH)
  32. $(CP) -r $(PKG_BUILD_DIR)/linux/* $(PKG_BUILD_DIR)/$(ARCH)
  33. $(MAKE) -C $(PKG_BUILD_DIR) PORT_DIR=$(ARCH) $(MAKE_FLAGS) \
  34. compile
  35. endef
  36. define Package/coremark/install
  37. $(INSTALL_DIR) $(1)/bin
  38. $(INSTALL_BIN) $(PKG_BUILD_DIR)/coremark $(1)/bin/
  39. endef
  40. $(eval $(call BuildPackage,coremark))