summaryrefslogtreecommitdiff
path: root/lib/utils/cppc/objects.mk
diff options
context:
space:
mode:
authorSamuel Holland <[email protected]>2025-03-12 20:57:52 -0700
committerAnup Patel <[email protected]>2025-04-13 21:49:14 +0530
commit2142618f122b9f8052c5ad91d0ba3ef1a62fb9c2 (patch)
treec11d55fe9502476e132c1fd47d0612261ba85798 /lib/utils/cppc/objects.mk
parentaa40c53ce498d1774f7779ea25ab1326640d8c63 (diff)
Makefile: Avoid repeated evaluation of shell commands
Recursively expanded variables (defined with '=') are expanded at evaluation time. These version information variables are evaluated inside a recipe as part of GENFLAGS. As a result, the shell commands are executed separately for each compiler invocation. Convert the version information variables to be simply expanded, so the shell commands are executed only once, at Makefile evaluation time. This speeds up the build by as much as 75%. A separate check is needed to maintain the behavior of preferring the value of OPENSBI_BUILD_TIME_STAMP from the environment. Signed-off-by: Samuel Holland <[email protected]> Reviewed-by: Xiang W <[email protected]> Reviewed-by: Anup Patel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Anup Patel <[email protected]>
Diffstat (limited to 'lib/utils/cppc/objects.mk')
0 files changed, 0 insertions, 0 deletions