summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-28 11:51:43 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-03-28 11:51:43 +0000
commit4c5d09830bb8cbbc8ff6d8dc8817d60a85468844 (patch)
treeb3c4e6e331c60abc485bf6fa9f54e3e3f338146e
parent7794baccd12bb8f40bdc9c4af92c380026a31068 (diff)
downloadedk2-4c5d09830bb8cbbc8ff6d8dc8817d60a85468844.tar.gz
edk2-4c5d09830bb8cbbc8ff6d8dc8817d60a85468844.tar.bz2
edk2-4c5d09830bb8cbbc8ff6d8dc8817d60a85468844.zip
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
-rw-r--r--EdkCompatibilityPkg/Foundation/Library/CompilerStub/CompilerStubLib.inf1
-rw-r--r--EdkCompatibilityPkg/Foundation/Library/CompilerStub/Dummy.c21
2 files changed, 22 insertions, 0 deletions
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;