mirror of
git://git.yoctoproject.org/poky-config.git
synced 2025-12-14 06:15:26 +01:00
53 lines
2.2 KiB
Bash
Executable File
53 lines
2.2 KiB
Bash
Executable File
#!/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 = "warrior" ]; then
|
|
RECIPE="meta/recipes-core/images/build-appliance-image_15.0.0.bb"
|
|
elif [ $BRANCH = "zeus" ]; then
|
|
RECIPE="meta/recipes-core/images/build-appliance-image_15.0.0.bb"
|
|
elif [ $BRANCH = "dunfell" -o $BRANCH = "gatesgarth" -o $BRANCH = "hardknott" -o $BRANCH = "honister" -o $BRANCH = "kirkstone" -o $BRANCH = "langdale" ]; 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
|
|
)
|