diff options
author | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-16 19:59:59 +0000 |
---|---|---|
committer | jcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524> | 2009-06-16 19:59:59 +0000 |
commit | 722529bb0db62b7864259da853794570163d9144 (patch) | |
tree | 8633e9ab402b480798ad3b570f57776b814e13a3 | |
parent | 975136ab1c0f339cd88214f602bfbc3deb1573a0 (diff) | |
download | edk2-722529bb0db62b7864259da853794570163d9144.zip edk2-722529bb0db62b7864259da853794570163d9144.tar.gz edk2-722529bb0db62b7864259da853794570163d9144.tar.bz2 |
adding sample "C" entry application
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8578 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | ShellPkg/Application/ShellCTestApp/ShellCTestApp.c | 27 | ||||
-rw-r--r-- | ShellPkg/Application/ShellCTestApp/ShellCTestApp.inf | 46 | ||||
-rw-r--r-- | ShellPkg/ShellPkg.dsc | 3 |
3 files changed, 74 insertions, 2 deletions
diff --git a/ShellPkg/Application/ShellCTestApp/ShellCTestApp.c b/ShellPkg/Application/ShellCTestApp/ShellCTestApp.c new file mode 100644 index 0000000..8e771af --- /dev/null +++ b/ShellPkg/Application/ShellCTestApp/ShellCTestApp.c @@ -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");
+}
\ No newline at end of file diff --git a/ShellPkg/Application/ShellCTestApp/ShellCTestApp.inf b/ShellPkg/Application/ShellCTestApp/ShellCTestApp.inf new file mode 100644 index 0000000..9175a37 --- /dev/null +++ b/ShellPkg/Application/ShellCTestApp/ShellCTestApp.inf @@ -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]
diff --git a/ShellPkg/ShellPkg.dsc b/ShellPkg/ShellPkg.dsc index 70e6fbc..97eb76e 100644 --- a/ShellPkg/ShellPkg.dsc +++ b/ShellPkg/ShellPkg.dsc @@ -48,6 +48,5 @@ ShellPkg/Application/ShellLibTestApp/SA3.inf
ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.inf
ShellPkg/Library/UefiShellLib/UefiShellLib.inf
- ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf
- ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf
+ ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf
ShellPkg/Application/ShellCTestApp/ShellCTestApp.inf
\ No newline at end of file |