diff options
author | Saloni Kasbekar <saloni.kasbekar@intel.com> | 2022-12-16 18:42:39 +0100 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2025-03-13 00:34:01 +0000 |
commit | 3e0d879a080eea39afd87c47805cb22a8fcc9824 (patch) | |
tree | 99ae3045b415374ed30a0094238345cebb3394da | |
parent | fa21977197d1b9ad1900fcf6225a96139faf5930 (diff) | |
download | edk2-3e0d879a080eea39afd87c47805cb22a8fcc9824.zip edk2-3e0d879a080eea39afd87c47805cb22a8fcc9824.tar.gz edk2-3e0d879a080eea39afd87c47805cb22a8fcc9824.tar.bz2 |
NetworkPkg/HttpBootDxe: Add Proxy URI field to HII.
Add Proxy URI field to HTTP Boot HII
Signed-off-by: Saloni Kasbekar <saloni.kasbekar@intel.com>
-rw-r--r-- | NetworkPkg/HttpBootDxe/HttpBootConfigNVDataStruc.h | 4 | ||||
-rw-r--r-- | NetworkPkg/HttpBootDxe/HttpBootConfigStrings.uni | 2 | ||||
-rw-r--r-- | NetworkPkg/HttpBootDxe/HttpBootConfigVfr.vfr | 9 |
3 files changed, 14 insertions, 1 deletions
diff --git a/NetworkPkg/HttpBootDxe/HttpBootConfigNVDataStruc.h b/NetworkPkg/HttpBootDxe/HttpBootConfigNVDataStruc.h index a24fa5c..f0da21e 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootConfigNVDataStruc.h +++ b/NetworkPkg/HttpBootDxe/HttpBootConfigNVDataStruc.h @@ -27,7 +27,8 @@ SPDX-License-Identifier: BSD-2-Clause-Patent #define FORMID_MAIN_FORM 1
-#define KEY_INITIATOR_URI 0x101
+#define KEY_INITIATOR_URI 0x101
+#define KEY_INITIATOR_PROXY_URI 0x102
#define HTTP_BOOT_DEFAULT_DESCRIPTION_STR L"UEFI HTTP"
@@ -37,6 +38,7 @@ typedef struct _HTTP_BOOT_CONFIG_IFR_NVDATA { UINT8 Padding;
CHAR16 Description[DESCRIPTION_STR_MAX_SIZE];
CHAR16 Uri[URI_STR_MAX_SIZE];
+ CHAR16 ProxyUri[URI_STR_MAX_SIZE];
} HTTP_BOOT_CONFIG_IFR_NVDATA;
#pragma pack()
diff --git a/NetworkPkg/HttpBootDxe/HttpBootConfigStrings.uni b/NetworkPkg/HttpBootDxe/HttpBootConfigStrings.uni index 40abb13..28af02b 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootConfigStrings.uni +++ b/NetworkPkg/HttpBootDxe/HttpBootConfigStrings.uni @@ -18,4 +18,6 @@ #string STR_BOOT_URI_PROMPT #language en-US "Boot URI"
#string STR_BOOT_URI_HELP #language en-US "A new Boot Option will be created according to this Boot URI."
#string STR_BOOT_DESCRIPTION_PROMPT #language en-US "Input the description"
+#string STR_BOOT_PROXY_URI_PROMPT #language en-US "Proxy URI"
+#string STR_BOOT_PROXY_URI_HELP #language en-US "Proxy URI through which to connect to Boot URI"
#string STR_NULL_STRING #language en-US ""
diff --git a/NetworkPkg/HttpBootDxe/HttpBootConfigVfr.vfr b/NetworkPkg/HttpBootDxe/HttpBootConfigVfr.vfr index 65a6021..6a23e57 100644 --- a/NetworkPkg/HttpBootDxe/HttpBootConfigVfr.vfr +++ b/NetworkPkg/HttpBootDxe/HttpBootConfigVfr.vfr @@ -44,6 +44,15 @@ formset minsize = URI_STR_MIN_SIZE,
maxsize = URI_STR_MAX_SIZE,
endstring;
+
+ string varid = HTTP_BOOT_CONFIG_IFR_NVDATA.ProxyUri,
+ prompt = STRING_TOKEN(STR_BOOT_PROXY_URI_PROMPT),
+ help = STRING_TOKEN(STR_BOOT_PROXY_URI_HELP),
+ flags = INTERACTIVE,
+ key = KEY_INITIATOR_PROXY_URI,
+ minsize = URI_STR_MIN_SIZE,
+ maxsize = URI_STR_MAX_SIZE,
+ endstring;
endform;
endformset;
|