summaryrefslogtreecommitdiff
path: root/edksetup.bat
AgeCommit message (Collapse)AuthorFilesLines
2023-05-08edksetup.bat: if toolsetup.bat fails, just exitRebecca Cran1-0/+1
If toolsetup.bat fails (i.e. exits with a non-zero %ERRORLEVEL%), don't try and carry on but just quit. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
2023-05-05edksetup.bat: Remove VS2008-VS2013 remnantsRebecca Cran1-5/+1
Since Visual Studio versions older than VS2015 are no longer supported, remove mention of them from edksetup.bat. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Oliver Smith-Denny <osd@smith-denny.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Leif Lindholm <quic_llindhol@quicinc.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com> Tested-by: Michael D Kinney <michael.d.kinney@intel.com>
2021-04-20BaseTools: Add double quote around CLANG_BIN path stringShi, Steven1-1/+1
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3341 Current CLANG_BIN env variable is set without double quote around the LLVM default installation path string in windows, which causes some CI build service cannot find the LLVM path in windows. This patch enhance it to add double quote around it. Signed-off-by: Steven Shi <steven.shi@intel.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
2020-01-07edksetup.bat: Simplify the step to use CLANGPDBLiu, Zhiguang1-0/+12
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2404 Set the below two environment variables in edksetup.bat: set CLANG_HOST_BIN=n set CLANG_BIN=C:\Program Files\LLVM\bin\ In Windows, set CLANG_HOST_BIN=n to use nmake command The CLANG_BIN is only be set if it is not defined. Cc: Liming Gao <liming.gao@intel.com> Cc: Ray Ni <ray.ni@intel.com> Cc: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Zhiguang Liu <zhiguang.liu@intel.com>
2019-09-23Add VS2019 Support on ToolSetup BatchesCheng, Ching JenX1-2/+4
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=2182 Inorder to support VS2019, we add VS2019 config process in Setup Batch Files, Because VS2019 and VS2017 could using same vswhere.exe to detect the InstallationPath, So we add the -version as the parameter of vswhere to get the correct VS2017/VS2019's InstallationPath v3: In BaseTools\set_vsprefix_envs.bat, move WINSDK10_PREFIX setting into VCToolsInstallDir check condition. Cc: Amy Chan <amy.chan@intel.com> Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Ching JenX Cheng <ching.jenx.cheng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Pete Batard <pete@akeo.ie>
2019-06-28Edk2Setup: Support different VS tool chain setupDandan Bi1-1/+9
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1693 This patch is to update edksetup with additional option: VS2017 VS2015 VS2013 VS2012 to setup different VS environment. And will report error if the specified VS tool is not installed. For VS2017, also consider the case that only VS2017 build tool is installed. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
2019-06-28Edk2: Remove nt32 related flag in bat filesDandan Bi1-22/+1
REF: https://bugzilla.tianocore.org/show_bug.cgi?id=1693 NT32Pkg has been removed, remove nt32 related flags in bat files. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Dandan Bi <dandan.bi@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
2019-04-09edk2: Replace BSD License with BSD+Patent LicenseMichael D Kinney1-7/+1
https://bugzilla.tianocore.org/show_bug.cgi?id=1373 Replace BSD 2-Clause License with BSD+Patent License. This change is based on the following emails: https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html RFCs with detailed process for the license change: V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
2019-02-14BaseTools: Various typoAntoine Coeur1-1/+1
Various typo in BaseTools. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Coeur <coeur@gmx.fr> Reviewed-by: Liming Gao <liming.gao@intel.com>
2019-01-14BaseTools: Remove unused logic for EDKIFeng, Bob C1-3/+0
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1350 Remove EDK module type support from BaseTools python code. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
2018-08-08BaseTools: Fix incorrect %EDK_TOOLS_PATH%Yunhua Feng1-14/+25
For non-root folder, such as "X:\test", the EDK_TOOLS_PATH will resolve to "X:\test\edk2\BaseTools". This is OK. But if WORKSPACE is at a root folder, such as "X:\", the EDK_TOOLS_PATH will look like "X:\\BaseTools". The *double backslash* can fail the command like "del" and thus affect the %ERRORLEVEL% variable, which may break subsequent build processing. Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yunhua Feng <yunhuax.feng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
2017-07-04BaseTools: suppress usage instructions with rebuild optionsChris Ruffin1-5/+8
When using edksetup.bat Rebuild, the script outputs usage instructions to the console, when no usage error is encountered. Update the usage instructions and suppress these usage instructions when using the Rebuild, ForceRebuild options. Change-Id: Ica98e19f3d5198df2519106e4c55314c255e04ac Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Ruffin <chris.ruffin@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
2016-10-26edksetup.bat: make sure BASE_TOOLS_PATH be set correctlyLiming Gao1-1/+2
Move checkNt32Flag before set BASE_TOOLS_PATH env to make sure it be set Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
2016-10-24edksetup.bat: Support --nt32 X64Cinnamon Shia1-46/+25
Support --nt32 X64 for building 64-bit NT32. For setting up Windows environment variables requited by NT32, follow the same approach as Edk2Setup.bat by using the get_vsvars.bat and SetVisualStudio.bat. Sync the help text of NT32 with Edk2Setup.bat. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Cinnamon Shia <cinnamon.shia@hpe.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
2016-07-26Update edksetup.bat to check NASM system environment variableYonghong Zhu1-0/+10
If the NASM_PREFIX variable is not set, it would report warning message. If there exist the C:\nasm\nasm.exe file, it would set the NASM_PREFIX variable to C:\nasm\. Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
2016-04-11Update edksetup.bat to check EDK_TOOLS_PATH before set it.Liming Gao1-14/+16
If EDK_TOOLS_PATH is set, then not set it again. If EDK_TOOLS_PATH is not set, then set it. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
2015-12-03BaseTools: Add VS2015 tool chain in tools_def.templateWang Yu1-17/+21
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wang Yu <yu.wang@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19101 6f19259b-4bc3-4df7-8a09-765794883524
2015-10-08BaseTools: Update edksetup.bat to support multiple workspacesLiming Gao1-4/+26
1. Update edksetup.bat and toolsetup.bat to handle PACKAGES_PATH. BaseTools directory may be in PACKAGES_PATH instead of WORKSAPCE. 2. Introduce EDK_TOOLS_BIN env points to the windows binary tools dir. Windows BaseTools Win32 may be a separate directory. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Wu Hao A <hao.a.wu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18582 6f19259b-4bc3-4df7-8a09-765794883524
2014-10-30Update edksetup.bat to support Microsoft Visual Studio 2013 when building ↵lhauch1-14/+18
the Nt32Pkg emulation platform (enabled using the --nt32 flag). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: lhauch <larry.hauch@intel.com> Reviewed-by: Jaben Carsey <jaben.carsey@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@16277 6f19259b-4bc3-4df7-8a09-765794883524
2014-06-18Contributed-under: TianoCore Contribution Agreement 1.0Victor Gouveia1-1/+1
Signed-off-by: Victor Gouveia <vc.gouveia@gmail.com> Reviewed-by: Gao, Liming <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15565 6f19259b-4bc3-4df7-8a09-765794883524
2014-02-24edksetup.bat: Fixed corrupts CYGWIN_HOMEOlivier Martin1-4/+12
The .BAT file checks for existance of the directory c:\cygwin and, if it exists, always resets CYGWIN_HOME to that path. That means that if CYGWIN_HOME is set to say c:\cygwin64, it gets corrupted. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> Reviewed-by Yingke Liu <yingke.d.liu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15254 6f19259b-4bc3-4df7-8a09-765794883524
2014-02-24BaseTools: Rectify use of @ in .BAT files.Olivier Martin1-32/+31
Tracing of the .BAT files is obscured by use of the @ prefix and is confused by the "echo on" at the end of toolsetup.bat. Silent all the 'echo' with '@'. And remove '@' from the non 'echo' line to make easier to trace the batch files when 'echo on'. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Olivier Martin <olivier.martin@arm.com> Reviewed-by Yingke Liu <yingke.d.liu@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15253 6f19259b-4bc3-4df7-8a09-765794883524
2013-09-04Update edksetup.bat to check VS2012Liming Gao1-12/+16
Signed-off-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14626 6f19259b-4bc3-4df7-8a09-765794883524
2012-04-10Added VS2010 support in edksetup script. lgao41-10/+14
Signed-off-by: Yu Wang <yu.wang@intel.com> Reviewed-by: Jikui Su <jikui.su@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13181 6f19259b-4bc3-4df7-8a09-765794883524
2011-02-16Correct copyright yearhhtian1-1/+1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11321 6f19259b-4bc3-4df7-8a09-765794883524
2010-04-29Update the copyright notice formathhtian1-2/+2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10448 6f19259b-4bc3-4df7-8a09-765794883524
2010-01-26Set correct workspace when workspace is not set.lgao41-5/+8
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9816 6f19259b-4bc3-4df7-8a09-765794883524
2010-01-26Clear EFI_SOURCE and EDK_SOURCE environment when workspace is changed.lgao41-0/+13
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9814 6f19259b-4bc3-4df7-8a09-765794883524
2009-11-16Added support for VS2008.ywang1-3/+7
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9433 6f19259b-4bc3-4df7-8a09-765794883524
2008-12-31Removed Java/Ant specific content from the setup scripts.lhauch1-273/+20
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7169 6f19259b-4bc3-4df7-8a09-765794883524
2008-05-20setting executable on these fileslhauch1-0/+0
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5241 6f19259b-4bc3-4df7-8a09-765794883524
2008-02-22Removed newbuild option from edksetup.bat command-line, this is now the default.lhauch1-158/+214
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4747 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-31Added VS2005 supportjwang361-16/+20
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4247 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-25Removed an echo statement I was using for debugging on the second time this ↵lhauch1-1/+0
was run. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4219 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-25Added a test for NewBuild argument if this is the second time through the ↵lhauch1-4/+6
setup - VCINSTALLDIR is set, and cygwin is installed. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4218 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-25Updated edksetup to support VS2005 iff VS2003 is not installed for the NT32 ↵lhauch1-0/+6
build git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4216 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-17Restoring $WORKSPACE/BaseTools location, as the plan is to deprecatejljusten1-3/+3
$WORKSPACE/Tools instead. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4148 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-16Moved $WORKSPACE/BaseTools to $WORKSPACE/Tools/BaseTools.jljusten1-3/+3
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4140 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-15Added help message for "NewBuild" and "--nt32" optionjwang361-7/+10
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4111 6f19259b-4bc3-4df7-8a09-765794883524
2007-10-11a) Supported MAKE command in tools_def.txtjwang361-1/+10
b) Cleaned several message strings in code c) Solved hang issue when the build.exe is broken by Ctrl+C d) Added more specific information for "-v" option of build.exe e) Added "-v"/"-d"/"-q" option for GenFds.exe in makefile if build.exe is called with one of them. f) Removed the calling to vsvars32.bat and added "--nt32" option in edksetup.bat because the nmake.exe's path has been put in tools_def.txt and build.exe will use that information to call nmake.exe g) Removed the calling to vsvars32.bat in BaseTools/toolsetup.bat git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4091 6f19259b-4bc3-4df7-8a09-765794883524
2007-09-26Only set EDK_TOOLS_PATH if it is not already setlhauch1-1/+1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3931 6f19259b-4bc3-4df7-8a09-765794883524
2007-06-22Added "NewBuild" option to incorporate new build system locating in ↵jwang361-5/+14
$(WORKSPACE)\BaseTools. This is a temporary solution which is subject to change in the future. Don't use it in formal platform or module build. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2706 6f19259b-4bc3-4df7-8a09-765794883524
2007-01-10Added support for xmlbeans-2.2.0jwang361-0/+2
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2203 6f19259b-4bc3-4df7-8a09-765794883524
2006-12-12make edksetup.bat accept case-insensitive parameters. wuyizhong1-9/+9
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2084 6f19259b-4bc3-4df7-8a09-765794883524
2006-11-01Fix a bug for setting CLASSPATH environment variable. Remove space after '=' ↵wuyizhong1-1/+1
when set the CLASSPATH. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1880 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-19Put the our jar files before the system's CLASSPATHjwang361-30/+30
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1798 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-17Provide a way to update config files[target.txt, tools_def.txt, ↵wuyizhong1-3/+18
FrameworkDatabase.db] even they are existed. Using edksetup.bat Reconfig. Give a more detail edksetup.bat help usage. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1773 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-17Fixed a little issue which will cause just one duplicated classpathjwang361-1/+1
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1770 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-17Fixed EDKT381. We can keep the system's CLASSPATH value after executing ↵jwang361-4/+6
edksetup.bat and won't duplicate it with more than one time of execution. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1769 6f19259b-4bc3-4df7-8a09-765794883524
2006-10-10Set the comment for JAVA_HOME to point to the minimum release version of SUN ↵lhauch1-1/+1
JDK, 1.5.0_06, not 1.5.0_04 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1716 6f19259b-4bc3-4df7-8a09-765794883524