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 <elven.wang@nxp.com>
This commit is contained in:
Haoran.Wang 2018-09-25 18:47:15 +08:00
parent 5eb040227b
commit a0759c1bd7
1 changed files with 6 additions and 0 deletions

View File

@ -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");