summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpoky-init-build-env13
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
3if test x"$0" = x"./poky-init-build-env"; then
4 echo "Error: Run via '. ./poky-init-build-env'"
5 exit 1
6fi
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`
9BBDIR=$OEROOT/bitbake/ 14BBDIR=$OEROOT/bitbake/
10PKGDIR=$OEROOT/meta/ 15PKGDIR=$OEROOT/meta/
11BUILDDIR=$OEROOT/build/ 16BUILDDIR=$OEROOT/build/
17MSG=''
12 18
13PATH=$BBDIR/bin/:$PATH 19PATH=$BBDIR/bin/:$PATH
14 20
@@ -25,8 +31,9 @@ if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then
25fi 31fi
26 32
27if ! (test -r $BUILDDIR/conf/local.conf); then 33if ! (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'"
30fi 37fi
31 38
32BBPATH=$BBDIR 39BBPATH=$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
47export LANG=C 54export LANG=C
48 55
49echo Environment set up for Poky development. 56echo
57echo "### Shell environment set up for Poky builds. ###"
58echo \ No newline at end of file