summaryrefslogtreecommitdiffstats
path: root/meta/recipes-qt/qt4/qt-mobility-1.2.0/0001-fix-embedded-usage-doesn-t-work-outside-of-Qt.patch
blob: d8d88c2cfc0c5276c51c722ee5e621290bb5933e (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
generated by cgit 1.2.3-korg (git 2.39.0) at 2024-05-26 06:25:11 +0000
 


an>dirname "$THIS_SCRIPT")
    OEROOT=$(readlink -f "$OEROOT")
fi
unset THIS_SCRIPT

export OEROOT
. $OEROOT/scripts/oe-buildenv-internal &&
    TEMPLATECONF="$TEMPLATECONF" $OEROOT/scripts/oe-setup-builddir || {
    unset OEROOT
    return 1
}
unset OEROOT

[ -z "$BUILDDIR" ] || cd "$BUILDDIR"

res=1
if [ -e bitbake.lock ] && grep : bitbake.lock > /dev/null; then
    BBSERVER=$(cat bitbake.lock) bitbake --status-only
    res=$?
fi

if [ $res != 0 ]; then
    bitbake --server-only -t xmlrpc -B localhost:$port
fi

if [ $port = -1 ]; then
    export BBSERVER=localhost:-1
    echo "Bitbake server started on demand as needed, use bitbake -m to shut it down"
else
    export BBSERVER=$(cat bitbake.lock)

    if [ $res = 0 ]; then
        echo "Using existing bitbake server at: $BBSERVER, use bitbake -m to shut it down"
    else
        echo "Bitbake server started at: $BBSERVER, use bitbake -m to shut it down"
    fi
fi
unset port res