BaseTools: Extend support for Windows hosted gcc to versions 4.4-4.7.
authorScott Duplichan <scott@notabs.org>
Mon, 24 Nov 2014 02:43:17 +0000 (02:43 +0000)
committerlgao4 <lgao4@Edk2>
Mon, 24 Nov 2014 02:43:17 +0000 (02:43 +0000)
Revision 16400 adds support for Windows hosted gcc versions 4.8 and 4.9.
With this change, all of the GCCXX tool chains can be used from Windows.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Scott Duplichan <scott@notabs.org>
Reviewed-by: Liming Gao <liming.gao@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16418 6f19259b-4bc3-4df7-8a09-765794883524

BaseTools/Conf/tools_def.template

index 302a90e..c0f505c 100644 (file)
@@ -165,19 +165,17 @@ DEFINE CYGWIN_BINIA32          = c:/cygwin/opt/tiano/i386-tiano-pe/i386-tiano-pe
 DEFINE CYGWIN_BINX64           = c:/cygwin/opt/tiano/x86_64-pc-mingw64/x86_64-pc-mingw64/bin/\r
 DEFINE CYGWIN_BINIPF           = c:/cygwin/opt/tiano/gcc/ipf/bin/ia64-pc-elf-\r
 \r
-DEFINE GCC44_IA32_PREFIX       = /usr/bin/\r
-#DEFINE GCC44_IA32_PREFIX       = ENV(HOME)/programs/gcc/4.4/ia32/\r
-DEFINE GCC44_X64_PREFIX        = /usr/bin/\r
-#DEFINE GCC44_X64_PREFIX       = ENV(HOME)/programs/gcc/4.4/x64/\r
+DEFINE GCC44_IA32_PREFIX       = ENV(GCC44_BIN)\r
+DEFINE GCC44_X64_PREFIX        = ENV(GCC44_BIN)\r
 \r
-DEFINE GCC45_IA32_PREFIX       = /usr/bin/\r
-DEFINE GCC45_X64_PREFIX        = /usr/bin/\r
+DEFINE GCC45_IA32_PREFIX       = ENV(GCC45_BIN)\r
+DEFINE GCC45_X64_PREFIX        = ENV(GCC45_BIN)\r
 \r
-DEFINE GCC46_IA32_PREFIX       = /usr/bin/\r
-DEFINE GCC46_X64_PREFIX        = /usr/bin/\r
+DEFINE GCC46_IA32_PREFIX       = ENV(GCC46_BIN)\r
+DEFINE GCC46_X64_PREFIX        = ENV(GCC46_BIN)\r
 \r
-DEFINE GCC47_IA32_PREFIX       = /usr/bin/\r
-DEFINE GCC47_X64_PREFIX        = /usr/bin/\r
+DEFINE GCC47_IA32_PREFIX       = ENV(GCC47_BIN)\r
+DEFINE GCC47_X64_PREFIX        = ENV(GCC47_BIN)\r
 \r
 DEFINE GCC48_IA32_PREFIX       = ENV(GCC48_BIN)\r
 DEFINE GCC48_X64_PREFIX        = ENV(GCC48_BIN)\r
@@ -309,38 +307,38 @@ DEFINE SOURCERY_CYGWIN_TOOLS = /cygdrive/c/Program Files/CodeSourcery/Sourcery G
 #                             Required to build platforms or ACPI tables:\r
 #                               Intel(r) ACPI Compiler v20101013 from\r
 #                               http://www.acpica.org/downloads/previous_releases.php\r
-#   GCC44       -Linux-  Requires:\r
-#                             GCC 4.4 (Native)\r
+#   GCC44       -Linux,Windows-  Requires:\r
+#                             GCC 4.4 targeting x86_64-linux-gnu\r
 #                        Optional:\r
 #                             Required to build platforms or ACPI tables:\r
 #                               Intel(r) ACPI Compiler v20101013 from\r
 #                               http://www.acpica.org/downloads/previous_releases.php\r
-#   GCC45       -Linux-  Requires:\r
-#                             GCC 4.5 (Native)\r
+#   GCC45       -Linux,Windows-  Requires:\r
+#                             GCC 4.5 targeting x86_64-linux-gnu\r
 #                        Optional:\r
 #                             Required to build platforms or ACPI tables:\r
 #                               Intel(r) ACPI Compiler v20101013 from\r
 #                               http://www.acpica.org/downloads/previous_releases.php\r
-#   GCC46       -Linux-  Requires:\r
-#                             GCC 4.6 (Native)\r
+#   GCC46       -Linux,Windows-  Requires:\r
+#                             GCC 4.6 targeting x86_64-linux-gnu or arm-linux-gnueabi\r
 #                        Optional:\r
 #                             Required to build platforms or ACPI tables:\r
 #                               Intel(r) ACPI Compiler v20101013 from\r
 #                               http://www.acpica.org/downloads/previous_releases.php\r
