buildit-next: Update for multiple release -next branch handling

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2017-12-09 14:23:18 +00:00
parent 4ae8bd926c
commit ab48debff2

View File

@ -1,16 +1,26 @@
cd ~/Repos/oe-core
git checkout master-next
git rebase origin/master
cd ~/Repos/yocto-docs
git checkout master-next
git rebase origin/master
cd ~/Repos/bitbake
git checkout master-next
git rebase origin/master
#!/bin/bash
branch=${1:-master}
nextbranch=${branch}-next
for i in oe-core yocto-docs bitbake meta-yocto; do
if [ $branch != "master" -a $i = "bitbake" ]; then
continue
fi
cd ~/Repos/$i
git checkout $nextbranch
git rebase $branch
done
cd ~/Repos/poky
cp ../pokyconfig/combo-layer.conf ../pokyconfig/combo-layer-next.conf
sed -i -e "s/master/master-next/g" ../pokyconfig/combo-layer-next.conf
git checkout master-next
git reset master --hard
layerfile=combo-layer-${branch}.conf
if [ $branch = "master" ]; then
layerfile=combo-layer.conf
fi
cp ../pokyconfig/$layerfile ../pokyconfig/combo-layer-next.conf
sed -i -e "s/${branch}/${nextbranch}/g" ../pokyconfig/combo-layer-next.conf
git checkout $nextbranch
git reset $branch --hard
# Add -D option for debug
../pokyconfig/combo-layer -c ../pokyconfig/combo-layer-next.conf -n update
git checkout master