summaryrefslogtreecommitdiff
path: root/Tools/Conf/tools_def.template
diff options
context:
space:
mode:
authorbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2006-11-28 16:54:15 +0000
committerbbahnsen <bbahnsen@6f19259b-4bc3-4df7-8a09-765794883524>2006-11-28 16:54:15 +0000
commit16fdd1e20e44833524c31c863a2bd6ea93e8fedb (patch)
treec89f9715461d2e3fbdc92708374c42500d2a44e8 /Tools/Conf/tools_def.template
parente7953f39bf3c54100f6b5f4555416766dde7a6a8 (diff)
downloadedk2-platforms-16fdd1e20e44833524c31c863a2bd6ea93e8fedb.tar.xz
Add an example of a mingw32 tool chain.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2030 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools/Conf/tools_def.template')
-rw-r--r--Tools/Conf/tools_def.template40
1 files changed, 34 insertions, 6 deletions
diff --git a/Tools/Conf/tools_def.template b/Tools/Conf/tools_def.template
index 1c280e8b45..1429222308 100644
--- a/Tools/Conf/tools_def.template
+++ b/Tools/Conf/tools_def.template
@@ -214,7 +214,7 @@ RELEASE_WINDDK3790x1830_IPF_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /LTCG /DLL /OPT:
*_VS2005PRO_*_SLINK_FLAGS = /NOLOGO /LTCG
*_VS2005PRO_*_PP_FLAGS = /nologo /P /TC /FI${DEST_DIR_DEBUG}/AutoGen.h
-*_VS2005PRO_*_VFRPP_FLAGS = /nologo /P /TC /DVFRCOMPILE
+*_VS2005PRO_*_VFRPP_FLAGS = /nologo /P /TC /DVFRCOMPILE
##################
# IA32 definitions
@@ -286,6 +286,34 @@ RELEASE_VS2005PRO_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF
####################################################################################
#
+# MINGW32
+#
+# You can build a mingw32 toolchain by downloading the script package called
+# x86-mingw32-build.sh from the mingw project home page. It will walk you through
+# some options and explain what to do.
+#
+####################################################################################
+
+*_MINGW_*_*_FAMILY = GCC
+
+*_MINGW_IA32_CC_NAME = gcc
+*_MINGW_IA32_SLINK_NAME = ar
+*_MINGW_IA32_DLINK_NAME = ld
+*_MINGW_IA32_ASM_NAME = gcc
+*_MINGW_IA32_PP_NAME = gcc
+*_MINGW_IA32_VFRPP_NAME = gcc
+
+*_MINGW_*_CC_FLAGS = -Os -fshort-wchar -fno-strict-aliasing -Wall -Werror -c -include ${DEST_DIR_DEBUG}/AutoGen.h
+*_MINGW_*_DLINK_FLAGS = -nostdlib -O2 --gc-sections --dll --export-all-symbols --entry _${ENTRYPOINT}
+*_MINGW_*_ASM_FLAGS = -c -imacros ${DEST_DIR_DEBUG}/AutoGen.h
+*_MINGW_*_PP_FLAGS = -E -x assembler-with-cpp -include ${DEST_DIR_DEBUG}/AutoGen.h
+*_MINGW_*_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE
+*_MINGW_*_ASM_EXT = .S
+
+*_MINGW_IA32_*_PATH = /opt/mingw/i386-mingw32/bin/
+
+####################################################################################
+#
# Unix GCC
#
####################################################################################
@@ -298,21 +326,21 @@ RELEASE_VS2005PRO_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF
*_UNIXGCC_IA32_DLINK_NAME = ld
*_UNIXGCC_IA32_ASM_NAME = gcc
*_UNIXGCC_IA32_PP_NAME = gcc
-*_UNIXGCC_IA32_VFRPP_NAME = gcc
+*_UNIXGCC_IA32_VFRPP_NAME = gcc
*_UNIXGCC_X64_CC_NAME = gcc
*_UNIXGCC_X64_SLINK_NAME = ar
*_UNIXGCC_X64_DLINK_NAME = ld
*_UNIXGCC_X64_ASM_NAME = gcc
*_UNIXGCC_X64_PP_NAME = gcc
-*_UNIXGCC_X64_VFRPP_NAME = gcc
+*_UNIXGCC_X64_VFRPP_NAME = gcc
*_UNIXGCC_IA32_CC_FLAGS = -Os -fshort-wchar -fno-strict-aliasing -Wall -Werror -c -include ${DEST_DIR_DEBUG}/AutoGen.h
*_UNIXGCC_X64_CC_FLAGS = -Os -fshort-wchar -fno-strict-aliasing -Wall -Werror -c -include ${DEST_DIR_DEBUG}/AutoGen.h -D_EFI_P64
*_UNIXGCC_*_DLINK_FLAGS = -nostdlib -O2 --gc-sections --dll --export-all-symbols --entry _${ENTRYPOINT}
*_UNIXGCC_*_ASM_FLAGS = -c -imacros ${DEST_DIR_DEBUG}/AutoGen.h
*_UNIXGCC_*_PP_FLAGS = -E -x assembler-with-cpp -include ${DEST_DIR_DEBUG}/AutoGen.h
-*_UNIXGCC_*_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE
+*_UNIXGCC_*_VFRPP_FLAGS = -x c -E -P -DVFRCOMPILE
*_UNIXGCC_*_ASM_EXT = .S
*_UNIXGCC_IA32_*_PATH = /opt/tiano/i386-tiano-pe/i386-tiano-pe/bin
@@ -333,7 +361,7 @@ RELEASE_VS2005PRO_X64_DLINK_FLAGS = /NOLOGO /NODEFAULTLIB /IGNORE:4086 /OPT:REF
*_CYGWINGCC_IA32_DLINK_NAME = ld
*_CYGWINGCC_IA32_ASM_NAME = gcc
*_CYGWINGCC_IA32_PP_NAME = gcc
-*_CYGWINGCC_IA32_VFRPP_NAME = gcc
+*_CYGWINGCC_IA32_VFRPP_NAME = gcc
*_CYGWINGCC_X64_CC_NAME = gcc
*_CYGWINGCC_X64_SLINK_NAME = ar
@@ -449,7 +477,7 @@ RELEASE_MIXED_X64_ASM_FLAGS = /nologo /W3 /WX /c /Cx /Zd
*_MYTOOLS_*_APP_NAME = cl.exe
*_MYTOOLS_*_ASM_NAME = ml.exe
-*_MYTOOLS_*_VFRPP_FLAGS = /nologo /P /TC /DVFRCOMPILE
+*_MYTOOLS_*_VFRPP_FLAGS = /nologo /P /TC /DVFRCOMPILE
##################
# IA32 definitions
##################