From 52e3b5be7639c9777892d35e0c3575d519d0670c Mon Sep 17 00:00:00 2001 From: bbahnsen Date: Tue, 19 Dec 2006 18:52:30 +0000 Subject: [PATCH] Add an elf tool chain. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2119 6f19259b-4bc3-4df7-8a09-765794883524 --- Tools/Conf/tools_def.template | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/Tools/Conf/tools_def.template b/Tools/Conf/tools_def.template index 707476f37a..cb252e20e1 100644 --- a/Tools/Conf/tools_def.template +++ b/Tools/Conf/tools_def.template @@ -386,6 +386,32 @@ RELEASE_VS2005PRO_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF *_CYGWINGCC_X64_*_PATH = c:/Cygwin/opt/tiano/x86_64-pc-mingw64/x86_64-pc-mingw64/bin *_CYGWINGCC_*_*_DPATH = c:/Cygwin/bin +#################################################################################### +# +# Elf GCC - This configuration is used to compile on Linux boxes to produce elf +# binaries. +# +#################################################################################### + + +*_ELFGCC_*_*_FAMILY = GCC + +*_ELFGCC_IA32_CC_NAME = gcc +*_ELFGCC_IA32_SLINK_NAME = ar +*_ELFGCC_IA32_DLINK_NAME = ld +*_ELFGCC_IA32_ASM_NAME = gcc +*_ELFGCC_IA32_PP_NAME = gcc +*_ELFGCC_IA32_VFRPP_NAME = gcc + +*_ELFGCC_IA32_CC_FLAGS = -g -fshort-wchar -fno-strict-aliasing -Wall -malign-double -c -include ${DEST_DIR_DEBUG}/AutoGen.h -DSTRING_ARRAY_NAME=${BASE_NAME}Strings +*_ELFGCC_*_DLINK_FLAGS = -nostdlib -n -q -Ttext 0x220 --entry ${ENTRYPOINT} -u ${ENTRYPOINT} +*_ELFGCC_*_ASM_FLAGS = -c -imacros ${DEST_DIR_DEBUG}/AutoGen.h -DASM_PFX(name)=name +*_ELFGCC_*_PP_FLAGS = -E -x assembler-with-cpp -include ${DEST_DIR_DEBUG}/AutoGen.h +*_ELFGCC_*_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE +*_ELFGCC_*_ASM_EXT = .S + +*_ELFGCC_IA32_*_PATH = /usr/bin + #################################################################################### #