public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: Haojian Zhuang <haojian.zhuang@linaro.org>
To: leif.lindholm@linaro.org, ard.biesheuvel@linaro.org,
	edk2-devel@lists.01.org, linaro-uefi@lists.linaro.org
Cc: Haojian Zhuang <haojian.zhuang@linaro.org>
Subject: [PATCH 1/4] EmbeddedPkg/AndroidFastboot: add the GetKernelArgs interface
Date: Wed,  1 Mar 2017 14:36:04 +0800	[thread overview]
Message-ID: <1488350167-30752-2-git-send-email-haojian.zhuang@linaro.org> (raw)
In-Reply-To: <1488350167-30752-1-git-send-email-haojian.zhuang@linaro.org>

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(+)

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
-- 
2.7.4



  reply	other threads:[~2017-03-01  6:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-01  6:36 [PATCH 0/4] enhance to support android kernel Haojian Zhuang
2017-03-01  6:36 ` Haojian Zhuang [this message]
2017-03-01  6:36 ` [PATCH 2/4] EmbeddedPkg/AndroidFastboot: fix to boot " Haojian Zhuang
2017-03-01  6:36 ` [PATCH 3/4] EmbeddedPkg: add Android boot device path Haojian Zhuang
2017-03-01  6:36 ` [PATCH 4/4] EmbeddedPkg/AndroidBoot: boot android kernel from storage Haojian Zhuang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1488350167-30752-2-git-send-email-haojian.zhuang@linaro.org \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox