blob: cffcf1c9979b4dc8a8c6e44e0036c172e98979bc (
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
42
43
44
45
46
47
48
49
50
51
|
#!/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
export MAKE_DTBS="true"
export kernel_config="arndale_kvm_defconfig"
export make_deb="true"
export board_type='arndale'
export hwpack_type='arndale'
export kernel_flavour='arndale'
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 arndale --output-directory upload-dir-arndale --image-size 2500M --rootfs ext3 \
--binary linaro-trusty-developer.tgz --hwpack hwpack_linaro-arndale_*.tar.gz --hwpack-force
mv upload-dir-arndale/sd.img arndale-sd.img
gzip -9 arndale-sd.img
cat <<EOF > post_build_lava_parameters_arndale
HWPACK_JOB_NAME=linux-kvm-arm/hwpack=arndale
HWPACK_BUILD_NUMBER=${BUILD_NUMBER}
HWPACK_FILE_NAME=`ls hwpack_linaro-arndale*.tar.gz`
DEVICE_TYPE=arndale
IMAGE_URL=https://snapshots.linaro.org/ubuntu/images/arndale-kvm/${BUILD_NUMBER}/arndale-sd.img.gz
LAVA_TEST_PLAN=kvm
GIT_REPO=git://git.linaro.org/qa/test-definitions.git
BUNDLE_STREAM_NAME=/private/team/linaro/virtualization/
EOF
cat << EOF > BUILD-INFO.txt
Format-Version: 0.1
Files-Pattern: *
License-Type: open
EOF
|