From a8bb0fa49e6d55ae8e38387a62b0d85710a7d2ae Mon Sep 17 00:00:00 2001 From: "Haoran.Wang" Date: Tue, 25 Sep 2018 18:47:15 +0800 Subject: MA-12886 Set keymaster HAL to trusty when use Trusty OS When use Trusty OS, set the property keymaster HAL to use the Trusty OS backed one. This patch make the bootloader able to control the Android Keymaster HAL. Change-Id: I0a533c12b99824ef499ce642cf87c22d72b51503 Signed-off-by: Haoran.Wang (cherry picked from commit a0759c1bd75fab610f595fd9cd6b7c494ba5177e) --- common/image-android.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/image-android.c b/common/image-android.c index 90fd3ca7f3..35a91fbf2d 100644 --- a/common/image-android.c +++ b/common/image-android.c @@ -194,6 +194,12 @@ int android_image_get_kernel(const struct andr_img_hdr *hdr, int verify, } #endif +#ifdef CONFIG_IMX_TRUSTY_OS + char *bootargs_trusty = "androidboot.keystore=trusty"; + strncat(commandline, " ", sizeof(commandline) - strlen(commandline)); + strncat(commandline, bootargs_trusty, sizeof(commandline) - strlen(commandline)); +#endif + /* Add 'append_bootargs' to hold some paramemters which need to be appended * to bootargs */ char *append_bootargs = env_get("append_bootargs"); -- cgit v1.2.3