adding sample "C" entry application

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8578 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
jcarsey 2009-06-16 19:59:59 +00:00
parent 975136ab1c
commit 722529bb0d
3 changed files with 74 additions and 2 deletions

View File

@ -0,0 +1,27 @@
/** @file
This is THE shell (application)
Copyright (c) 2009, Intel Corporation
All rights reserved. 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 <Uefi.h>
#include <Library/UefiLib.h>
#include <Library/DebugLib.h>
INT32
EFIAPI
main(
UINTN Argc,
CHAR16 **Argv
){
Print(L"Test Complete\r\n");
}

View File

@ -0,0 +1,46 @@
#/** @file
# This is the shell application
#
# Copyright (c) 2009, Intel Corporation.
#
# All rights reserved. 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 = ShellCTestApp
FILE_GUID = 7a6ca3b8-ee1b-489c-b300-24544a7bd418
MODULE_TYPE = UEFI_APPLICATION
VERSION_STRING = 1.0
ENTRY_POINT = ShellCEntryLib
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64 IPF EBC
#
[Sources]
ShellCTestApp.c
[Packages]
MdePkg/MdePkg.dec
ShellPkg/ShellPkg.dec
[LibraryClasses]
ShellCEntryLib
UefiLib
[Guids]
[Protocols]
[Pcd]

View File

@ -48,6 +48,5 @@
ShellPkg/Application/ShellLibTestApp/SA3.inf ShellPkg/Application/ShellLibTestApp/SA3.inf
ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.inf ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.inf
ShellPkg/Library/UefiShellLib/UefiShellLib.inf ShellPkg/Library/UefiShellLib/UefiShellLib.inf
ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
ShellPkg/Application/ShellCTestApp/ShellCTestApp.inf ShellPkg/Application/ShellCTestApp/ShellCTestApp.inf