mirror of
git://git.yoctoproject.org/poky-config.git
synced 2026-01-27 11:01:25 +01:00
buildit-next: Update for multiple release -next branch handling
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
4ae8bd926c
commit
ab48debff2
36
buildit-next
36
buildit-next
|
|
@ -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
|
||||
Loading…
Reference in New Issue
Block a user