summaryrefslogtreecommitdiff
path: root/kvm-vexpress-host
blob: 98fd1364759a20cac88d20487031ad4014b7c141 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
set -e
LAVA_NAME=${BUILD_URL:-"arndale-kvm-test"}

rm -rf lci-build-tools builddir-* *gz *deb hwpack*
git clone https://git.linaro.org/ci/lci-build-tools.git
cp configs/vexpress_kvm.config arch/arm/configs/vexpress_kvm_defconfig

export MAKE_DTBS="true"
export kernel_config="vexpress_kvm_defconfig"
export make_deb="true"
export board_type='vexpress'
export hwpack_type='vexpress'
export kernel_flavour='vexpress'
export git_reset='no'

# jenkins needs a different directory for build due to git juggling
if [ ! -z ${WORKSPACE} ]
then
    export WORKSPACE=${WORKSPACE}/build
fi
./lci-build-tools/jenkins_kernel_build_inst

#export ROOTFS_BUILD_URL="http://releases.linaro.org/14.05/ubuntu/trusty-images/developer/linaro-trusty-developer-20140522-661.tar.gz"
export ROOTFS_BUILD_URL="http://people.linaro.org/~rikuvoipio/trusty.tgz"

wget -nc --progress=dot -e dotbytes=2M ${ROOTFS_BUILD_URL} -O linaro-trusty-developer.tgz

./linaro-image-tools/linaro-media-create --dev vexpress --output-directory upload-dir-vexpress --image-size 2500M --rootfs ext3 \
  --binary linaro-trusty-developer.tgz --hwpack hwpack_linaro-vexpress_*.tar.gz --hwpack-force

mv upload-dir-vexpress/sd.img vexpress-sd.img
gzip -9 arndale-sd.img

cat << EOF > ../BUILD-INFO.txt
Format-Version: 0.1

Files-Pattern: *
License-Type: open
EOF