Convert literal uses of CONFIG_MAINBOARD_{VENDOR,PART_NUMBER}

Only expand these strings in lib/identity.o.

Change-Id: I8732bbeff8cf8a757bf32fdb615b1d0f97584585
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/74907
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-by: Yu-Ping Wu <yupingso@google.com>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Kyösti Mälkki 2022-12-15 22:12:29 +02:00 committed by Felix Held
commit b78e462037
7 changed files with 24 additions and 19 deletions

View file

@ -6,6 +6,7 @@
#include <device/i2c.h>
#include <device/device.h>
#include <device/path.h>
#include <identity.h>
#include <stdint.h>
#include <vendorcode/google/chromeos/chromeos.h>
#include "chip.h"
@ -68,8 +69,8 @@ static void max98390_fill_ssdt(const struct device *dev)
dp = acpi_dp_new_table("_DSD");
size_t chars = snprintf(dsm_name, sizeof(dsm_name), "%s_%s_%s.bin",
config->dsm_param_file_name, CONFIG_MAINBOARD_VENDOR,
CONFIG_MAINBOARD_PART_NUMBER);
config->dsm_param_file_name, mainboard_vendor,
mainboard_part_number);
if (chars >= sizeof(dsm_name))
printk(BIOS_ERR, "String too long in %s\n", __func__);