]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Merge the patch provided by Johnson
authorklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 11 Apr 2007 03:08:47 +0000 (03:08 +0000)
committerklu2 <klu2@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 11 Apr 2007 03:08:47 +0000 (03:08 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2555 6f19259b-4bc3-4df7-8a09-765794883524

EdkUnixPkg/Sec/SecMain.c
EdkUnixPkg/Sec/SecMain_build.xml
Tools/CCode/Source/FwImage/build.xml
Tools/CCode/Source/FwImage/fwimage.c
Tools/Conf/tools_def.template

index 72fad08e647ced66130c37abe603eac835f977ba..04df255277a12a7765296f7d76ee1d00ef5b43c0 100644 (file)
@@ -1,6 +1,6 @@
 /*++\r
 \r
-Copyright (c) 2006, Intel Corporation\r
+Copyright (c) 2006 - 2007 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
@@ -173,6 +173,9 @@ Returns:
   CHAR16                *MemorySizeStr;\r
   CHAR16                *FirmwareVolumesStr;\r
 \r
+  setbuf(stdout, 0);\r
+  setbuf(stderr, 0);\r
+\r
   MemorySizeStr      = (CHAR16 *)PcdGetPtr (PcdUnixMemorySizeForSecMain);\r
   FirmwareVolumesStr = (CHAR16 *)PcdGetPtr (PcdUnixFirmwareVolume);\r
 \r
index c1a5caf2672beba93e861ba6b63607810da092ee..db5ae8db94527b8629d27117e110af1b5d0e0731 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" ?>\r
 <!--\r
-Copyright (c) 2006, Intel Corporation\r
+Copyright (c) 2006 - 2007 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
@@ -131,7 +131,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
          \r
           <shellscript shell="sh" tmpsuffix=".cmd" >\r
             set -v
-            gcc -Wl,--start-group ${LIBS} -Wl,--end-group -o ${BIN_DIR}/SecMain.exe -L/usr/X11R6/lib -lXext -lX11
+            gcc -m32 -Wl,--start-group ${LIBS} -Wl,--end-group -o ${BIN_DIR}/SecMain.exe -L/usr/X11R6/lib -lXext -lX11
           </shellscript>\r
         </sequential>\r
       </OnDependency>\r
index d992db2a0feb82be353f31e0fd43ff01074741c9..1d261928fb693fffa4f501e1b6faa8558d857587 100644 (file)
@@ -45,7 +45,9 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
         excludes="*.xml *.inf"/>\r
 \r
       <includepath path="${PACKAGE_DIR}/Include"/>\r
-      <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/>\r
+      <!-- <includepath path="${PACKAGE_DIR}/Include/${HostArch}"/> -->\r
+      <!-- We can only convert IA32, not X64, ELF objects -->\r
+      <includepath path="${PACKAGE_DIR}/Include/Ia32"/>\r
       <includepath path="${PACKAGE_DIR}/Common"/>\r
       <libset dir="${LIB_DIR}" libs="CommonTools"/>\r
     </cc>\r
index 97229ce09e57d1816d953095033b0fd172470bdb..f51f824e22664539f64918056dd5a789b13f1ab1 100644 (file)
@@ -25,7 +25,7 @@ Abstract:
 // List of OS and CPU which support ELF to PE conversion\r
 //\r
 #if defined(linux)
-#if defined(i386)
+#if defined (__i386__) || defined(__x86_64__)
 #define HAVE_ELF
 #endif
 #endif
index 9a99fa4c7993b1695e075c1fc25678ccd581c76e..2f6e9535483256275110d228be958d0a06a62844 100644 (file)
@@ -404,7 +404,11 @@ RELEASE_VS2005PRO_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF
 *_ELFGCC_IA32_PP_NAME      = gcc\r
 *_ELFGCC_IA32_VFRPP_NAME   = gcc\r
 \r
-*_ELFGCC_IA32_CC_FLAGS     = -g -fshort-wchar -Wall -Werror -c -include ${DEST_DIR_DEBUG}/AutoGen.h -DSTRING_ARRAY_NAME=${BASE_NAME}Strings\r
+*_ELFGCC_IA32_CC_FLAGS     = -m32 -g -fshort-wchar -Wall -Werror -c -include ${DEST_DIR_DEBUG}/AutoGen.h -DSTRING_ARRAY_NAME=${BASE_NAME}Strings\r
+*_ELFGCC_IA32_DLINK_FLAGS  = -melf_i386 -nostdlib -n -q -Ttext 0x220 --entry ${ENTRYPOINT} -u ${ENTRYPOINT}\r
+*_ELFGCC_IA32_ASM_FLAGS    = -m32 -c -imacros ${DEST_DIR_DEBUG}/AutoGen.h -DASM_PFX(name)=name\r
+*_ELFGCC_IA32_PP_FLAGS     = -m32 -E -x assembler-with-cpp -include ${DEST_DIR_DEBUG}/AutoGen.h\r
+\r
 *_ELFGCC_*_DLINK_FLAGS     = -nostdlib -n -q -Ttext 0x220 --entry ${ENTRYPOINT} -u ${ENTRYPOINT}\r
 *_ELFGCC_*_ASM_FLAGS       = -c -imacros ${DEST_DIR_DEBUG}/AutoGen.h -DASM_PFX(name)=name\r
 *_ELFGCC_*_PP_FLAGS        = -E -x assembler-with-cpp -include ${DEST_DIR_DEBUG}/AutoGen.h\r