From 9f2faca246e32170fcc9154b0bc2dd31a8404721 Mon Sep 17 00:00:00 2001 From: Eric Lai Date: Thu, 22 Dec 2022 08:12:51 +0800 Subject: [PATCH] lib: add stub for fw_config_get_field Return UNDEFINED_FW_CONFIG with disabled fw_config. Signed-off-by: Eric Lai Change-Id: I0d31ff3ba7706039c622bd1ec825d216a0f21fe4 Reviewed-on: https://review.coreboot.org/c/coreboot/+/71176 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner Reviewed-by: Subrata Banik Reviewed-by: Ivy Jian --- src/include/fw_config.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/include/fw_config.h b/src/include/fw_config.h index 04fdf98921..9f5e4b83ad 100644 --- a/src/include/fw_config.h +++ b/src/include/fw_config.h @@ -117,6 +117,12 @@ static inline bool fw_config_probe_dev(const struct device *dev, return true; } +static inline uint64_t fw_config_get_field(const struct fw_config_field *field) +{ + /* Always return UNDEFINED_FW_CONFIG when get with disabled fw_config. */ + return UNDEFINED_FW_CONFIG; +} + #endif /* CONFIG(FW_CONFIG) */ #endif /* __FW_CONFIG__ */