Scott: Update the patch for BaseTools/Conf files. 1. Update build_rule.template to add the specific rule for IPF arch. Then, the specific echo is not required. 2. Update tools_def.template to configure GCC49_BIN and GCC49_DLL. It is the compatible change.
Index: build_rule.template =================================================================== --- build_rule.template (revision 16124) +++ build_rule.template (working copy) @@ -131,12 +131,34 @@ <Command.GCC, Command.RVCT> # For RVCTCYGWIN CC_FLAGS must be first to work around pathing issues "$(CC)" $(CC_FLAGS) -o ${dst} $(INC) ${src} - "$(SYMRENAME)" $(SYMRENAME_FLAGS) ${dst} <Command.ARMGCC, Command.ARMLINUXGCC, command.XCODE> "$(CC)" $(CC_FLAGS) -o ${dst} $(INC) ${src} +[C-Code-File.COMMON.IPF] + <InputFile> + ?.c + ?.C + ?.cc + ?.CC + ?.cpp + ?.Cpp + ?.CPP + <ExtraDependency> + $(MAKE_FILE) + + <OutputFile> + $(OUTPUT_DIR)(+)${s_dir}(+)${s_base}.obj + + <Command.MSFT, Command.INTEL> + "$(CC)" /Fo${dst} $(CC_FLAGS) $(INC) ${src} + + <Command.GCC, Command.RVCT> + # For RVCTCYGWIN CC_FLAGS must be first to work around pathing issues + "$(CC)" $(CC_FLAGS) -o ${dst} $(INC) ${src} + "$(SYMRENAME)" $(SYMRENAME_FLAGS) ${dst} + [C-Header-File] <InputFile> *.h, *.H Index: tools_def.template =================================================================== --- tools_def.template (revision 16124) +++ tools_def.template (working copy) @@ -182,8 +182,8 @@ DEFINE GCC48_IA32_PREFIX = /usr/bin/ DEFINE GCC48_X64_PREFIX = /usr/bin/ -DEFINE GCC49_IA32_PREFIX = /usr/bin/ -DEFINE GCC49_X64_PREFIX = /usr/bin/ +DEFINE GCC49_IA32_PREFIX = ENV(GCC49_BIN) +DEFINE GCC49_X64_PREFIX = ENV(GCC49_BIN) DEFINE UNIX_IASL_BIN = ENV(IASL_PREFIX)iasl DEFINE WIN_ASL_BIN_DIR = C:\ASL @@ -4489,7 +4489,8 @@ #################################################################################### *_GCC49_*_*_FAMILY = GCC -*_GCC49_*_MAKE_PATH = make +*_GCC49_*_MAKE_PATH = DEF(GCC49_IA32_PREFIX)make +*_GCC49_*_*_DLL = ENV(GCC49_DLL) *_GCC49_*_ASL_PATH = DEF(UNIX_IASL_BIN) *_GCC49_*_PP_FLAGS = DEF(GCC_PP_FLAGS) Thanks Liming -----Original Message----- From: Gao, Liming [mailto:liming....@intel.com] Sent: Tuesday, October 21, 2014 4:22 PM To: edk2-devel@lists.sourceforge.net Subject: Re: [edk2] EDK2 Developer Tools for Windows Scott: I will download them and try again. For the patch, I provide another compatible version in previous mail. Have you any comment for it? Linux user doesn't need to set GCC49_BIN, GCC49_DLL env, because /usr/bin/ is the default system PATH. Windows user need to set GCC49_BIN, GCC49_DLL and IASL_PREFIX env to use this tool chain. Index: Conf/tools_def.template =================================================================== --- Conf/tools_def.template (revision 16124) +++ Conf/tools_def.template (working copy) @@ -182,8 +182,8 @@ DEFINE GCC48_IA32_PREFIX = /usr/bin/ DEFINE GCC48_X64_PREFIX = /usr/bin/ -DEFINE GCC49_IA32_PREFIX = /usr/bin/ -DEFINE GCC49_X64_PREFIX = /usr/bin/ +DEFINE GCC49_IA32_PREFIX = ENV(GCC49_BIN) +DEFINE GCC49_X64_PREFIX = ENV(GCC49_BIN) -*_GCC49_*_MAKE_PATH = make +*_GCC49_*_MAKE_PATH = DEF(GCC49_BIN)make +*_GCC49_*_*_DLL = DEF(GCC49_DLL) *_GCC49_*_ASL_PATH = DEF(UNIX_IASL_BIN) Thanks Liming -----Original Message----- From: Scott Duplichan [mailto:sc...@notabs.org] Sent: Tuesday, October 21, 2014 1:14 PM To: edk2-devel@lists.sourceforge.net Subject: [edk2] EDK2 Developer Tools for Windows Here are Windows hosted gcc tool chains for EDK2 builds: https://sourceforge.net/projects/edk2developertoolsforwindows/files/ I will add more readme files tomorrow. The tools build IA32, X64, IPF, ARM, and AARCH64 from Windows. X64 builds are well tested. I have not yet boot tested IA32 builds but plan to. I don't have a way to boot test IPF, ARM, and AARCH64 builds. Only gcc 4.9.1 tool chains are uploaded. Older gcc versions can be built if needed. A patch is included to add support for IA32, X64, ARM, and AARCH64. If there is any interest in IPF it can be added too. This patch "breaks" non-Windows builds. The fix is to execute: export GCC49_X86=/usr .. before building. I think logic needs to be added to edksetup.sh to set GCC49_X86 if it is not already set. Linux guys, what is the best way? Thanks, Scott ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel