From 4315c28739dcade156ac9384c99ba552b6d85b40 Mon Sep 17 00:00:00 2001 From: Dmitry Baryshkov Date: Wed, 19 Nov 2025 11:36:42 +0200 Subject: [PATCH] gfxstream: don't dump genvk.py args to generated files Full command lines include full path to the output file, which triggers reproducibility warnings (e.g. in Yocto builds). Drop the args and print only a basename of the script used to generate the file. Signed-off-by: Dmitry Baryshkov Part-of: --- src/gfxstream/codegen/scripts/cerealgenerator.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gfxstream/codegen/scripts/cerealgenerator.py b/src/gfxstream/codegen/scripts/cerealgenerator.py index a171af83641..5e34ea64bd1 100644 --- a/src/gfxstream/codegen/scripts/cerealgenerator.py +++ b/src/gfxstream/codegen/scripts/cerealgenerator.py @@ -285,13 +285,7 @@ def banner_command(argv): Return a string corresponding to the command, with platform-specific paths removed.""" - def makePosixRelative(someArg): - # Do not use relative for /tmp/ to avoid effects of checkout location - if os.path.exists(someArg) and someArg != "/tmp/": - return str(PurePosixPath(Path(os.path.relpath(someArg)))) - return someArg - - return ' '.join(map(makePosixRelative, argv)) + return os.path.basename(argv[0]) def envGetOrDefault(key, default=None): if key in os.environ: