summaryrefslogtreecommitdiffstats
path: root/poky-init-build-env
diff options
context:
space:
mode:
authorMatthew Allum <mallum@openedhand.com>2006-07-21 21:05:18 +0000
committerMatthew Allum <mallum@openedhand.com>2006-07-21 21:05:18 +0000
commit46c6968e5dbc0f851f006749eaeb656dfde195b1 (patch)
tree0ae61ae8a6b2f900cfbc8a1c77e527565ca2c273 /poky-init-build-env
parentf6f9596eab1ac9983a20a8506e4fadc116915077 (diff)
downloadpoky-46c6968e5dbc0f851f006749eaeb656dfde195b1.tar.gz
Add a check for sourcing present when running poky-init-build-env
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@541 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'poky-init-build-env')
-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