From d0cdd0805a181ff01806ca8a3fa299f68f99aa97 Mon Sep 17 00:00:00 2001 From: Ashwin Prabhakar Date: Tue, 14 Apr 2026 18:54:20 +0200 Subject: [PATCH] CoreMark: Add CoreMark to benchmark CPU performance Add support for CoreMark benchmark in recipes-benchmark. This package can be used to benchmark CPU performance in SOC's Application processor core. Signed-off-by: Ashwin Prabhakar coremark: append LDFLAGS to TARGET_CC_ARCH to fix QA issue Signed-off-by: Ashwin Prabhakar coremark: update to Apache-2.0 and LicenseRef-EEMBC-AUA Update the project license to Apache-2.0 combined with the EEMBC Acceptable Usage Agreement (AUA) as requested by the maintainer. This ensures compliance with EEMBC's updated licensing requirements for CoreMark. Signed-off-by: Ashwin Prabhakar Signed-off-by: Khem Raj --- .../coremark/coremark_git.bb | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 meta-oe/recipes-benchmark/coremark/coremark_git.bb diff --git a/meta-oe/recipes-benchmark/coremark/coremark_git.bb b/meta-oe/recipes-benchmark/coremark/coremark_git.bb new file mode 100644 index 0000000000..f4974b754f --- /dev/null +++ b/meta-oe/recipes-benchmark/coremark/coremark_git.bb @@ -0,0 +1,23 @@ +SUMMARY = "EEMBC CoreMark CPU benchmark" +DESCRIPTION = "CoreMark is a CPU benchmark program" +HOMEPAGE = "https://www.eembc.org/coremark/" +LICENSE = "Apache-2.0 & LicenseRef-EEMBC-AUA" +LIC_FILES_CHKSUM = "file://LICENSE.md;md5=0a18b17ae63deaa8a595035f668aebe1" + +SRC_URI = "git://github.com/eembc/coremark.git;branch=main;protocol=https" +SRCREV = "1f483d5b8316753a742cbf5590caf5bd0a4e4777" + +inherit pkgconfig + +do_configure[noexec] = "1" + +TARGET_CC_ARCH += "${LDFLAGS}" + +do_compile() { + oe_runmake compile +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 ${S}/coremark.exe ${D}${bindir}/coremark +}