Allow to select the manufacturer of TPM2

When using tpm2 simulator for boards like Betty that lack cr50 support,
it is necessary to change the manufacturer of the device. Otherwise,
several cr50 functions are enabled when returning the previous
manufacturer ID, breaking tests.

TEST=session.GuestAndActualSession, cryptohome.GuestSession hwsec.LoginGuest for board betty passes

Cq-Depend: chromium:2395142
Change-Id: If517ce97d03b376cde5054d34698946098e02aa3
Reviewed-by: Andrey Pronin <>
Reviewed-by: Leo Lai <>
Tested-by: Alberto Herrera <>
Commit-Queue: Alberto Herrera <>
diff --git a/Makefile b/Makefile
index 626f46a..4f25d39 100644
--- a/Makefile
+++ b/Makefile
@@ -300,6 +300,10 @@
 Q :=
 ifeq ($(EMBEDDED_MODE),)
 CFLAGS += -Wall -Werror -fPIC
diff --git a/VendorString.h b/VendorString.h
index baf5164..1c62ccc 100644
--- a/VendorString.h
+++ b/VendorString.h
@@ -13,7 +13,12 @@
 //     definition should be replaced as appropriate when this code is used for
 //     actual implementations.
+#define        MANUFACTURER       "SIMU"
+//     Some CR50-specific functions expect this manufacturer.
 #define        MANUFACTURER       "CROS"
 //     The following #if macro may be deleted after a proper MANUFACTURER is provided.