aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYong-iL Joh <yong-il.joh@windriver.com>2017-04-04 19:39:56 +0900
committerYong-iL Joh <yong-il.joh@windriver.com>2017-04-04 19:39:56 +0900
commit3a0c21f962bba30b602437c78ef238ca39326ec7 (patch)
tree058280e8b2762bb433ba1185b3e73755309b61cf
parent298629e1262e1e5ba1461e664c1af70c26bd8a9d (diff)
downloadmeta-ivi-3a0c21f962bba30b602437c78ef238ca39326ec7.tar.gz
meta-ivi-3a0c21f962bba30b602437c78ef238ca39326ec7.tar.bz2
meta-ivi-3a0c21f962bba30b602437c78ef238ca39326ec7.zip
scripts/checkout: update.
- it can be used for update existing git - add a guide to README.md Signed-off-by: Yong-iL Joh <yong-il.joh@windriver.com>
-rw-r--r--README.md9
-rwxr-xr-xscripts/checkout23
2 files changed, 32 insertions, 0 deletions
diff --git a/README.md b/README.md
index 8a12ef0..7719823 100644
--- a/README.md
+++ b/README.md
@@ -103,3 +103,12 @@ to use am 7.0, put following lines to <build directory>/conf/local.conf
# use audiomanager 7.0 until am7.4 issues are fixed.
PREFERRED_VERSION_audiomanager ?= "7.0"
PREFERRED_VERSION_audiomanagerplugins ?= "7.0"
+
+update poky, meta-openembedded automatically
+--------------------------------------------
+1. confirm current directory is meta-ivi
+ > $ basename `pwd`
+ meta-ivi
+
+2. run script
+ > $ ./scripts/checkout
diff --git a/scripts/checkout b/scripts/checkout
index ec892b3..6963f64 100755
--- a/scripts/checkout
+++ b/scripts/checkout
@@ -5,5 +5,28 @@
export LANG=C
MYDIR=$(dirname "$0")
+update_git() {
+ _git=$1
+ _cur_dir=`pwd`
+ if [ -d ../${_git} ]; then
+ cd ../${_git}
+ _null=`git status >& /dev/null`
+ _r=$?
+ if [ $_r -eq 0 ]; then
+ git checkout master >& /dev/null
+ git pull >& /dev/null
+ cd ${_cur_dir}
+ else
+ echo "fatal: Not a git repository"
+ exit 2
+ fi
+ else
+ echo "there is no such directory: $_git "
+ exit 1
+ fi
+}
+
+update_git poky
$MYDIR/checkout_layer_hash.sh poky
+update_git meta-openembedded
$MYDIR/checkout_layer_hash.sh meta-openembedded