summaryrefslogtreecommitdiffstats
path: root/edksetup.sh
Commit message (Collapse)AuthorAgeFilesLines
* Remove bashisms from edksetup.sh and BaseTools/BuildEnvRebecca Cran2023-05-101-78/+11
| | | | | | | | Remove bashisms from edksetup.sh and BaseTools/BuildEnv. This allows any POSIX shell to use those scripts, removing the dependency on bash. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
* edksetup.sh: remove redundant -?, -h and --help in options parsingrebecca@bsdio.com2019-07-231-1/+1
| | | | | | | Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Message-Id: <20190716165538.57960-4-rebecca@bsdio.com>
* edksetup.sh: when executing arithmetic commands, $ isn't neededrebecca@bsdio.com2019-07-231-1/+1
| | | | | | | Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Message-Id: <20190716165538.57960-3-rebecca@bsdio.com>
* edksetup.sh: Use $SCRIPTNAME consistently instead of 'edksetup.sh'rebecca@bsdio.com2019-07-231-2/+2
| | | | | | | Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Message-Id: <20190716165538.57960-2-rebecca@bsdio.com>
* edksetup.sh: Use bash variable $PWD instead of executing pwd commandrebecca@bsdio.com2019-07-231-1/+1
| | | | | | | | | | | | | This is a (very minor) optimization: `pwd` runs the command (even as a built-in), whereas $PWD simply evaluates the value of the variable. ALso, modern scripts should generally use $(...) to run commands, instead of `...`. Signed-off-by: Rebecca Cran <rebecca@bsdio.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org> Message-Id: <20190716165538.57960-1-rebecca@bsdio.com>
* BaseTools:Linux changes the way the latest version is judgedFan, ZhijuX2019-07-011-4/+2
| | | | | | | | | | Some Linux servers do not have BC installed,so errors occur. So the judgment was changed to avoid this error. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
* Fix indentation in edksetup.sh SetupPython3rebecca@bluestop.org2019-07-011-20/+20
| | | | | Signed-off-by: Rebecca Cran <rebecca@bluestop.org> Reviewed-by: Liming Gao <liming.gao@intel.com>
* Revert "BaseTools:code of test python module is moved to edksetup"Fan, ZhijuX2019-05-091-13/+2
| | | | | | | | | | | | | This reverts commit df7c81b5b219c9aee776baa466dd64c9d318dd80. In commint df7c81b5b219c9,used a function to test python module But the Boolean value of the return value of this function is the opposite of the Correct result, resulting in an unexpected result Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
* BaseTools:The code used to test python module is moved to edksetupFan, ZhijuX2019-05-081-2/+13
| | | | | | | | | | | | | | | BZ:https://bugzilla.tianocore.org/show_bug.cgi?id=1582 testing for presence of python modules should be done in edksetup to reduce impact on subsequent build times. This code currently exists in BaseTools/Tests/RunTest.py. This patch is going to fix this issue. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
* edk2: Replace BSD License with BSD+Patent LicenseMichael D Kinney2019-04-091-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>
* BaseTools:Some build generated files content are not ordered on linuxFan, ZhijuX2019-02-221-1/+1
| | | | | | | | | | | If the WORKSPACE environment variable has been set,The variables that control stable sorting will not be set. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
* BaseTools: Update PYTHON env to PYTHON_COMMANDLiming Gao2019-02-011-12/+30
| | | | | | | | | | Update PYTHON env to PYTHON_COMMAND. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
* BaseTools:Linux Python highest version check.Zhijux Fan2019-02-011-5/+11
| | | | | | | | | | | | | | Linux Python highest version check. The path of Python interpreter assign values to PYTHON_COMMAND Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
* BaseTools: Update windows and linux run scripts file to use Python3Zhijux Fan2019-02-011-1/+50
| | | | | | | | | | | | | | | Modify windows script, PosixLike script, edksetup.sh, edksetup.bat to use Python3 based on PYTHON3_ENABLE environment. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
* BaseTools:Solve the data sorting problem use python3Zhijux Fan2019-02-011-1/+1
| | | | | | | | | | | | | | | set PYTHONHASHSEED Specifying the value 0 will disable hash randomization. Cc: Bob Feng <bob.c.feng@intel.com> Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Zhiju.Fan <zhijux.fan@intel.com> Tested-by: Laszlo Ersek <lersek@redhat.com> Tested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Bob Feng <bob.c.feng@intel.com>
* Revert BaseTools: PYTHON3 migrationLiming Gao2018-10-151-31/+0
| | | | | | | | | | | | | | This reverts commit 6693f359b3c213513c5096a06c6f67244a44dc52.. 678f85131238622e576705117e299d81cff755c9. Python3 migration is the fundamental change. It requires every developer to install Python3. Before this migration, the well communication and wide verification must be done. But now, most people is not aware of this change, and not try it. So, Python3 migration is reverted and be moved to edk2-staging Python3 branch for the edk2 user evaluation. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao <liming.gao@intel.com>
* BaseTools: Update windows and linux run scripts file to use Python3Yunhua Feng2018-10-131-0/+31
| | | | | | | | | | | Modify windows script, PosixLike script, edksetup.sh, edksetup.bat to use Python3 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>
* BaseTools/edksetup.sh: fix invalid test for current working directoryChris Ruffin2017-08-101-1/+1
| | | | | | | | | | | | | | | edksetup.sh implements a test that requires the current working directory to contain the edksetup.sh script. This test has the side effect of requiring the WORKSPACE to be set to the same directory as the edksetup.sh. In a multiple workspace configuration, it is required to be able to have a WORKSPACE that is different from the directory that contains edksetup.sh. This changeset skips this test if PACKAGE_PATH is set. Change-Id: Ie6f16a08c012baf4e650c48cc8e91cdc466d05f2 Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Chris Ruffin <chris.ruffin@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
* edksetup.sh, BaseTools/BuildEnv: add --reconfig supportLeif Lindholm2016-10-241-0/+10
| | | | | | | | | Add command line option --reconfig to edksetup.sh, forcing cached copies of Conf/*.txt to be overwritten. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com>
* edksetup.sh: rework argument parsing and update usage informationLeif Lindholm2016-10-241-28/+37
| | | | | | | | | | | | | | | Rework the argument parsing logic to a more extensible traditional while/case setup to prepare for further additions. While doing that, align the Usage printout to look a bit more like the output of Edk2Setup.bat (and be more correct). And also stop passing around command line options to the BuildEnv script (which does not check them anyway). Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Liming Gao <liming.gao@intel.com>
* edksetup.sh: update the URL in edksetup.shYonghong Zhu2016-09-151-6/+3
| | | | | | | | | Update the URL since http://edk2.tianocore.org is not valid 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>
* BaseTools: Update edksetup.sh to support multiple workspacesLiming Gao2015-10-081-3/+16
| | | | | | | | 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@18584 6f19259b-4bc3-4df7-8a09-765794883524
* edksetup.sh: Ensure that WORKSPACE points to the top of an edk2 checkoutPaolo Bonzini2014-07-281-2/+44
| | | | | | | | | | | | | | | | | | | | | | | Since WORKSPACE should point at the EDK2 tree, the right place to check its validity is edksetup.sh, not BaseTools/BuildEnv. This patch makes sure that BuildEnv is always invoked with a valid WORKSPACE. This lets us show better error messages, and ensures that we never dirty the user's environment. BuildEnv will maintain backwards-compatibility and, should the variable be missing, it will be able to set a default WORKSPACE. Only the sanity checks will be of lower quality. Note that the error message in SetupEnv will never be shown if SetWorkspace sets WORKSPACE=`pwd`. Suggested-by: Laszlo Ersek <lersek@redhat.com> Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15701 6f19259b-4bc3-4df7-8a09-765794883524
* edksetup.sh: Look for BuildEnv under EDK_TOOLS_PATHPaolo Bonzini2014-07-281-3/+6
| | | | | | | | | | | | | | | | | | | | | | | EDK_TOOLS_PATH is basically a replacement for $WORKSPACE/BaseTools. It makes sense to check for BuildEnv there, then, if $WORKSPACE is absent but $EDK_TOOLS_PATH is present. With this patch, it is possible to separately package tools in /usr and use them compile EDK2 (doing "rm -rf BaseTools" in the EDK2 tree). This is desirable for OS distributions that need to distribute the tools in a "free software" repository and OVMF in a "non-free software" repository; bundling the same code in two different packages causes confusion. It is also simpler for distros because the build process for BaseTools and OVMF is completely different. Contributed-under: TianoCore Contribution Agreement 1.0 Reviewed-by: Laszlo Ersek <lersek@redhat.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15700 6f19259b-4bc3-4df7-8a09-765794883524
* edksetup.sh: Fix typo and return codeLeif Lindholm2014-01-301-4/+8
| | | | | | | | | | | | | The typo was a check for the string "BaseTool" instead of "BaseTools". Also fixed the issue where the script returned success even when configuration failed. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Leif Lindholm <leif.lindholm@linaro.org> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15200 6f19259b-4bc3-4df7-8a09-765794883524
* edksetup.sh: Code styleJordan Justen2014-01-301-13/+15
| | | | | | | | Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15199 6f19259b-4bc3-4df7-8a09-765794883524
* Handle command line parameter "-? -h --help" and any other.Parmeshwr Prasad2014-01-281-11/+32
| | | | | | | | Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Parmeshwr Prasad <parmeshwr_prasad@dell.com> Reviewed-by: Gao, Liming <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15192 6f19259b-4bc3-4df7-8a09-765794883524
* Correct copyright yearhhtian2011-02-161-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11321 6f19259b-4bc3-4df7-8a09-765794883524
* Removed the requirement to pass in at least one parameter to the script.geekboy15a2010-07-091-1/+0
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10642 6f19259b-4bc3-4df7-8a09-765794883524
* Update the copyright notice formathhtian2010-04-291-2/+2
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10448 6f19259b-4bc3-4df7-8a09-765794883524
* add more description in edksetup.shklu22009-07-081-2/+12
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8806 6f19259b-4bc3-4df7-8a09-765794883524
* Removed Java/Ant specific content from the setup scripts.lhauch2008-12-311-24/+4
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7169 6f19259b-4bc3-4df7-8a09-765794883524
* setting executable on these fileslhauch2008-05-201-0/+0
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5241 6f19259b-4bc3-4df7-8a09-765794883524
* edksetup.sh:jljusten2008-02-121-9/+26
| | | | | | | | | | Support both BaseTools and AntTools. Do not require the user to use BaseTools/BuildEnv for the BaseTools support. Use this command to for help: . edksetup.sh --help git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4687 6f19259b-4bc3-4df7-8a09-765794883524
* Refer to $WORKSPACE/BaseTools rather than $WORKSPACE/Tools.jljusten2007-10-171-3/+3
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4149 6f19259b-4bc3-4df7-8a09-765794883524
* edksetup.sh:jljusten2007-10-161-85/+20
| | | | | | | | | | | | | | | | | | Now we look for the 'NewBuild' parameter, and if so, ask the user to 'source' the correct script. (. Tools/BuildEnv) Otherwise we 'source' the Tools/OldBuildEnv script for the user. Tools/OldBuildEnv: This is the old contents of $WORKSPACE/edksetup.sh Tools/BuildEnv: This script is used to configure the BaseTools build environment for unix-like operating systems. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@4141 6f19259b-4bc3-4df7-8a09-765794883524
* Added support for xmlbeans-2.2.0jwang362007-01-101-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2203 6f19259b-4bc3-4df7-8a09-765794883524
* Changed the FrameworkWizard.jar path from Bin to binjwang362007-01-041-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2169 6f19259b-4bc3-4df7-8a09-765794883524
* Add ant-contrib.jar to class pathklu22006-12-281-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2150 6f19259b-4bc3-4df7-8a09-765794883524
* Cleanups for cygwin.bbahnsen2006-11-141-19/+8
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1953 6f19259b-4bc3-4df7-8a09-765794883524
* Fix EDKT140(CompressDll.dll does not build under cygwin gcc).qouyang2006-08-041-0/+14
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1188 6f19259b-4bc3-4df7-8a09-765794883524
* Because Pcd entity, exception and some action package are shared by Building ↵klu22006-07-311-1/+2
| | | | | | tools and Wizard Tools, so I move them to Tools/Source folder and generated PcdTools.jar, git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1160 6f19259b-4bc3-4df7-8a09-765794883524
* Handle the FRAMEWORK_TOOLS_PATH properly on cygwin.bbahnsen2006-07-271-0/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1126 6f19259b-4bc3-4df7-8a09-765794883524
* Check to see if the tools are built before trying a build.bbahnsen2006-07-141-3/+49
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1005 6f19259b-4bc3-4df7-8a09-765794883524
* 1. Add build FrameworkWizard in edksetup.bathche10x2006-07-131-0/+1
| | | | | | 2. Modify FrameworkWizard.bat to skip building and only run the program git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@934 6f19259b-4bc3-4df7-8a09-765794883524
* Fix some bugs in edksetup.shklu22006-07-091-4/+13
| | | | | | | | 1, WORKSPACE environment in unix-like system can be obtained automatically as edksetup.bat in window's environment. 2, XMLBEANS_HOME environment in unix-like system should be also check as edksetup.bat in windows's environment. 3, In some unix-like system like darwin's system, system environment should be export to user's environment explicitly, this behavior is different in microsoft windows's platform. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@849 6f19259b-4bc3-4df7-8a09-765794883524
* Add a new classpath element.bbahnsen2006-06-201-0/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@577 6f19259b-4bc3-4df7-8a09-765794883524
* Convert env var name to all caps.bbahnsen2006-06-121-2/+2
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@486 6f19259b-4bc3-4df7-8a09-765794883524
* Remove one of the saxon jars from the classpath.bbahnsen2006-06-061-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@434 6f19259b-4bc3-4df7-8a09-765794883524
* Try to fix the Surface Area build.bbahnsen2006-06-061-1/+1
| | | | git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@433 6f19259b-4bc3-4df7-8a09-765794883524