From: Denys Dmytriyenko <denis@denix.org>
To: reatmon@ti.com
Cc: Praneeth Bajjuri <praneeth@ti.com>,
Denys Dmytriyenko <denys@konsulko.com>,
meta-arago@lists.yoctoproject.org
Subject: Re: [meta-arago][master][PATCH] coremark: Clean up buildpaths QA error
Date: Fri, 5 Dec 2025 15:48:34 -0500 [thread overview]
Message-ID: <20251205204834.GF11121@denix.org> (raw)
In-Reply-To: <20251201184100.1372032-1-reatmon@ti.com>
On Mon, Dec 01, 2025 at 12:41:00PM -0600, Ryan Eatmon via lists.yoctoproject.org wrote:
> The coremark binary includes a copy of the compiler flags in the output
> which breaks the reproducible build tenet of Yocto. This patch simply
> replaces COMPILER_FLAGS with "".
This is also needed on scarthgap, where it is a warning, not an error, but
still.
> Signed-off-by: Ryan Eatmon <reatmon@ti.com>
> ---
> ..._main-Remove-printing-compiler-flags.patch | 41 +++++++++++++++++++
> .../coremark/coremark_git.bb | 5 ++-
> 2 files changed, 45 insertions(+), 1 deletion(-)
> create mode 100644 meta-arago-test/recipes-benchmark/coremark/coremark/0001-core_main-Remove-printing-compiler-flags.patch
>
> diff --git a/meta-arago-test/recipes-benchmark/coremark/coremark/0001-core_main-Remove-printing-compiler-flags.patch b/meta-arago-test/recipes-benchmark/coremark/coremark/0001-core_main-Remove-printing-compiler-flags.patch
> new file mode 100644
> index 00000000..ef7c78b2
> --- /dev/null
> +++ b/meta-arago-test/recipes-benchmark/coremark/coremark/0001-core_main-Remove-printing-compiler-flags.patch
> @@ -0,0 +1,41 @@
> +From 0af4e2298ccacc8afc0294b7a731f0e866155427 Mon Sep 17 00:00:00 2001
> +From: Ryan Eatmon <reatmon@ti.com>
> +Date: Mon, 1 Dec 2025 12:21:23 -0600
> +Subject: [PATCH] core_main: Remove printing compiler flags
> +
> +Reproducible builds do not like including anything that references the
> +build environment on the host machine. This would include printing out
> +the COMPILER_FLAGS macro. Substitute it with "".
> +
> +Upstream-Status: Inappropriate [OE-Specific]
> +
> +Signed-off-by: Ryan Eatmon <reatmon@ti.com>
> +---
> + core_main.c | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/core_main.c b/core_main.c
> +index a4beeb6..f0ab87f 100644
> +--- a/core_main.c
> ++++ b/core_main.c
> +@@ -380,7 +380,7 @@ for (i = 0; i < MULTITHREAD; i++)
> + ee_printf("Iterations : %lu\n",
> + (long unsigned)default_num_contexts * results[0].iterations);
> + ee_printf("Compiler version : %s\n", COMPILER_VERSION);
> +- ee_printf("Compiler flags : %s\n", COMPILER_FLAGS);
> ++ ee_printf("Compiler flags : %s\n", ""); //Reproducible build fix: COMPILER_FLAGS);
> + #if (MULTITHREAD > 1)
> + ee_printf("Parallel %s : %d\n", PARALLEL_METHOD, default_num_contexts);
> + #endif
> +@@ -410,7 +410,7 @@ for (i = 0; i < MULTITHREAD; i++)
> + default_num_contexts * results[0].iterations
> + / time_in_secs(total_time),
> + COMPILER_VERSION,
> +- COMPILER_FLAGS);
> ++ ""); //Reproducible build fix: COMPILER_FLAGS);
> + #if defined(MEM_LOCATION) && !defined(MEM_LOCATION_UNSPEC)
> + ee_printf(" / %s", MEM_LOCATION);
> + #else
> +--
> +2.43.0
> +
> diff --git a/meta-arago-test/recipes-benchmark/coremark/coremark_git.bb b/meta-arago-test/recipes-benchmark/coremark/coremark_git.bb
> index 1e002c06..9d770c44 100644
> --- a/meta-arago-test/recipes-benchmark/coremark/coremark_git.bb
> +++ b/meta-arago-test/recipes-benchmark/coremark/coremark_git.bb
> @@ -3,7 +3,10 @@ SUMMARY = "The benchmark utility to measure the performance of CPU"
> LICENSE = "Coremark"
> LIC_FILES_CHKSUM = "file://LICENSE.md;md5=0a18b17ae63deaa8a595035f668aebe1"
>
> -SRC_URI = "git://github.com/eembc/coremark.git;branch=main;protocol=https"
> +SRC_URI = " \
> + git://github.com/eembc/coremark.git;branch=main;protocol=https \
> + file://0001-core_main-Remove-printing-compiler-flags.patch \
> +"
> PV = "1.01+git"
> SRCREV = "1f483d5b8316753a742cbf5590caf5bd0a4e4777"
>
> --
> 2.43.0
next prev parent reply other threads:[~2025-12-05 20:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-12-01 18:41 [meta-arago][master][PATCH] coremark: Clean up buildpaths QA error Ryan Eatmon
2025-12-01 18:45 ` PRC Automation
2025-12-05 20:48 ` Denys Dmytriyenko [this message]
2025-12-05 21:04 ` Ryan Eatmon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20251205204834.GF11121@denix.org \
--to=denis@denix.org \
--cc=denys@konsulko.com \
--cc=meta-arago@lists.yoctoproject.org \
--cc=praneeth@ti.com \
--cc=reatmon@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.