poky-config/buildit-next
Richard Purdie 976e4deea8 combo-layer-sumo: Add sumo configuration
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-02-25 13:54:35 +00:00

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