Last change
on this file since 85718 was 85718, checked in by vboxsync, 5 years ago |
Devices/EFI: Merge edk-stable202005 and make it build, bugref:4643
|
-
Property svn:eol-style
set to
native
|
File size:
1.5 KB
|
Line | |
---|
1 | /** @file
|
---|
2 | Entrypoint of "dp" shell standalone application.
|
---|
3 |
|
---|
4 | Copyright (c) 2017, Intel Corporation. All rights reserved. <BR>
|
---|
5 |
|
---|
6 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
7 |
|
---|
8 | **/
|
---|
9 | #include "Dp.h"
|
---|
10 |
|
---|
11 | //
|
---|
12 | // String token ID of help message text.
|
---|
13 | // Shell supports to find help message in the resource section of an application image if
|
---|
14 | // .MAN file is not found. This global variable is added to make build tool recognizes
|
---|
15 | // that the help string is consumed by user and then build tool will add the string into
|
---|
16 | // the resource section. Thus the application can use '-?' option to show help message in
|
---|
17 | // Shell.
|
---|
18 | //
|
---|
19 | GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringHelpTokenId = STRING_TOKEN (STR_GET_HELP_DP);
|
---|
20 |
|
---|
21 | /**
|
---|
22 | Entry point of Tftp standalone application.
|
---|
23 |
|
---|
24 | @param ImageHandle The image handle of the process.
|
---|
25 | @param SystemTable The EFI System Table pointer.
|
---|
26 |
|
---|
27 | @retval EFI_SUCCESS Tftp command is executed successfully.
|
---|
28 | @retval EFI_ABORTED HII package was failed to initialize.
|
---|
29 | @retval others Other errors when executing tftp command.
|
---|
30 | **/
|
---|
31 | EFI_STATUS
|
---|
32 | EFIAPI
|
---|
33 | DpAppInitialize (
|
---|
34 | IN EFI_HANDLE ImageHandle,
|
---|
35 | IN EFI_SYSTEM_TABLE *SystemTable
|
---|
36 | )
|
---|
37 | {
|
---|
38 | EFI_STATUS Status;
|
---|
39 | mDpHiiHandle = InitializeHiiPackage (ImageHandle);
|
---|
40 | if (mDpHiiHandle == NULL) {
|
---|
41 | return EFI_ABORTED;
|
---|
42 | }
|
---|
43 |
|
---|
44 | Status = (EFI_STATUS)RunDp (ImageHandle, SystemTable);
|
---|
45 | HiiRemovePackages (mDpHiiHandle);
|
---|
46 | return Status;
|
---|
47 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.