a9dd3c3fae
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 <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/74449 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
14 lines
455 B
C
14 lines
455 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
#include <identity.h>
|
|
|
|
#ifndef CONFIG_MAINBOARD_VENDOR
|
|
#error CONFIG_MAINBOARD_VENDOR not defined
|
|
#endif
|
|
#ifndef CONFIG_MAINBOARD_PART_NUMBER
|
|
#error CONFIG_MAINBOARD_PART_NUMBER not defined
|
|
#endif
|
|
|
|
const char mainboard_vendor[] = CONFIG_MAINBOARD_VENDOR;
|
|
const char mainboard_part_number[] = CONFIG_MAINBOARD_PART_NUMBER;
|
|
const char mainboard_name[] = CONFIG_MAINBOARD_VENDOR " " CONFIG_MAINBOARD_PART_NUMBER;
|