config: enable tee debug on debug build.
authorzhangh12 <zhangh12@motorola.com>
Thu, 31 Jan 2019 10:13:52 +0000 (18:13 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:42 +0000 (17:30 +0800)
Change-Id: Ie36d8625f933d6ba0caeeae678e29867d881144d
Signed-off-by: zhangh12 <zhangh12@motorola.com>
Reviewed-on: https://gerrit.mot.com/1303580
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key

arch/arm64/configs/ext_config/debug-erd9610.config
drivers/gud/gud-exynos9610/MobiCoreDriver/logging.c

index ccdeb8ac9b90fb1fc7e629226b5f4247bc2a5a16..eda1c4da48f36ff9ca102754c3e9945edb94b0c4 100644 (file)
@@ -54,3 +54,4 @@ CONFIG_FAULT_INJECTION_DEBUG_FS=y
 CONFIG_FAULT_INJECTION_STACKTRACE_FILTER=y
 CONFIG_DYNAMIC_DEBUG=y
 CONFIG_DEBUG_SPINLOCK_BITE_ON_BUG=y
+CONFIG_TRUSTONIC_TEE_DEBUG=y
index e579a0200543f3d20586e5944c6ea1c10151b473..676115283b5ac589ab53f051b25ffc6a24e211ca 100755 (executable)
@@ -242,7 +242,11 @@ int logging_init(phys_addr_t *buffer, u32 *size)
        wake_up_process(log_ctx.thread);
 
        /* Debugfs switch */
+#ifdef CONFIG_TRUSTONIC_TEE_DEBUG
+       log_ctx.enabled = true;
+#else
        log_ctx.enabled = false;
+#endif
        debugfs_create_bool("swd_debug", 0600, g_ctx.debug_dir,
                            &log_ctx.enabled);
        return 0;