-#   GCC47       -Linux-  Requires:\r
-#                             GCC 4.7 (Native)\r
+#   GCC47       -Linux,Windows-  Requires:\r
+#                             GCC 4.7 targeting x86_64-linux-gnu, aarch64-linux-gnu, or arm-linux-gnueabi\r
 #                        Optional:\r
 #                             Required to build platforms or ACPI tables:\r
 #                               Intel(r) ACPI Compiler v20101013 from\r
 #                               http://www.acpica.org/downloads/previous_releases.php\r
 #   GCC48       -Linux,Windows-  Requires:\r
-#                             GCC 4.8 targeting x86_64-linux-gnu\r
+#                             GCC 4.8 targeting x86_64-linux-gnu, aarch64-linux-gnu, or arm-linux-gnueabi\r
 #                        Optional:\r
 #                             Required to build platforms or ACPI tables:\r
 #                               Intel(r) ACPI Compiler v20101013 from\r
 #                               http://www.acpica.org/downloads/previous_releases.php\r
 #   GCC49       -Linux,Windows-  Requires:\r
-#                             GCC 4.9 targeting x86_64-linux-gnu\r
+#                             GCC 4.9 targeting x86_64-linux-gnu, aarch64-linux-gnu, or arm-linux-gnueabi\r
 #                        Optional:\r
 #                             Required to build platforms or ACPI tables:\r
 #                               Intel(r) ACPI Compiler v20101013 from\r
@@ -4014,7 +4012,8 @@ DEFINE GCC49_AARCH64_ASLDLINK_FLAGS  = DEF(GCC_ARM_AARCH64_ASLDLINK_FLAGS)
 ####################################################################################\r
 *_GCC44_*_*_FAMILY               = GCC\r
 \r
-*_GCC44_*_MAKE_PATH                    = make\r
+*_GCC44_*_MAKE_PATH                    = DEF(GCC44_IA32_PREFIX)make\r
+*_GCC44_*_*_DLL                        = ENV(GCC44_DLL)\r
 *_GCC44_*_ASL_PATH                     = DEF(UNIX_IASL_BIN)\r
 \r
 *_GCC44_*_PP_FLAGS                     = DEF(GCC_PP_FLAGS)\r
@@ -4081,7 +4080,8 @@ DEFINE GCC49_AARCH64_ASLDLINK_FLAGS  = DEF(GCC_ARM_AARCH64_ASLDLINK_FLAGS)
 ####################################################################################\r
 *_GCC45_*_*_FAMILY               = GCC\r
 \r
-*_GCC45_*_MAKE_PATH                    = make\r
+*_GCC45_*_MAKE_PATH                    = DEF(GCC45_IA32_PREFIX)make\r
+*_GCC45_*_*_DLL                        = ENV(GCC45_DLL)\r
 *_GCC45_*_ASL_PATH                     = DEF(UNIX_IASL_BIN)\r
 \r
 *_GCC45_*_PP_FLAGS                     = DEF(GCC_PP_FLAGS)\r
@@ -4148,7 +4148,8 @@ DEFINE GCC49_AARCH64_ASLDLINK_FLAGS  = DEF(GCC_ARM_AARCH64_ASLDLINK_FLAGS)
 ####################################################################################\r
 *_GCC46_*_*_FAMILY               = GCC\r
 \r
-*_GCC46_*_MAKE_PATH                    = make\r
+*_GCC46_*_MAKE_PATH                    = DEF(GCC46_IA32_PREFIX)make\r
+*_GCC46_*_*_DLL                        = ENV(GCC46_DLL)\r
 *_GCC46_*_ASL_PATH                     = DEF(UNIX_IASL_BIN)\r
 \r
 *_GCC46_*_PP_FLAGS                     = DEF(GCC_PP_FLAGS)\r
@@ -4245,7 +4246,8 @@ RELEASE_GCC46_ARM_CC_FLAGS       = DEF(GCC46_ARM_CC_FLAGS) -Wno-unused-but-set-v
 ####################################################################################\r
 *_GCC47_*_*_FAMILY               = GCC\r
 \r
-*_GCC47_*_MAKE_PATH                    = make\r
+*_GCC47_*_MAKE_PATH                    = DEF(GCC47_IA32_PREFIX)make\r
+*_GCC47_*_*_DLL                        = ENV(GCC47_DLL)\r
 *_GCC47_*_ASL_PATH                     = DEF(UNIX_IASL_BIN)\r
 \r
 *_GCC47_*_PP_FLAGS                     = DEF(GCC_PP_FLAGS)\r