forked from GENIVI/genivi-dev-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.sh
28 lines (22 loc) · 906 Bytes
/
init.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# This script should be sourced
# Check that it was sourced
cmd=$(basename "$0")
[ "$cmd" = "init.sh" ] && {
echo "No, the script needs to be _sourced_ from your current shell."
echo "Use source $cmd or . $cmd"
exit 1
}
# init really makes sense only the first time
# and after that is redundant
git submodule init
# git submodule sync helpfully rewrites your remotes (typically "origin")
# inside the submodules :) I bet this helpfulness will drive some power
# users mad, but for most users this will reduce instead of add confusion
git submodule sync
# update here could help ensure people get the right checked out version
# after they have switched branches. However learning how submodules work
# is better (because they are not that user friendly otherwise...))
git submodule update
source poky/oe-init-build-env gdp-src-build
echo
echo "Now run: bitbake genivi-dev-platform"