Skip to content

Commit

Permalink
oebb: put machine in auto.conf
Browse files Browse the repository at this point in the history
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
  • Loading branch information
koenkooi committed May 5, 2011
1 parent 108c034 commit 088be90
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 1 addition & 2 deletions build/conf/local.conf
Expand Up @@ -16,11 +16,10 @@ IMAGE_FSTYPES += "tar.bz2"
# Make use of SMP:
# PARALLEL_MAKE specifies how many concurrent compiler threads are spawned per bitbake process
# BB_NUMBER_THREADS specifies how many concurrent bitbake tasks will be run
#PARALLEL_MAKE = "-j2"
PARALLEL_MAKE = "-j2"
BB_NUMBER_THREADS = "2"

DISTRO = "angstrom-2010.x"
MACHINE ?= "beagleboard"

# Set terminal types by default it expects gnome-terminal
# but we chose xterm
Expand Down
8 changes: 7 additions & 1 deletion oebb.sh
Expand Up @@ -160,7 +160,7 @@ function clean_oe()
###############################################################################
function oe_build()
{
if [ ! -e ${OE_BUILD_DIR}/conf/site.conf ] ; then
if [ ! -e ${OE_BUILD_DIR}/conf/auto.conf ] ; then
if [ -z $MACHINE ] ; then
echo "No config found, please run $0 config <machine> first"
else
Expand Down Expand Up @@ -279,6 +279,12 @@ TMPDIR = "${OE_BUILD_TMPDIR}"
#HTTP_PROXY = "http://${PROXYHOST}:${PROXYPORT}/"
_EOF

if [ ! -e ${OE_BUILD_DIR}/conf/auto.conf ]; then
cat > ${OE_BUILD_DIR}/conf/auto.conf <<_EOF
MACHINE ?= "${MACHINE}"
_EOF

fi
}

Expand Down

0 comments on commit 088be90

Please sign in to comment.