ShellPkg/tftp: Convert from NULL class library to Dynamic Command
UEFI Shell spec defines Shell Dynamic Command protocol which is just for the purpose to extend internal command. So tftp command is changed from NULL class library to be a driver producing DynamicCommand protocol. The guideline is: 1. Only use NULL class library for Shell spec defined commands. 2. New commands can be provided as not only a standalone application but also a dynamic command. So it can be used either as an internal command, but also as a standalone application. TftpApp.inf is to provide a standalone application. TftpDynamicCommand.inf is to provide a standalone driver producing Dynamic Command protocol. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ruiyu Ni <ruiyu.ni@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Cc: Michael D Kinney <michael.d.kinney@intel.com>
This commit is contained in:
1102
ShellPkg/DynamicCommand/TftpDynamicCommand/Tftp.c
Normal file
1102
ShellPkg/DynamicCommand/TftpDynamicCommand/Tftp.c
Normal file
File diff suppressed because it is too large
Load Diff
75
ShellPkg/DynamicCommand/TftpDynamicCommand/Tftp.h
Normal file
75
ShellPkg/DynamicCommand/TftpDynamicCommand/Tftp.h
Normal file
@@ -0,0 +1,75 @@
|
||||
/** @file
|
||||
Header file for 'tftp' command functions.
|
||||
|
||||
Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved. <BR>
|
||||
Copyright (c) 2015, ARM Ltd. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
|
||||
#ifndef _TFTP_H_
|
||||
#define _TFTP_H_
|
||||
|
||||
#include <Uefi.h>
|
||||
|
||||
#include <Protocol/HiiPackageList.h>
|
||||
#include <Protocol/ServiceBinding.h>
|
||||
#include <Protocol/Mtftp4.h>
|
||||
|
||||
#include <Library/BaseLib.h>
|
||||
#include <Library/BaseMemoryLib.h>
|
||||
#include <Library/DebugLib.h>
|
||||
#include <Library/MemoryAllocationLib.h>
|
||||
#include <Library/ShellLib.h>
|
||||
#include <Library/UefiLib.h>
|
||||
#include <Library/UefiRuntimeServicesTableLib.h>
|
||||
#include <Library/UefiBootServicesTableLib.h>
|
||||
#include <Library/HiiLib.h>
|
||||
#include <Library/NetLib.h>
|
||||
#include <Library/PrintLib.h>
|
||||
#include <Library/UefiHiiServicesLib.h>
|
||||
|
||||
extern EFI_HANDLE mTftpHiiHandle;
|
||||
|
||||
typedef struct {
|
||||
UINTN FileSize;
|
||||
UINTN DownloadedNbOfBytes;
|
||||
UINTN LastReportedNbOfBytes;
|
||||
} DOWNLOAD_CONTEXT;
|
||||
|
||||
/**
|
||||
Function for 'tftp' command.
|
||||
|
||||
@param[in] ImageHandle The image handle.
|
||||
@param[in] SystemTable The system table.
|
||||
|
||||
@retval SHELL_SUCCESS Command completed successfully.
|
||||
@retval SHELL_INVALID_PARAMETER Command usage error.
|
||||
@retval SHELL_ABORTED The user aborts the operation.
|
||||
@retval value Unknown error.
|
||||
**/
|
||||
SHELL_STATUS
|
||||
RunTftp (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
);
|
||||
|
||||
/**
|
||||
Retrive HII package list from ImageHandle and publish to HII database.
|
||||
|
||||
@param ImageHandle The image handle of the process.
|
||||
|
||||
@return HII handle.
|
||||
**/
|
||||
EFI_HANDLE
|
||||
InitializeHiiPackage (
|
||||
EFI_HANDLE ImageHandle
|
||||
);
|
||||
#endif // _TFTP_H_
|
97
ShellPkg/DynamicCommand/TftpDynamicCommand/Tftp.uni
Normal file
97
ShellPkg/DynamicCommand/TftpDynamicCommand/Tftp.uni
Normal file
@@ -0,0 +1,97 @@
|
||||
// /**
|
||||
//
|
||||
// (C) Copyright 2015-2016 Hewlett Packard Enterprise Development LP<BR>
|
||||
// Copyright (c) 2010 - 2016, Intel Corporation. All rights reserved. <BR>
|
||||
// This program and the accompanying materials
|
||||
// are licensed and made available under the terms and conditions of the BSD License
|
||||
// which accompanies this distribution. The full text of the license may be found at
|
||||
// http://opensource.org/licenses/bsd-license.php
|
||||
//
|
||||
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
// Module Name:
|
||||
//
|
||||
// UefiShellTftpCommandLib.uni
|
||||
//
|
||||
// Abstract:
|
||||
//
|
||||
// String definitions for UEFI Shell TFTP command
|
||||
//
|
||||
//
|
||||
// **/
|
||||
|
||||
/=#
|
||||
|
||||
#langdef en-US "english"
|
||||
|
||||
#string STR_GEN_TOO_MANY #language en-US "%H%s%N: Too many arguments\r\n"
|
||||
#string STR_GEN_TOO_FEW #language en-US "%H%s%N: Too few arguments\r\n"
|
||||
#string STR_GEN_PARAM_INV #language en-US "%H%s%N: Invalid argument - '%H%s%N'\r\n"
|
||||
#string STR_GEN_PROBLEM #language en-US "%H%s%N: Unknown flag - '%H%s%N'\r\n"
|
||||
#string STR_GEN_FILE_OPEN_FAIL #language en-US "%H%s%N: Cannot open file - '%H%s%N'\r\n"
|
||||
#string STR_GEN_CRLF #language en-US "\r\n"
|
||||
|
||||
#string STR_TFTP_ERR_NO_NIC #language en-US "No network interface card found.\r\n"
|
||||
#string STR_TFTP_ERR_NIC_NAME #language en-US "Failed to get the name of the network interface card number %d - %r\r\n"
|
||||
#string STR_TFTP_ERR_OPEN_PROTOCOL #language en-US "Unable to open MTFTP4 protocol on '%H%s%N' - %r\r\n"
|
||||
#string STR_TFTP_ERR_CONFIGURE #language en-US "Unable to configure MTFTP4 protocol on '%H%s%N' - %r\r\n"
|
||||
#string STR_TFTP_ERR_FILE_SIZE #language en-US "Unable to get the size of the file '%H%s%N' on '%H%s%N' - %r\r\n"
|
||||
#string STR_TFTP_ERR_DOWNLOAD #language en-US "Unable to download the file '%H%s%N' on '%H%s%N' - %r\r\n"
|
||||
#string STR_TFTP_ERR_WRITE #language en-US "Unable to write into file '%H%s%N' - %r\r\n"
|
||||
#string STR_TFTP_ERR_NIC_NOT_FOUND #language en-US "Network Interface Card '%H%s%N' not found.\r\n"
|
||||
#string STR_TFTP_DOWNLOADING #language en-US "Downloading the file '%H%s%N'\r\n"
|
||||
#string STR_TFTP_STRING #language en-US "%s"
|
||||
|
||||
#string STR_GET_HELP_TFTP #language en-US ""
|
||||
".TH tftp 0 "Download a file from TFTP server."\r\n"
|
||||
".SH NAME\r\n"
|
||||
"Download a file from TFTP server.\r\n"
|
||||
".SH SYNOPSIS\r\n"
|
||||
" \r\n"
|
||||
"TFTP [-i interface] [-l <port>] [-r <port>] [-c <retry count>] [-t <timeout>]\r\n"
|
||||
" [-s <block size>] host remotefilepath [localfilepath]\r\n"
|
||||
".SH OPTIONS\r\n"
|
||||
" \r\n"
|
||||
" -i interface - Specifies an adapter name, i.e., eth0.\r\n"
|
||||
" -l port - Specifies the local port number. Default value is 0\r\n"
|
||||
" and the port number is automatically assigned.\r\n"
|
||||
" -r port - Specifies the remote port number. Default value is 69.\r\n"
|
||||
" -c <retry count> - The number of times to transmit request packets and\r\n"
|
||||
" wait for a response. The default value is 6.\r\n"
|
||||
" -t <timeout> - The number of seconds to wait for a response after\r\n"
|
||||
" sending a request packet. Default value is 4s.\r\n"
|
||||
" -s <block size> - Specifies the TFTP blksize option as defined in RFC 2348.\r\n"
|
||||
" Valid range is between 8 and 65464, default value is 512.\r\n"
|
||||
" host - Specify TFTP Server IPv4 address.\r\n"
|
||||
" remotefilepath - TFTP server file path to download the file.\r\n"
|
||||
" localfilepath - Local destination file path.\r\n"
|
||||
".SH DESCRIPTION\r\n"
|
||||
" \r\n"
|
||||
"NOTES:\r\n"
|
||||
" 1. The TFTP command allows to get the file specified by its 'remotefilepath'\r\n"
|
||||
" path from the TFTP server specified by its 'host' IPv4 address. If the\r\n"
|
||||
" optional 'localfilepath' parameter is provided, the downloaded file is\r\n"
|
||||
" stored locally using the provided file path. If the local file path is\r\n"
|
||||
" not specified, the file is stored in the current directory using the file\r\n"
|
||||
" server's name.\r\n"
|
||||
" 2. Before using the TFTP command, the network interface intended to be\r\n"
|
||||
" used to retrieve the file must be configured. This configuration may be\r\n"
|
||||
" done by means of the 'ifconfig' command.\r\n"
|
||||
" 3. If a network interface is defined with the '-i' option then only this\r\n"
|
||||
" interface will be used to retrieve the remote file. Otherwise, all network\r\n"
|
||||
" interfaces are tried in the order they have been discovered during the\r\n"
|
||||
" DXE phase.\r\n"
|
||||
".SH EXAMPLES\r\n"
|
||||
" \r\n"
|
||||
"EXAMPLES:\r\n"
|
||||
" * To get the file "dir1/file1.dat" from the TFTP server 192.168.1.1 and\r\n"
|
||||
" store it as file2.dat in the current directory :\r\n"
|
||||
" fs0:\> tftp 192.168.1.1 dir1/file1.dat file2.dat\r\n"
|
||||
".SH RETURNVALUES\r\n"
|
||||
" \r\n"
|
||||
"RETURN VALUES:\r\n"
|
||||
" SHELL_SUCCESS The action was completed as requested.\r\n"
|
||||
" SHELL_INVALID_PARAMETER One of the passed-in parameters was incorrectly\r\n"
|
||||
" formatted or its value was out of bounds.\r\n"
|
||||
|
54
ShellPkg/DynamicCommand/TftpDynamicCommand/TftpApp.c
Normal file
54
ShellPkg/DynamicCommand/TftpDynamicCommand/TftpApp.c
Normal file
@@ -0,0 +1,54 @@
|
||||
/** @file
|
||||
Entrypoint of "tftp" shell standalone application.
|
||||
|
||||
Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved. <BR>
|
||||
Copyright (c) 2015, ARM Ltd. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
#include "Tftp.h"
|
||||
|
||||
//
|
||||
// String token ID of help message text.
|
||||
// Shell supports to find help message in the resource section of an application image if
|
||||
// .MAN file is not found. This global variable is added to make build tool recognizes
|
||||
// that the help string is consumed by user and then build tool will add the string into
|
||||
// the resource section. Thus the application can use '-?' option to show help message in
|
||||
// Shell.
|
||||
//
|
||||
GLOBAL_REMOVE_IF_UNREFERENCED EFI_STRING_ID mStringHelpTokenId = STRING_TOKEN (STR_GET_HELP_TFTP);
|
||||
|
||||
/**
|
||||
Entry point of Tftp standalone application.
|
||||
|
||||
@param ImageHandle The image handle of the process.
|
||||
@param SystemTable The EFI System Table pointer.
|
||||
|
||||
@retval EFI_SUCCESS Tftp command is executed sucessfully.
|
||||
@retval EFI_ABORTED HII package was failed to initialize.
|
||||
@retval others Other errors when executing tftp command.
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
TftpAppInitialize (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
mTftpHiiHandle = InitializeHiiPackage (ImageHandle);
|
||||
if (mTftpHiiHandle == NULL) {
|
||||
return EFI_ABORTED;
|
||||
}
|
||||
|
||||
Status = (EFI_STATUS)RunTftp (ImageHandle, SystemTable);
|
||||
HiiRemovePackages (mTftpHiiHandle);
|
||||
return Status;
|
||||
}
|
59
ShellPkg/DynamicCommand/TftpDynamicCommand/TftpApp.inf
Normal file
59
ShellPkg/DynamicCommand/TftpDynamicCommand/TftpApp.inf
Normal file
@@ -0,0 +1,59 @@
|
||||
## @file
|
||||
# Provides Shell 'tftp' standalone application.
|
||||
#
|
||||
# Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved. <BR>
|
||||
# Copyright (c) 2015, ARM Ltd. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
# which accompanies this distribution. The full text of the license may be found at
|
||||
# http://opensource.org/licenses/bsd-license.php
|
||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010006
|
||||
BASE_NAME = tftp
|
||||
FILE_GUID = 8DC58D0D-67F5-4B97-9DFC-E442BB9A5648
|
||||
MODULE_TYPE = UEFI_APPLICATION
|
||||
VERSION_STRING = 1.0
|
||||
ENTRY_POINT = TftpAppInitialize
|
||||
#
|
||||
# This flag specifies whether HII resource section is generated into PE image.
|
||||
#
|
||||
UEFI_HII_RESOURCE_SECTION = TRUE
|
||||
|
||||
[Sources.common]
|
||||
Tftp.uni
|
||||
Tftp.h
|
||||
Tftp.c
|
||||
TftpApp.c
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
ShellPkg/ShellPkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
MemoryAllocationLib
|
||||
BaseLib
|
||||
BaseMemoryLib
|
||||
DebugLib
|
||||
ShellLib
|
||||
UefiLib
|
||||
UefiRuntimeServicesTableLib
|
||||
UefiBootServicesTableLib
|
||||
UefiApplicationEntryPoint
|
||||
UefiHiiServicesLib
|
||||
HiiLib
|
||||
FileHandleLib
|
||||
NetLib
|
||||
|
||||
[Protocols]
|
||||
gEfiManagedNetworkServiceBindingProtocolGuid ## CONSUMES
|
||||
gEfiMtftp4ServiceBindingProtocolGuid ## CONSUMES
|
||||
gEfiMtftp4ProtocolGuid ## CONSUMES
|
||||
gEfiHiiPackageListProtocolGuid ## CONSUMES
|
131
ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.c
Normal file
131
ShellPkg/DynamicCommand/TftpDynamicCommand/TftpDynamicCommand.c
Normal file
@@ -0,0 +1,131 @@
|
||||
/** @file
|
||||
Produce "tftp" shell dynamic command.
|
||||
|
||||
Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved. <BR>
|
||||
Copyright (c) 2015, ARM Ltd. All rights reserved.<BR>
|
||||
|
||||
This program and the accompanying materials
|
||||
are licensed and made available under the terms and conditions of the BSD License
|
||||
which accompanies this distribution. The full text of the license may be found at
|
||||
http://opensource.org/licenses/bsd-license.php
|
||||
|
||||
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
|
||||
**/
|
||||
#include "Tftp.h"
|
||||
#include <Protocol/ShellDynamicCommand.h>
|
||||
|
||||
/**
|
||||
This is the shell command handler function pointer callback type. This
|
||||
function handles the command when it is invoked in the shell.
|
||||
|
||||
@param[in] This The instance of the EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL.
|
||||
@param[in] SystemTable The pointer to the system table.
|
||||
@param[in] ShellParameters The parameters associated with the command.
|
||||
@param[in] Shell The instance of the shell protocol used in the context
|
||||
of processing this command.
|
||||
|
||||
@return EFI_SUCCESS the operation was sucessful
|
||||
@return other the operation failed.
|
||||
**/
|
||||
SHELL_STATUS
|
||||
EFIAPI
|
||||
TftpCommandHandler (
|
||||
IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL *This,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable,
|
||||
IN EFI_SHELL_PARAMETERS_PROTOCOL *ShellParameters,
|
||||
IN EFI_SHELL_PROTOCOL *Shell
|
||||
)
|
||||
{
|
||||
gEfiShellParametersProtocol = ShellParameters;
|
||||
return RunTftp (gImageHandle, SystemTable);
|
||||
}
|
||||
|
||||
/**
|
||||
This is the command help handler function pointer callback type. This
|
||||
function is responsible for displaying help information for the associated
|
||||
command.
|
||||
|
||||
@param[in] This The instance of the EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL.
|
||||
@param[in] Language The pointer to the language string to use.
|
||||
|
||||
@return string Pool allocated help string, must be freed by caller
|
||||
**/
|
||||
CHAR16 *
|
||||
EFIAPI
|
||||
TftpCommandGetHelp (
|
||||
IN EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL *This,
|
||||
IN CONST CHAR8 *Language
|
||||
)
|
||||
{
|
||||
return HiiGetString (mTftpHiiHandle, STRING_TOKEN (STR_GET_HELP_TFTP), Language);
|
||||
}
|
||||
|
||||
EFI_SHELL_DYNAMIC_COMMAND_PROTOCOL mTftpDynamicCommand = {
|
||||
L"tftp",
|
||||
TftpCommandHandler,
|
||||
TftpCommandGetHelp
|
||||
};
|
||||
|
||||
/**
|
||||
Entry point of Tftp Dynamic Command.
|
||||
|
||||
Produce the DynamicCommand protocol to handle "tftp" command.
|
||||
|
||||
@param ImageHandle The image handle of the process.
|
||||
@param SystemTable The EFI System Table pointer.
|
||||
|
||||
@retval EFI_SUCCESS Tftp command is executed sucessfully.
|
||||
@retval EFI_ABORTED HII package was failed to initialize.
|
||||
@retval others Other errors when executing tftp command.
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
TftpCommandInitialize (
|
||||
IN EFI_HANDLE ImageHandle,
|
||||
IN EFI_SYSTEM_TABLE *SystemTable
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
mTftpHiiHandle = InitializeHiiPackage (ImageHandle);
|
||||
if (mTftpHiiHandle == NULL) {
|
||||
return EFI_ABORTED;
|
||||
}
|
||||
|
||||
Status = gBS->InstallProtocolInterface (
|
||||
&ImageHandle,
|
||||
&gEfiShellDynamicCommandProtocolGuid,
|
||||
EFI_NATIVE_INTERFACE,
|
||||
&mTftpDynamicCommand
|
||||
);
|
||||
ASSERT_EFI_ERROR (Status);
|
||||
return Status;
|
||||
}
|
||||
|
||||
/**
|
||||
Tftp driver unload handler.
|
||||
|
||||
@param ImageHandle The image handle of the process.
|
||||
|
||||
@retval EFI_SUCCESS The image is unloaded.
|
||||
@retval Others Failed to unload the image.
|
||||
**/
|
||||
EFI_STATUS
|
||||
EFIAPI
|
||||
TftpUnload (
|
||||
IN EFI_HANDLE ImageHandle
|
||||
)
|
||||
{
|
||||
EFI_STATUS Status;
|
||||
Status = gBS->UninstallProtocolInterface (
|
||||
ImageHandle,
|
||||
&gEfiShellDynamicCommandProtocolGuid,
|
||||
&mTftpDynamicCommand
|
||||
);
|
||||
if (EFI_ERROR (Status)) {
|
||||
return Status;
|
||||
}
|
||||
HiiRemovePackages (mTftpHiiHandle);
|
||||
return EFI_SUCCESS;
|
||||
}
|
@@ -0,0 +1,64 @@
|
||||
## @file
|
||||
# Provides Shell 'tftp' dynamic command.
|
||||
#
|
||||
# Copyright (c) 2010 - 2017, Intel Corporation. All rights reserved. <BR>
|
||||
# Copyright (c) 2015, ARM Ltd. All rights reserved.<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
# are licensed and made available under the terms and conditions of the BSD License
|
||||
# which accompanies this distribution. The full text of the license may be found at
|
||||
# http://opensource.org/licenses/bsd-license.php
|
||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010006
|
||||
BASE_NAME = tftpDynamicCommand
|
||||
FILE_GUID = A487A478-51EF-48AA-8794-7BEE2A0562F1
|
||||
MODULE_TYPE = DXE_DRIVER
|
||||
VERSION_STRING = 1.0
|
||||
ENTRY_POINT = TftpCommandInitialize
|
||||
UNLOAD_IMAGE = TftpUnload
|
||||
#
|
||||
# This flag specifies whether HII resource section is generated into PE image.
|
||||
#
|
||||
UEFI_HII_RESOURCE_SECTION = TRUE
|
||||
|
||||
[Sources.common]
|
||||
Tftp.uni
|
||||
Tftp.h
|
||||
Tftp.c
|
||||
TftpDynamicCommand.c
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
ShellPkg/ShellPkg.dec
|
||||
MdeModulePkg/MdeModulePkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
MemoryAllocationLib
|
||||
BaseLib
|
||||
BaseMemoryLib
|
||||
DebugLib
|
||||
ShellLib
|
||||
UefiLib
|
||||
UefiRuntimeServicesTableLib
|
||||
UefiBootServicesTableLib
|
||||
UefiDriverEntryPoint
|
||||
UefiHiiServicesLib
|
||||
HiiLib
|
||||
FileHandleLib
|
||||
NetLib
|
||||
|
||||
[Protocols]
|
||||
gEfiManagedNetworkServiceBindingProtocolGuid ## CONSUMES
|
||||
gEfiMtftp4ServiceBindingProtocolGuid ## CONSUMES
|
||||
gEfiMtftp4ProtocolGuid ## CONSUMES
|
||||
gEfiHiiPackageListProtocolGuid ## CONSUMES
|
||||
gEfiShellDynamicCommandProtocolGuid ## PRODUCES
|
||||
|
||||
[DEPEX]
|
||||
TRUE
|
Reference in New Issue
Block a user