2 Entrypoint of "tftp" shell standalone application.
4 Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved. <BR>
5 Copyright (c) 2015, ARM Ltd. All rights reserved.<BR>
7 SPDX-License-Identifier: BSD-2-Clause-Patent
13 // String token ID of help message text.
14 // Shell supports to find help message in the resource section of an application image if
15 // .MAN file is not found. This global variable is added to make build tool recognizes
16 // that the help string is consumed by user and then build tool will add the string into
17 // the resource section. Thus the application can use '-?' option to show help message in
20 GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringHelpTokenId
= STRING_TOKEN (STR_GET_HELP_TFTP
);
23 Entry point of Tftp standalone application.
25 @param ImageHandle The image handle of the process.
26 @param SystemTable The EFI System Table pointer.
28 @retval EFI_SUCCESS Tftp command is executed successfully.
29 @retval EFI_ABORTED HII package was failed to initialize.
30 @retval others Other errors when executing tftp command.
35 IN EFI_HANDLE ImageHandle
,
36 IN EFI_SYSTEM_TABLE
*SystemTable
41 mTftpHiiHandle
= InitializeHiiPackage (ImageHandle
);
42 if (mTftpHiiHandle
== NULL
) {
46 Status
= (EFI_STATUS
)RunTftp (ImageHandle
, SystemTable
);
47 HiiRemovePackages (mTftpHiiHandle
);