summaryrefslogtreecommitdiff
path: root/Platform/Comcast/Application/SecureBoot/SecureBoot.c
diff options
context:
space:
mode:
authorKalyan Nagabhirava <kalyankumar.nagabhirava@linaro.org>2018-02-12 16:01:20 +0530
committerArd Biesheuvel <ard.biesheuvel@linaro.org>2018-03-02 14:45:58 +0000
commitc255b21b95cb6da522cbcde80669b2ef186b5473 (patch)
tree3f35f1cb4f9d2785a7192c2f3ebf74d760af6696 /Platform/Comcast/Application/SecureBoot/SecureBoot.c
parent43378096976333db0901bef685dd3e246392d196 (diff)
downloadedk2-platforms-c255b21b95cb6da522cbcde80669b2ef186b5473.tar.xz
Platform/Comcast: add RDK Secure Boot application
Application will get file path of PK key and KEK keys using rdk.conf file, once keys are available, application will enable secure boot and validates the signed kernel Image. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Moorthy Baskaravenkatraman <moorthy.baskaravenkatraman-sambamoorthy@linaro.org> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Diffstat (limited to 'Platform/Comcast/Application/SecureBoot/SecureBoot.c')
-rw-r--r--Platform/Comcast/Application/SecureBoot/SecureBoot.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/Platform/Comcast/Application/SecureBoot/SecureBoot.c b/Platform/Comcast/Application/SecureBoot/SecureBoot.c
new file mode 100644
index 0000000000..d26d982fe1
--- /dev/null
+++ b/Platform/Comcast/Application/SecureBoot/SecureBoot.c
@@ -0,0 +1,30 @@
+/*
+# Copyright (c) 2014-2018, Linaro Limited. All rights reserved.
+#
+# This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution. The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+ */
+#include <RdkBootManagerLib.h>
+
+EFI_STATUS
+EFIAPI
+SecureBootEntryPoint (
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_SYSTEM_TABLE *SystemTable
+ )
+{
+ EFI_STATUS Status;
+
+ Status = RdkSecureBoot (
+ ImageHandle,
+ SystemTable->BootServices
+ );
+
+ return Status;
+}