diff options
| -rwxr-xr-x | poky-init-build-env | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/poky-init-build-env b/poky-init-build-env index 31757141a0..cc1e7eb2d4 100755 --- a/poky-init-build-env +++ b/poky-init-build-env | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | if test x"$0" = x"./poky-init-build-env"; then | ||
| 4 | echo "Error: Run via '. ./poky-init-build-env'" | ||
| 5 | exit 1 | ||
| 6 | fi | ||
| 7 | |||
| 3 | # | 8 | # |
| 4 | # Change this to the location of this file. | 9 | # Change this to the location of this file. |
| 5 | # Also update the locations at the top of conf/local.conf | 10 | # Also update the locations at the top of conf/local.conf |
| @@ -9,6 +14,7 @@ OEROOT=`pwd` | |||
| 9 | BBDIR=$OEROOT/bitbake/ | 14 | BBDIR=$OEROOT/bitbake/ |
| 10 | PKGDIR=$OEROOT/meta/ | 15 | PKGDIR=$OEROOT/meta/ |
| 11 | BUILDDIR=$OEROOT/build/ | 16 | BUILDDIR=$OEROOT/build/ |
| 17 | MSG='' | ||
| 12 | 18 | ||
| 13 | PATH=$BBDIR/bin/:$PATH | 19 | PATH=$BBDIR/bin/:$PATH |
| 14 | 20 | ||
| @@ -25,8 +31,9 @@ if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then | |||
| 25 | fi | 31 | fi |
| 26 | 32 | ||
| 27 | if ! (test -r $BUILDDIR/conf/local.conf); then | 33 | if ! (test -r $BUILDDIR/conf/local.conf); then |
| 28 | echo "Setting up initial '$PKGDIR/conf/local.conf'." | ||
| 29 | cat $BUILDDIR/conf/local.conf.sample | sed -e"s|POKYROOT|${OEROOT}|g" > $BUILDDIR/conf/local.conf | 34 | cat $BUILDDIR/conf/local.conf.sample | sed -e"s|POKYROOT|${OEROOT}|g" > $BUILDDIR/conf/local.conf |
| 35 | echo | ||
| 36 | echo "..Created initial 'build/conf/local.conf'" | ||
| 30 | fi | 37 | fi |
| 31 | 38 | ||
| 32 | BBPATH=$BBDIR | 39 | BBPATH=$BBDIR |
| @@ -46,4 +53,6 @@ export PATH LD_LIBRARY_PATH OEROOT | |||
| 46 | # Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really | 53 | # Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really |
| 47 | export LANG=C | 54 | export LANG=C |
| 48 | 55 | ||
| 49 | echo Environment set up for Poky development. | 56 | echo |
| 57 | echo "### Shell environment set up for Poky builds. ###" | ||
| 58 | echo \ No newline at end of file | ||
