summaryrefslogtreecommitdiff
path: root/EdkModulePkg/Application/HelloWorld
diff options
context:
space:
mode:
Diffstat (limited to 'EdkModulePkg/Application/HelloWorld')
-rw-r--r--EdkModulePkg/Application/HelloWorld/HelloWorld.c47
-rw-r--r--EdkModulePkg/Application/HelloWorld/HelloWorld.mbd43
-rw-r--r--EdkModulePkg/Application/HelloWorld/HelloWorld.msa51
-rw-r--r--EdkModulePkg/Application/HelloWorld/build.xml47
4 files changed, 188 insertions, 0 deletions
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+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.
+-->
+<ModuleBuildDescription xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.TianoCore.org/2006/Edk2.0 http://www.TianoCore.org/2006/Edk2.0/SurfaceArea.xsd">
+ <MbdHeader>
+ <BaseName>HelloWorld</BaseName>
+ <Guid>6987936E-ED34-44db-AE97-1FA5E4ED2116</Guid>
+ <Version>0</Version>
+ <Description>FIX ME!</Description>
+ <Copyright>Copyright (c) 2004-2006, Intel Corporation</Copyright>
+ <License>
+ 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.
+ </License>
+ <Created>2006-03-12 17:09</Created>
+ <Modified>2006-03-20 20:41</Modified>
+ </MbdHeader>
+ <Libraries>
+ <Library>UefiBootServicesTableLib</Library>
+ <Library>BaseLib</Library>
+ <Library>UefiMemoryLib</Library>
+ <Library>UefiLib</Library>
+ <Library>UefiDriverEntryPoint</Library>
+ <Library>UefiDebugLibStdErr</Library>
+ <Library>BasePrintLib</Library>
+ </Libraries>
+ <BuildOptions ToolChain="MSFT">
+ <ImageEntryPoint>_ModuleEntryPoint</ImageEntryPoint>
+ <Option>TARGET_BS_DRIVER=HelloWorld</Option>
+ </BuildOptions>
+</ModuleBuildDescription>
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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+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.
+-->
+<ModuleSurfaceArea xmlns="http://www.TianoCore.org/2006/Edk2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.TianoCore.org/2006/Edk2.0 http://www.TianoCore.org/2006/Edk2.0/SurfaceArea.xsd">
+ <MsaHeader>
+ <BaseName>HelloWorld</BaseName>
+ <ModuleType>DXE_DRIVER</ModuleType>
+ <ComponentType>APPLICATION</ComponentType>
+ <Guid>6987936E-ED34-44db-AE97-1FA5E4ED2116</Guid>
+ <Version>0</Version>
+ <Abstract>Component description file for SecurityStub module</Abstract>
+ <Description>FIX ME!</Description>
+ <Copyright>Copyright (c) 2004-2006, Intel Corporation</Copyright>
+ <License>
+ 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.
+ </License>
+ <Specification>0</Specification>
+ <Created>2006-03-12 17:09</Created>
+ <Updated>2006-03-20 20:41</Updated>
+ </MsaHeader>
+ <LibraryClassDefinitions>
+ <LibraryClass Usage="ALWAYS_CONSUMED">PrintLib</LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">DebugLib</LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">UefiBootServicesTableLib</LibraryClass>
+ <LibraryClass Usage="ALWAYS_CONSUMED">UefiDriverEntryPoint</LibraryClass>
+ </LibraryClassDefinitions>
+ <SourceFiles>
+ <Filename>HelloWorld.c</Filename>
+ </SourceFiles>
+ <Includes>
+ <PackageName>MdePkg</PackageName>
+ </Includes>
+ <Externs>
+ <Extern>
+ <ModuleEntryPoint>UefiMain</ModuleEntryPoint>
+ </Extern>
+ </Externs>
+</ModuleSurfaceArea>
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 @@
+<?xml version="1.0" encoding="UTF-8"?><!-- 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.-->
+<project basedir="." default="HelloWorld"><!--Apply external ANT tasks-->
+ <taskdef resource="GenBuild.tasks"/>
+ <taskdef resource="net/sf/antcontrib/antlib.xml"/>
+ <property environment="env"/>
+ <property name="WORKSPACE_DIR" value="${env.WORKSPACE}"/>
+ <import file="${WORKSPACE_DIR}\Tools\Conf\BuildMacro.xml"/><!--MODULE_RELATIVE PATH is relative to PACKAGE_DIR-->
+ <property name="MODULE_RELATIVE_PATH" value="Application\HelloWorld"/>
+ <property name="MODULE_DIR" value="${PACKAGE_DIR}\${MODULE_RELATIVE_PATH}"/>
+ <property name="COMMON_FILE" value="${WORKSPACE_DIR}\Tools\Conf\Common.xml"/>
+ <target name="HelloWorld">
+ <GenBuild baseName="HelloWorld" mbdFilename="${MODULE_DIR}\HelloWorld.mbd" msaFilename="${MODULE_DIR}\HelloWorld.msa"/>
+ </target>
+ <target depends="HelloWorld_clean" name="clean"/>
+ <target depends="HelloWorld_cleanall" name="cleanall"/>
+ <target name="HelloWorld_clean">
+ <OutputDirSetup baseName="HelloWorld" mbdFilename="${MODULE_DIR}\HelloWorld.mbd" msaFilename="${MODULE_DIR}\HelloWorld.msa"/>
+ <if>
+ <available file="${DEST_DIR_OUTPUT}\HelloWorld_build.xml"/>
+ <then>
+ <ant antfile="${DEST_DIR_OUTPUT}\HelloWorld_build.xml" target="clean"/>
+ </then>
+ </if>
+ <delete dir="${DEST_DIR_OUTPUT}" excludes="*.xml"/>
+ </target>
+ <target name="HelloWorld_cleanall">
+ <OutputDirSetup baseName="HelloWorld" mbdFilename="${MODULE_DIR}\HelloWorld.mbd" msaFilename="${MODULE_DIR}\HelloWorld.msa"/>
+ <if>
+ <available file="${DEST_DIR_OUTPUT}\HelloWorld_build.xml"/>
+ <then>
+ <ant antfile="${DEST_DIR_OUTPUT}\HelloWorld_build.xml" target="cleanall"/>
+ </then>
+ </if>
+ <delete dir="${DEST_DIR_OUTPUT}"/>
+ <delete dir="${DEST_DIR_DEBUG}"/>
+ <delete>
+ <fileset dir="${BIN_DIR}" includes="**HelloWorld*"/>
+ </delete>
+ </target>
+</project> \ No newline at end of file