/*++\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
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
<?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
\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
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
// 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
*_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