From 3841e920532b339ac75c8bc5a9217090eef11705 Mon Sep 17 00:00:00 2001 From: klu2 Date: Fri, 23 Mar 2007 05:54:23 +0000 Subject: [PATCH] Add tool chain's configuration for building and running UnixPkg in CYGWIN environment. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2503 6f19259b-4bc3-4df7-8a09-765794883524 --- Tools/Conf/tools_def.template | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/Tools/Conf/tools_def.template b/Tools/Conf/tools_def.template index 1a0b577fe7..3ac35bd57a 100644 --- a/Tools/Conf/tools_def.template +++ b/Tools/Conf/tools_def.template @@ -1,5 +1,5 @@ # -# Copyright (c) 2006, Intel Corporation +# Copyright (c) 2006 - 2007 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 @@ -413,6 +413,30 @@ RELEASE_VS2005PRO_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF *_ELFGCC_IA32_*_PATH = /usr/bin +#################################################################################### +# +# UnixPkg CYGWIN GCC - This configuration is used to compile on CYGWIN environment for UnixPkg. +# +#################################################################################### + + +*_UNIXPKGCYGWINGCC_*_*_FAMILY = GCC + +*_UNIXPKGCYGWINGCC_IA32_CC_NAME = gcc +*_UNIXPKGCYGWINGCC_IA32_SLINK_NAME = ar +*_UNIXPKGCYGWINGCC_IA32_DLINK_NAME = ld +*_UNIXPKGCYGWINGCC_IA32_ASM_NAME = gcc +*_UNIXPKGCYGWINGCC_IA32_PP_NAME = gcc +*_UNIXPKGCYGWINGCC_IA32_VFRPP_NAME = gcc + +*_UNIXPKGCYGWINGCC_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 -IC:/cygwin/usr/X11R6/include +*_UNIXPKGCYGWINGCC_*_DLINK_FLAGS = -nostdlib -n -q -Ttext 0x220 --entry ${ENTRYPOINT} -u ${ENTRYPOINT} +*_UNIXPKGCYGWINGCC_*_ASM_FLAGS = -c -imacros ${DEST_DIR_DEBUG}/AutoGen.h -DASM_PFX(name)=_##name +*_UNIXPKGCYGWINGCC_*_PP_FLAGS = -E -x assembler-with-cpp -include ${DEST_DIR_DEBUG}/AutoGen.h +*_UNIXPKGCYGWINGCC_*_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE +*_UNIXPKGCYGWINGCC_*_ASM_EXT = .S + +*_UNIXPKGCYGWINGCC_IA32_*_PATH = c:/Cygwin/opt/tiano/i386-tiano-pe/i386-tiano-pe/bin #################################################################################### #