From 4c5d09830bb8cbbc8ff6d8dc8817d60a85468844 Mon Sep 17 00:00:00 2001 From: qhuang8 Date: Fri, 28 Mar 2008 11:51:43 +0000 Subject: Add a work around Dummy.c file to avoid autogen error to GCC tool chain family. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4963 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Library/CompilerStub/CompilerStubLib.inf | 1 + .../Foundation/Library/CompilerStub/Dummy.c | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 EdkCompatibilityPkg/Foundation/Library/CompilerStub/Dummy.c (limited to 'EdkCompatibilityPkg/Foundation') diff --git a/EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf b/EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf index d1ebfc9441..9a97656cdd 100644 --- a/EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf +++ b/EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf @@ -24,6 +24,7 @@ BASE_NAME = CompilerStub COMPONENT_TYPE = LIBRARY [sources.common] + Dummy.c [sources.ia32] Ia32/memcpyRep1.asm diff --git a/EdkCompatibilityPkg/Foundation/Library/CompilerStub/Dummy.c b/EdkCompatibilityPkg/Foundation/Library/CompilerStub/Dummy.c new file mode 100644 index 0000000000..c033d8481c --- /dev/null +++ b/EdkCompatibilityPkg/Foundation/Library/CompilerStub/Dummy.c @@ -0,0 +1,21 @@ +/*++ + +Copyright (c) 2008, 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: + memcpy.c + +Abstract: + + This file is purely empty as a work around for CompilerStubLib to pass GCC build. + +--*/ + +extern int __make_me_compile_correctly; -- cgit v1.2.3