mirror of
git://git.yoctoproject.org/poky-config.git
synced 2026-01-27 11:01:25 +01:00
32 lines
850 B
Bash
Executable File
32 lines
850 B
Bash
Executable File
#!/bin/bash
|
|
branch=${1:-master}
|
|
nextbranch=${branch}-next
|
|
|
|
for i in oe-core yocto-docs bitbake meta-yocto; do
|
|
echo $i
|
|
if [ $branch != "master" -a $i = "bitbake" ]; then
|
|
continue
|
|
fi
|
|
cd ~/Repos/$i
|
|
git checkout $nextbranch
|
|
git rebase $branch
|
|
done
|
|
|
|
cd ~/Repos/poky
|
|
|
|
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
|
|
if [ $nextbranch = "sumo-next" ]; then
|
|
sed -i -z -e "s/\(bitbake\nbranch = \)sumo-next/\11.38/g" ../pokyconfig/combo-layer-next.conf
|
|
fi
|
|
|
|
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 |