blob: cea6f9c01430c670313a115caeebd8e9dbe667d7 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
#!/bin/bash
set -ex
export parent_workspace="/mnt/ci_build/workspace/linux-linaro-tracking-ll"
export reference_git="${parent_workspace}/reference-git"
trap cleanup_exit INT TERM EXIT
cleanup_exit()
{
cd ${WORKSPACE}
rm -rf lci-build-tools
rm -rf builddir*
}
test -d ${reference_git} || git clone --depth 1 -b linux-linaro git://git.linaro.org/kernel/linux-linaro-tracking.git ${reference_git}
cp -a ${reference_git}/* ${reference_git}/.git* .
export use_config_fragment=1
export MAKE_DTBS=true
export git_web_url="https://git.linaro.org/gitweb?p=kernel/linux-linaro-tracking.git;a=shortlog;h=refs/heads/linux-linaro"
export toolchain_url="http://releases.linaro.org/13.12/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.8-2013.12_linux.tar.xz"
case "${hwpack}" in
arndale)
export hwpack_type="arndale"
export board_types="arndale"
export kernel_flavour="arndale"
export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/kvm-host.conf linaro/configs/xen.conf linaro/configs/arndale.conf linaro/configs/lt-arndale.conf"
;;
arndale-be)
export hwpack_type="arndale"
export board_types="arndale"
export kernel_flavour="arndale"
export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/kvm-host.conf linaro/configs/xen.conf linaro/configs/arndale.conf linaro/configs/lt-arndale.conf linaro/configs/bigendian.conf"
;;
arndale-octa)
export hwpack_type="arndale-octa"
export board_types="arndale-octa"
export kernel_flavour="arndale-octa"
export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/arndale_octa.conf linaro/configs/lt-arndale_octa.conf"
;;
arndale-uprobes)
export hwpack_type="arndale"
export board_types="arndale"
export kernel_flavour="arndale"
export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/kvm-host.conf linaro/configs/xen.conf linaro/configs/uprobes.conf linaro/configs/arndale.conf linaro/configs/lt-arndale.conf"
;;
beaglebone)
export hwpack_type="beaglebone"
export board_types="beaglebone-black"
export kernel_flavour="am335x"
export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/multi_v7.conf linaro/configs/beaglebone.conf"
;;
beaglebone-uprobes)
export hwpack_type="beaglebone"
export board_types="beaglebone-black"
export kernel_flavour="am335x"
export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/uprobes.conf linaro/configs/multi_v7.conf linaro/configs/beaglebone.conf"
;;
highbank)
export hwpack_type="highbank"
export board_types="highbank"
export kernel_flavour="highbank"
export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/highbank.conf"
;;
midway)
export hwpack_type="midway"
export board_types="midway"
export kernel_flavour="midway"
export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/linaro-base64.conf linaro/configs/distribution.conf linaro/configs/kvm-host.conf linaro/configs/xen.conf linaro/configs/highbank.conf"
;;
origen)
export hwpack_type="origen"
export board_types="origen"
export kernel_flavour="origen"
export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/origen.conf"
;;
panda)
export hwpack_type="panda"
export board_types="panda,panda-es"
export kernel_flavour="omap"
export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/omap2plus.conf linaro/configs/panda.conf"
;;
panda-be)
export hwpack_type="panda"
export board_types="panda"
export kernel_flavour="omap"
export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/bigendian.conf linaro/configs/omap2plus.conf linaro/configs/panda.conf"
;;
snowball)
export hwpack_type="snowball"
export board_types="snowball_sd"
export kernel_flavour="u8500"
export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/u8500.conf"
export SKIP_LICENSE=1
;;
vexpress)
export hwpack_type="vexpress"
export board_types="vexpress-a9,vexpress-a5,vexpress-tc2,rtsm_ve-a15x1-a7x1,rtsm_ve-a15x4-a7x4"
export kernel_flavour="vexpress"
export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/distribution.conf linaro/configs/kvm-guest.conf linaro/configs/xen.conf linaro/configs/big-LITTLE-IKS.conf linaro/configs/vexpress.conf"
export lava_test_plan="ltp:9600,pwrmgmt"
;;
vexpress64)
export hwpack_type="vexpress64"
export board_types="rtsm_foundation-armv8"
export kernel_flavour="vexpress64"
export conf_filenames="linaro/configs/linaro-base.conf linaro/configs/linaro-base64.conf linaro/configs/distribution.conf linaro/configs/kvm-guest.conf linaro/configs/kvm-host.conf linaro/configs/vexpress64.conf"
export ARCH=arm64
export toolchain_url="http://releases.linaro.org/13.12/components/toolchain/binaries/gcc-linaro-aarch64-linux-gnu-4.8-2013.12_linux.tar.xz"
;;
esac
bzr branch lp:linaro-ci lci-build-tools
bash -x lci-build-tools/jenkins_kernel_build_inst
cp -a builddir-*-${kernel_flavour}/.config kernel_config_${hwpack}
# -----
lmc_dev="fastmodel"
# Get rootfs
rm -f linaro-saucy-nano*.tar.gz
export ROOTFS_BUILD_NUMBER="54"
export ROOTFS_BUILD_TIMESTAMP="20140222"
export ROOTFS_BUILD_URL="http://snapshots.linaro.org/ubuntu/images/nano-arm64/${ROOTFS_BUILD_NUMBER}/linaro-saucy-nano-${ROOTFS_BUILD_TIMESTAMP}-${ROOTFS_BUILD_NUMBER}.tar.gz"
wget --progress=dot -e dotbytes=2M ${ROOTFS_BUILD_URL}
# Create pre-built image(s)
linaro-media-create --dev ${lmc_dev} --output-directory ${WORKSPACE} --image-file ${hwpack}-ll.img --image-size 3G --binary linaro-saucy-nano-${ROOTFS_BUILD_TIMESTAMP}-${ROOTFS_BUILD_NUMBER}.tar.gz --hwpack hwpack_linaro-${hwpack}*.tar.gz --hwpack-force
# Compress image(s)
gzip -9 ${hwpack}-ll.img
echo "HWPACK_JOB_NAME=${JOB_NAME}" > post_build_lava_parameters
echo "HWPACK_BUILD_NUMBER=${BUILD_NUMBER}" >> post_build_lava_parameters
echo "HWPACK_FILE_NAME=`ls hwpack_linaro-${hwpack}*.tar.gz`" >> post_build_lava_parameters
echo "IMAGE_URL=https://snapshots.linaro.org/kernel-hwpack/linux-linaro-tracking-img-${hwpack}/${BUILD_NUMBER}/${hwpack}-ll.img.gz" >> post_build_lava_parameters
echo "BUNDLE_STREAM_NAME=/anonymous/andrey-konovalov/" >> post_build_lava_parameters
case "${hwpack}" in
arndale|arndale-octa|highbank|midway|origen|panda)
echo "DEVICE_TYPE=${hwpack}" >> post_build_lava_parameters
;;
beaglebone)
echo "DEVICE_TYPE=beaglebone-black" >> post_build_lava_parameters
;;
snowball)
echo "DEVICE_TYPE=snowball_sd" >> post_build_lava_parameters
;;
vexpress)
echo "DEVICE_TYPE=vexpress-a9" >> post_build_lava_parameters
;;
vexpress64)
echo "DEVICE_TYPE=rtsm_foundation-armv8" >> post_build_lava_parameters
;;
arndale-be|arndale-uprobes|beaglebone-uprobes|panda-be)
echo "Skip DEVICE_TYPE for ${hwpack}"
;;
esac
cat << EOF > BUILD-INFO.txt
Format-Version: 0.5
Files-Pattern: *
License-Type: open
EOF
|