summaryrefslogtreecommitdiffstats
path: root/do-ba
blob: ce54dcd52f8b6f48bd6b9ff928ec3a8ba7e79f9e (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
#!/bin/sh
BRANCH=$1

if [ -z $BRANCH ]; then
    BRANCH=master
fi

if [ $BRANCH = "daisy" ]; then
    RECIPE="meta/recipes-core/images/build-appliance-image_8.0.bb"
elif [ $BRANCH = "dizzy" ]; then
    RECIPE="meta/recipes-core/images/build-appliance-image_8.0.bb"
elif [ $BRANCH = "dora" ]; then
    RECIPE="meta/recipes-core/images/build-appliance-image_8.0.bb"
elif [ $BRANCH = "dylan" ]; then
    RECIPE="meta/recipes-core/images/build-appliance-image.bb"
elif [ $BRANCH = "fido" ]; then
    RECIPE="meta/recipes-core/images/build-appliance-image_12.0.1.bb"
elif [ $BRANCH = "jethro" ]; then
    RECIPE="meta/recipes-core/images/build-appliance-image_12.0.1.bb"
elif [ $BRANCH = "krogoth" ]; then
    RECIPE="meta/recipes-core/images/build-appliance-image_14.0.0.bb"
elif [ $BRANCH = "morty" ]; then
    RECIPE="meta/recipes-core/images/build-appliance-image_15.0.0.bb"
elif [ $BRANCH = "pyro" ]; then
    RECIPE="meta/recipes-core/images/build-appliance-image_15.0.0.bb"
elif [ $BRANCH = "rocko" ]; then
    RECIPE="meta/recipes-core/images/build-appliance-image_15.0.0.bb"
elif [ $BRANCH = "sumo" ]; then
    RECIPE="meta/recipes-core/images/build-appliance-image_15.0.0.bb"
elif [ $BRANCH = "sumo" ]; then
    RECIPE="meta/recipes-core/images/build-appliance-image_15.0.0.bb"
elif [ $BRANCH = "thud" ]; then
    RECIPE="meta/recipes-core/images/build-appliance-image_15.0.0.bb"
elif [ $BRANCH = "master" ]; then
    RECIPE="meta/recipes-core/images/build-appliance-image_15.0.0.bb"
fi

HEAD=`cd ../poky; git log $BRANCH --pretty=%H -n 1`
echo "$BRANCH HEAD is $HEAD"
(
    cd ../oe-core
    git checkout $BRANCH
    sed -i -e "s/^SRCREV ?= \".*\"/SRCREV ?= \"$HEAD\"/" $RECIPE
    sed -i -e "s#\(git://git.yoctoproject.org/poky;branch=\).*\( \\)#\1$BRANCH\2#" $RECIPE
    git commit -m "build-appliance-image: Update to $BRANCH head revision"  -as
)