From a9dd3c3fae07b8740c9da30c691a738e8d5e5fa4 Mon Sep 17 00:00:00 2001 From: Kyösti Mälkki Date: Thu, 15 Dec 2022 22:12:10 +0200 Subject: lib/version: Move board identification strings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These strings are now only expanded in lib/identity.c. This improves ccache hit rates slightly, as one built object file lib/version.o is used for all variants of a board. Also one built object file lib/identity.o can become a ccache hit for successive builds of a variant, while the commit hash changes. Change-Id: Ia7d5454d95c8698ab1c1744e63ea4c04d615bb3b Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/74449 Tested-by: build bot (Jenkins) Reviewed-by: Felix Held --- util/sconfig/main.c | 1 + 1 file changed, 1 insertion(+) (limited to 'util/sconfig/main.c') diff --git a/util/sconfig/main.c b/util/sconfig/main.c index aa79f1e187..a246c01c67 100644 --- a/util/sconfig/main.c +++ b/util/sconfig/main.c @@ -1965,6 +1965,7 @@ static void generate_outputc(FILE *f, const char *static_header) fprintf(f, "#include \n"); fprintf(f, "#include \n"); fprintf(f, "#include \n"); + fprintf(f, "#include \n"); fprintf(f, "#include <%s>\n", static_header); emit_chip_headers(f, chip_header.next); emit_identifiers(f, "struct device_operations", device_operations); -- cgit v1.2.3