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
This commit is contained in:
parent
f6f9596eab
commit
46c6968e5d
|
@ -1,5 +1,10 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if test x"$0" = x"./poky-init-build-env"; then
|
||||||
|
echo "Error: Run via '. ./poky-init-build-env'"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
#
|
#
|
||||||
# Change this to the location of this file.
|
# Change this to the location of this file.
|
||||||
# Also update the locations at the top of conf/local.conf
|
# Also update the locations at the top of conf/local.conf
|
||||||
|
@ -9,6 +14,7 @@ OEROOT=`pwd`
|
||||||
BBDIR=$OEROOT/bitbake/
|
BBDIR=$OEROOT/bitbake/
|
||||||
PKGDIR=$OEROOT/meta/
|
PKGDIR=$OEROOT/meta/
|
||||||
BUILDDIR=$OEROOT/build/
|
BUILDDIR=$OEROOT/build/
|
||||||
|
MSG=''
|
||||||
|
|
||||||
PATH=$BBDIR/bin/:$PATH
|
PATH=$BBDIR/bin/:$PATH
|
||||||
|
|
||||||
|
@ -25,8 +31,9 @@ if ! (test -d $BBDIR && test -d $PKGDIR && test -d $BUILDDIR); then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! (test -r $BUILDDIR/conf/local.conf); then
|
if ! (test -r $BUILDDIR/conf/local.conf); then
|
||||||
echo "Setting up initial '$PKGDIR/conf/local.conf'."
|
|
||||||
cat $BUILDDIR/conf/local.conf.sample | sed -e"s|POKYROOT|${OEROOT}|g" > $BUILDDIR/conf/local.conf
|
cat $BUILDDIR/conf/local.conf.sample | sed -e"s|POKYROOT|${OEROOT}|g" > $BUILDDIR/conf/local.conf
|
||||||
|
echo
|
||||||
|
echo "..Created initial 'build/conf/local.conf'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
BBPATH=$BBDIR
|
BBPATH=$BBDIR
|
||||||
|
@ -46,4 +53,6 @@ export PATH LD_LIBRARY_PATH OEROOT
|
||||||
# Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really
|
# Stop multi byte characters breaking the patcher stuff - This is for Redhat / Fedora people really
|
||||||
export LANG=C
|
export LANG=C
|
||||||
|
|
||||||
echo Environment set up for Poky development.
|
echo
|
||||||
|
echo "### Shell environment set up for Poky builds. ###"
|
||||||
|
echo
|
Loading…
Reference in New Issue