]> git.proxmox.com Git - mirror_edk2.git/commit - edksetup.sh
edksetup.sh: Ensure that WORKSPACE points to the top of an edk2 checkout
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 28 Jul 2014 17:37:40 +0000 (17:37 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 28 Jul 2014 17:37:40 +0000 (17:37 +0000)
commitd54934498fc69d456bf648068d20c8fd8453fca7
tree43e893f43a164959c620a75715e6c17b6eff5e9f
parent7bc14212b3f640f34c343e38c508ecfd5e8409e5
edksetup.sh: Ensure that WORKSPACE points to the top of an edk2 checkout

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