[Angstrom-devel] Khem Raj : oebb.sh: Update MACHINE entry in auto.conf
Angstrom Git Repos
ang-git at xora.vm.bytemark.co.uk
Fri Oct 21 09:12:11 CEST 2011
Module: setup-scripts
Branch: oe-core
Commit: 52577c8a8f75028e9b056488b63611376b75717e
Author: Khem Raj <raj.khem at gmail.com>
Date: Thu Oct 20 16:54:01 2011 -0700
oebb.sh: Update MACHINE entry in auto.conf
Currently we dont update the machine entry in auto.conf
except for first time when autoconf is created. This
patch lets us edit auto.conf when we do
oebb.sh config <machine> subsequently. It will update
MACHINE entry in auto.conf
Signed-off-by: Khem Raj <raj.khem at gmail.com>
Signed-off-by: Koen Kooi <koen at dominion.thruhere.net>
---
oebb.sh | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/oebb.sh b/oebb.sh
index f7247b8..a89d497 100755
--- a/oebb.sh
+++ b/oebb.sh
@@ -265,7 +265,8 @@ fi
cat > ${OE_BUILD_DIR}/conf/auto.conf <<_EOF
MACHINE ?= "${MACHINE}"
_EOF
-
+ else
+ eval "sed -i -e 's/^MACHINE.*$/MACHINE ?= ${MACHINE}/g' ${OE_BUILD_DIR}/conf/auto.conf"
fi
}
More information about the Angstrom-distro-devel
mailing list