Permalink
Browse files

oebb.sh: if MACHINE is set in env on first invocation autorun the con…

…figure steps
  • Loading branch information...
1 parent 3cb4cab commit 1631d0412d144387935c64eba7df80d2047b0668 @koenkooi koenkooi committed Oct 20, 2010
Showing with 10 additions and 0 deletions.
  1. +10 −0 oebb.sh
View
10 oebb.sh
@@ -161,6 +161,15 @@ function clean_oe()
###############################################################################
function oe_build()
{
+ if [ ! -e ${OE_BUILD_DIR}/conf/local.conf ] ; then
+ if [ -z $MACHINE ] ; then
+ echo "No config found, please run $0 config <machine> first"
+ else
+ CL_MACHINE=$MACHINE
+ config_oe && update_all
+ fi
+ fi
+
set_environment
if [ -e ~/.oe/environment ] ; then
echo "Using ~/.oe/environment to setup needed variables. It is recommended to do '. ~/.oe/environment' and run 'bitbake something' without using $0 as wrapper"
@@ -183,6 +192,7 @@ function oe_config()
{
set_environment
config_oe
+ update_all
echo ""
echo "Setup for ${CL_MACHINE} completed"

0 comments on commit 1631d04

Please sign in to comment.