summaryrefslogtreecommitdiff
path: root/init-and-build.sh
blob: 64e0a4ddacd1379658055fd5058295e9a4551254 (plain)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash

# set some defaults
release=13.04
arch=armv8
gcc=4.7
external_url=
jenkins=

source functions.sh

while getopts “ha:g:u:” OPTION
do
	case $OPTION in
		h)
			usage
			exit
			;;
		a)
			arch=$OPTARG
			;;
		g)
			gcc=$OPTARG
			;;
		u)
			external_url=$OPTARG
			;;
	esac
done

shift $(( OPTIND-1 ))

if [ -n "${WORKSPACE}" ]; then
	jenkins=1
fi

show_setup

git_clone_update
# git_freeze

# let's start build
. oe-init-build-env ../build

conf_bblayers
conf_siteconf
conf_localconf
conf_toolchain
conf_jenkins

# workaround for LP: #1183087
if [ $jenkins ]; then
	if [ `echo "$@" | grep lamp` ];then
		bitbake -ccleansstate libunwind
		bitbake gcc
	fi
fi

bitbake $@