From 878ddf1fc3540a715f63594ed22b6929e881afb4 Mon Sep 17 00:00:00 2001 From: bbahnsen Date: Fri, 21 Apr 2006 22:54:32 +0000 Subject: Initial import. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3 6f19259b-4bc3-4df7-8a09-765794883524 --- EdkModulePkg/Application/HelloWorld/HelloWorld.c | 47 ++++++++++++++++++++ EdkModulePkg/Application/HelloWorld/HelloWorld.mbd | 43 ++++++++++++++++++ EdkModulePkg/Application/HelloWorld/HelloWorld.msa | 51 ++++++++++++++++++++++ EdkModulePkg/Application/HelloWorld/build.xml | 47 ++++++++++++++++++++ 4 files changed, 188 insertions(+) create mode 100644 EdkModulePkg/Application/HelloWorld/HelloWorld.c create mode 100644 EdkModulePkg/Application/HelloWorld/HelloWorld.mbd create mode 100644 EdkModulePkg/Application/HelloWorld/HelloWorld.msa create mode 100644 EdkModulePkg/Application/HelloWorld/build.xml (limited to 'EdkModulePkg/Application/HelloWorld') diff --git a/EdkModulePkg/Application/HelloWorld/HelloWorld.c b/EdkModulePkg/Application/HelloWorld/HelloWorld.c new file mode 100644 index 0000000000..f3eda071e4 --- /dev/null +++ b/EdkModulePkg/Application/HelloWorld/HelloWorld.c @@ -0,0 +1,47 @@ +/*++ + +Copyright (c) 2006, 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. + +Module Name: + + HelloWorld.c + +Abstract: + + This driver supports platform security service + +--*/ + +VOID +Print ( + IN CONST CHAR16 *Format, + ... + ) +{ + CHAR16 PrintBuffer[0x100]; + VA_LIST Marker; + + VA_START (Marker, Format); + UnicodeVSPrint (PrintBuffer, sizeof (PrintBuffer), Format, Marker); + gST->ConOut->OutputString (gST->ConOut, PrintBuffer); + return; +} + +EFI_STATUS +EFIAPI +UefiMain ( + IN EFI_HANDLE ImageHandle, + IN EFI_SYSTEM_TABLE *SystemTable + ) + +{ + Print ((CHAR16 *)L"UEFI Hello World!\n"); + return EFI_SUCCESS; +} diff --git a/EdkModulePkg/Application/HelloWorld/HelloWorld.mbd b/EdkModulePkg/Application/HelloWorld/HelloWorld.mbd new file mode 100644 index 0000000000..6d44bac022 --- /dev/null +++ b/EdkModulePkg/Application/HelloWorld/HelloWorld.mbd @@ -0,0 +1,43 @@ + + + + + HelloWorld + 6987936E-ED34-44db-AE97-1FA5E4ED2116 + 0 + FIX ME! + Copyright (c) 2004-2006, 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. + + 2006-03-12 17:09 + 2006-03-20 20:41 + + + UefiBootServicesTableLib + BaseLib + UefiMemoryLib + UefiLib + UefiDriverEntryPoint + UefiDebugLibStdErr + BasePrintLib + + + _ModuleEntryPoint + + + diff --git a/EdkModulePkg/Application/HelloWorld/HelloWorld.msa b/EdkModulePkg/Application/HelloWorld/HelloWorld.msa new file mode 100644 index 0000000000..92fca0ff91 --- /dev/null +++ b/EdkModulePkg/Application/HelloWorld/HelloWorld.msa @@ -0,0 +1,51 @@ + + + + + HelloWorld + DXE_DRIVER + APPLICATION + 6987936E-ED34-44db-AE97-1FA5E4ED2116 + 0 + Component description file for SecurityStub module + FIX ME! + Copyright (c) 2004-2006, 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. + + 0 + 2006-03-12 17:09 + 2006-03-20 20:41 + + + PrintLib + DebugLib + UefiBootServicesTableLib + UefiDriverEntryPoint + + + HelloWorld.c + + + MdePkg + + + + UefiMain + + + diff --git a/EdkModulePkg/Application/HelloWorld/build.xml b/EdkModulePkg/Application/HelloWorld/build.xml new file mode 100644 index 0000000000..d8531c33e2 --- /dev/null +++ b/EdkModulePkg/Application/HelloWorld/build.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit v1.2.3