Commit 77243dd0 authored by David Mondou's avatar David Mondou
Browse files

Update build_script for vesta-general

parent d8a2373d
Pipeline #10014 failed with stages
in 52 minutes and 53 seconds
......@@ -31,41 +31,19 @@ cd vesta-gateway-bsp-master
sed -i '0,/EULA_ACCEPTED/s/EULA_ACCEPTED=/EULA_ACCEPTED=1/' setup-environment
MACHINE=vesta-300 DISTRO=poky source setup-environment build
echo ****************** START vesta-300 developer build ******************
MACHINE=vesta-general DISTRO=poky source setup-environment build
echo ****************** START vesta-general developer build ******************
bitbake vesta-image-developer
#Retry once
if [ $? -ne 0 ]; then bitbake vesta-image-developer; fi
if [ $? -ne 0 ]; then echo vesta-300 developer build FAILED; exit 1; fi
if [ $? -ne 0 ]; then echo vesta-general developer build FAILED; exit 1; fi
echo ****************** START vesta-300 minimal build ******************
echo ****************** START vesta-general minimal build ******************
bitbake vesta-image-minimal
if [ $? -ne 0 ]; then echo vesta-300 minimal build FAILED; exit 1; fi
echo ****************** START vesta-200 developer build ******************
sed -i '/MACHINE/c\MACHINE ??= "vesta-200"' conf/local.conf
bitbake vesta-image-developer
if [ $? -ne 0 ]; then echo vesta-200 developer build FAILED; exit 1; fi
echo ****************** START vesta-200 minimal build ******************
bitbake vesta-image-minimal
if [ $? -ne 0 ]; then echo vesta-200 minimal build FAILED; exit 1; fi
echo ****************** START vesta-400 developer build ******************
sed -i '/MACHINE/c\MACHINE ??= "vesta-400"' conf/local.conf
bitbake vesta-image-developer
if [ $? -ne 0 ]; then echo vesta-400 developer build FAILED; exit 1; fi
echo ****************** START vesta-400 minimal build ******************
bitbake vesta-image-minimal
if [ $? -ne 0 ]; then echo vesta-400 minimal build FAILED; exit 1; fi
if [ $? -ne 0 ]; then echo vesta-general minimal build FAILED; exit 1; fi
#check the exit code again. We were running as user chewbacca so if
#an exit 1 was executed it will exit user chewbacca and back into root.
......@@ -82,19 +60,12 @@ fi
rm -rf /artifacts/*
#only need one zImage
cd /home/chewbacca/vesta-gateway-bsp-master/build/tmp/deploy/images/
#copy vesta-400 files
cp vesta-400/{u-boot-vesta-400.imx,zImage,zImage-vesta-400.dtb} /artifacts
cp vesta-400/{vesta-image-minimal-vesta-400.tar.bz2,vesta-image-developer-vesta-400.tar.bz2} /artifacts
#copy vesta-200 files
cp vesta-200/{u-boot-vesta-200.imx,zImage,zImage-vesta-200.dtb} /artifacts
cp vesta-200/{vesta-image-minimal-vesta-200.tar.bz2,vesta-image-developer-vesta-200.tar.bz2} /artifacts
cd /home/chewbacca/vesta-gateway-bsp-master/build/tmp/deploy/images/vesta-general
#copy vesta-300 files
cp vesta-300/{u-boot-vesta-300.imx,zImage,zImage-vesta-300.dtb} /artifacts
cp vesta-300/{vesta-image-minimal-vesta-300.tar.bz2,vesta-image-developer-vesta-300.tar.bz2} /artifacts
#copy vesta-general files
cp {u-boot.tar.bz2,kernel.tar.bz2} /artifacts
cp vesta-image-developer-vesta-general.tar.gz /artifacts
cp vesta-image-minimal-vesta-general.tar.gz /artifacts
chmod 777 /artifacts
chmod 777 /artifacts/*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment