Frans Hendriks has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/34666 )
Change subject: vendorcode/eltan/security: Add missing vb2ex_printf() ......................................................................
vendorcode/eltan/security: Add missing vb2ex_printf()
Build error on missing vb2ex_printf(). Add the file cb_vb2.c which contains the missing vb2ex_printf().
BUG=N/A TEST=Boot Linux 4.20 and verify logging on Facebook FBG-1701
Change-Id: I3f649f3faf1e812d592e4981bc75698e2cad1cc8 Signed-off-by: Frans Hendriks fhendriks@eltan.com --- M src/vendorcode/eltan/security/lib/Makefile.inc A src/vendorcode/eltan/security/lib/cb_vb2.c 2 files changed, 37 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/66/34666/1
diff --git a/src/vendorcode/eltan/security/lib/Makefile.inc b/src/vendorcode/eltan/security/lib/Makefile.inc index 5ef1bca..6fdab11 100644 --- a/src/vendorcode/eltan/security/lib/Makefile.inc +++ b/src/vendorcode/eltan/security/lib/Makefile.inc @@ -41,18 +41,22 @@ ifneq ($(filter y,$(CONFIG_VENDORCODE_ELTAN_VBOOT) $(CONFIG_VENDORCODE_ELTAN_MBOOT)),)
bootblock-$(CONFIG_C_ENVIRONMENT_BOOTBLOCK) += cb_sha.c +bootblock-y += cb_vb2.c $(eval $(call vendor-security-lib,bootblock)) bootblock-srcs += $(obj)/external/ven_sec_lib-bootblock/vboot_fw21.a
postcar-y += cb_sha.c +postcar-y += cb_vb2.c $(eval $(call vendor-security-lib,postcar)) postcar-srcs += $(obj)/external/ven_sec_lib-postcar/vboot_fw21.a
ramstage-y += cb_sha.c +ramstage-y += cb_vb2.c $(eval $(call vendor-security-lib,ramstage)) ramstage-srcs += $(obj)/external/ven_sec_lib-ramstage/vboot_fw21.a
romstage-y += cb_sha.c +romstage-y += cb_vb2.c $(eval $(call vendor-security-lib,romstage)) romstage-srcs += $(obj)/external/ven_sec_lib-romstage/vboot_fw21.a
diff --git a/src/vendorcode/eltan/security/lib/cb_vb2.c b/src/vendorcode/eltan/security/lib/cb_vb2.c new file mode 100644 index 0000000..16c972e --- /dev/null +++ b/src/vendorcode/eltan/security/lib/cb_vb2.c @@ -0,0 +1,33 @@ +/* + * This file is part of the coreboot project. + * + * Copyright 2014 Google Inc. + * Copyright 2019 Eltan B.V. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include <console/console.h> +#include <vb2_api.h> + +/* exports */ +void vb2ex_printf(const char *func, const char *fmt, ...) +{ + va_list args; + + if (func) + printk(BIOS_INFO, "VB2:%s() ", func); + + va_start(args, fmt); + vprintk(BIOS_INFO, fmt, args); + va_end(args); + + return; +}