diff mbox series

[edk2,1/4] EmbeddedPkg/AndroidFastboot: add the GetKernelArgs interface

Message ID 1488350167-30752-2-git-send-email-haojian.zhuang@linaro.org
State New
Headers show
Series enhance to support android kernel | expand

Commit Message

Haojian Zhuang March 1, 2017, 6:36 a.m. UTC
Add the GetKernelArgs () interface in FASTBOOT_PLATFORM_PROTOCOL.
It's used to load platform command line arguments that could
be merged into the command line to boot android kernel.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>

---
 EmbeddedPkg/Include/Protocol/AndroidFastbootPlatform.h | 13 +++++++++++++
 1 file changed, 13 insertions(+)

-- 
2.7.4

_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox series

Patch

diff --git a/EmbeddedPkg/Include/Protocol/AndroidFastbootPlatform.h b/EmbeddedPkg/Include/Protocol/AndroidFastbootPlatform.h
index a9b4aac..b3c868a 100644
--- a/EmbeddedPkg/Include/Protocol/AndroidFastbootPlatform.h
+++ b/EmbeddedPkg/Include/Protocol/AndroidFastbootPlatform.h
@@ -133,6 +133,18 @@  EFI_STATUS
   IN  CHAR8   *Command
   );
 
+/*
+  Get platform kernel arguments.
+
+  @retval Null terminated CHAR16 string.
+  @retval NULL              If fail to get platform kernel arguments.
+ */
+typedef
+CHAR16 *
+(*FASTBOOT_PLATFORM_GETARGS) (
+  VOID
+  );
+
 typedef struct _FASTBOOT_PLATFORM_PROTOCOL {
   FASTBOOT_PLATFORM_INIT          Init;
   FASTBOOT_PLATFORM_UN_INIT       UnInit;
@@ -140,6 +152,7 @@  typedef struct _FASTBOOT_PLATFORM_PROTOCOL {
   FASTBOOT_PLATFORM_ERASE         ErasePartition;
   FASTBOOT_PLATFORM_GETVAR        GetVar;
   FASTBOOT_PLATFORM_OEM_COMMAND   DoOemCommand;
+  FASTBOOT_PLATFORM_GETARGS       GetKernelArgs;
 } FASTBOOT_PLATFORM_PROTOCOL;
 
 #endif