]>
Commit | Line | Data |
---|---|---|
a310886b | 1 | # |
2 | # Copyright (c) 2006 - 2007, Intel Corporation | |
3 | # All rights reserved. This program and the accompanying materials | |
4 | # are licensed and made available under the terms and conditions of the BSD License | |
5 | # which accompanies this distribution. The full text of the license may be found at | |
6 | # http://opensource.org/licenses/bsd-license.php | |
7 | # | |
8 | # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, | |
9 | # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. | |
10 | ||
11 | # Setup the environment for unix-like systems running a bash-like shell. | |
12 | # This file must be "sourced" not merely executed. For example: ". edksetup.sh" | |
13 | ||
6e98e263 | 14 | if [ ! -e ./BaseTools/BuildEnv.py ] |
a310886b | 15 | then |
16 | echo Run this script from the base of your tree. For example: | |
17 | echo " cd /Path/To/Edk/Root" | |
6e98e263 | 18 | echo " . BaseTools/BuildEnv" |
a310886b | 19 | return |
20 | fi | |
21 | ||
22 | # | |
23 | # First, we run a python tool that will ask the user to configure | |
24 | # the environment in a (relatively) user friendly manner. | |
25 | # | |
6e98e263 | 26 | python ./BaseTools/BuildEnv.py $* |
a310886b | 27 | |
28 | # | |
29 | # The python tool will write ./Conf/BuildEnv.sh to actually configure | |
30 | # the environment. | |
31 | # | |
32 | if [ -e ./Conf/BuildEnv.sh ] | |
33 | then | |
34 | . ./Conf/BuildEnv.sh | |
35 | else | |
36 | echo There was a failure while trying to setup the environment! | |
37 | fi | |
38 | ||
39 |