]> git.proxmox.com Git - mirror_edk2.git/commitdiff
adding sample "C" entry application
authorjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 16 Jun 2009 19:59:59 +0000 (19:59 +0000)
committerjcarsey <jcarsey@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 16 Jun 2009 19:59:59 +0000 (19:59 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8578 6f19259b-4bc3-4df7-8a09-765794883524

ShellPkg/Application/ShellCTestApp/ShellCTestApp.c [new file with mode: 0644]
ShellPkg/Application/ShellCTestApp/ShellCTestApp.inf [new file with mode: 0644]
ShellPkg/ShellPkg.dsc

diff --git a/ShellPkg/Application/ShellCTestApp/ShellCTestApp.c b/ShellPkg/Application/ShellCTestApp/ShellCTestApp.c
new file mode 100644 (file)
index 0000000..8e771af
--- /dev/null
@@ -0,0 +1,27 @@
+/** @file\r
+  This is THE shell (application)\r
+\r
+  Copyright (c) 2009, Intel Corporation                                                         \r
+  All rights reserved. This program and the accompanying materials                          \r
+  are licensed and made available under the terms and conditions of the BSD License         \r
+  which accompanies this distribution.  The full text of the license may be found at        \r
+  http://opensource.org/licenses/bsd-license.php                                            \r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,                     \r
+  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.             \r
+\r
+**/\r
+\r
+#include <Uefi.h>\r
+\r
+#include <Library/UefiLib.h>\r
+#include <Library/DebugLib.h>\r
+\r
+INT32 \r
+EFIAPI \r
+main(\r
+  UINTN Argc, \r
+  CHAR16 **Argv\r
+  ){\r
+  Print(L"Test Complete\r\n");\r
+}
\ No newline at end of file
diff --git a/ShellPkg/Application/ShellCTestApp/ShellCTestApp.inf b/ShellPkg/Application/ShellCTestApp/ShellCTestApp.inf
new file mode 100644 (file)
index 0000000..9175a37
--- /dev/null
@@ -0,0 +1,46 @@
+#/** @file\r
+#  This is the shell application\r
+#\r
+#  Copyright (c) 2009, Intel Corporation.\r
+#\r
+#  All rights reserved. This program and the accompanying materials\r
+#  are licensed and made available under the terms and conditions of the BSD License\r
+#  which accompanies this distribution. The full text of the license may be found at\r
+#  http://opensource.org/licenses/bsd-license.php\r
+#  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+#  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+#\r
+#\r
+#**/\r
+\r
+[Defines]\r
+  INF_VERSION                    = 0x00010006\r
+  BASE_NAME                      = ShellCTestApp\r
+  FILE_GUID                      = 7a6ca3b8-ee1b-489c-b300-24544a7bd418\r
+  MODULE_TYPE                    = UEFI_APPLICATION\r
+  VERSION_STRING                 = 1.0\r
+  ENTRY_POINT                    = ShellCEntryLib\r
+\r
+#\r
+# The following information is for reference only and not required by the build tools.\r
+#\r
+#  VALID_ARCHITECTURES           = IA32 X64 IPF EBC\r
+#\r
+\r
+[Sources]\r
+  ShellCTestApp.c\r
+\r
+[Packages]\r
+  MdePkg/MdePkg.dec\r
+  ShellPkg/ShellPkg.dec\r
+  \r
+[LibraryClasses]\r
+  ShellCEntryLib\r
+  UefiLib\r
+  \r
+[Guids]\r
+\r
+[Protocols]\r
+\r
+\r
+[Pcd]\r
index 70e6fbc1a20dff2e0bc453fe487a189b33d3028b..97eb76e965267a251049353259979353fb6a233c 100644 (file)
@@ -48,6 +48,5 @@
   ShellPkg/Application/ShellLibTestApp/SA3.inf\r
   ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.inf\r
   ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r
   ShellPkg/Application/ShellLibTestApp/SA3.inf\r
   ShellPkg/Library/BaseFileHandleLib/BaseFileHandleLib.inf\r
   ShellPkg/Library/UefiShellLib/UefiShellLib.inf\r
-  ShellPkg/Library/UefiShellCommandLib/UefiShellCommandLib.inf\r
-  ShellPkg/Library/UefiShellLevel2CommandsLib/UefiShellLevel2CommandsLib.inf\r
+  ShellPkg/Library/UefiShellCEntryLib/UefiShellCEntryLib.inf\r
   ShellPkg/Application/ShellCTestApp/ShellCTestApp.inf
\ No newline at end of file
   ShellPkg/Application/ShellCTestApp/ShellCTestApp.inf
\ No newline at end of file