blob: 237931187db69a8ea5d77c965c2192ce7efe83dc (
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
|
- job:
name: 96boards-hikey-uefi
project-type: freestyle
defaults: global
logrotate:
daysToKeep: 30
numToKeep: 30
properties:
- authorization:
anonymous:
- job-read
- job-extended-read
- job-workspace
parameters:
- password:
name: PUBLISH_KEY
default: ${PUBLISH_KEY}
disabled: false
node: docker-utopic
display-name: '96boards - HiKey UEFI'
scm:
- git:
url: https://github.com/96boards/edk2.git
refspec: +refs/heads/hikey:refs/remotes/origin/hikey
name: origin
branches:
- refs/heads/hikey
basedir: linaro-edk2
skip-tag: true
shallow-clone: true
clean: true
wipe-workspace: false
wrappers:
- timestamps
- copy-to-slave:
includes:
- gcc-linaro-aarch64-linux-gnu-4.8-2014.04_linux.tar.xz
- build-name:
name: '#${BUILD_NUMBER}-${GIT_REVISION,length=8}'
builders:
- shell: |
#!/bin/bash
set -ex
trap cleanup_exit INT TERM EXIT
cleanup_exit()
{
cd ${WORKSPACE}
rm -rf arm64-tc
rm -rf arm-trusted-firmware
rm -rf uefi-tools
rm -rf l-loader
rm -rf out
}
sudo apt-get install -y python-pycurl
# Install custom toolchain
mkdir arm64-tc
tar --strip-components=1 -C ${WORKSPACE}/arm64-tc -xf gcc-linaro-aarch64-linux-gnu-4.8-*_linux.tar.xz
export PATH="${WORKSPACE}/arm64-tc/bin:$PATH"
# Check out arm-trusted-firmware
git clone -b hikey --depth 1 https://github.com/96boards/arm-trusted-firmware.git
git clone git://git.linaro.org/uefi/uefi-tools.git
export AARCH64_TOOLCHAIN=GCC48
export EDK2_DIR=${WORKSPACE}/linaro-edk2
export UEFI_TOOLS_DIR=${WORKSPACE}/uefi-tools
export JENKINS_WORKSPACE=${WORKSPACE}
unset WORKSPACE
cd ${EDK2_DIR}
${UEFI_TOOLS_DIR}/uefi-build.sh -b RELEASE -a ../arm-trusted-firmware hikey
unset WORKSPACE
export WORKSPACE=${JENKINS_WORKSPACE}
cd ${WORKSPACE}
mkdir out
cp -a ${EDK2_DIR}/Build/HiKey/RELEASE_GCC48/FV/*.bin out/
cp -a ${EDK2_DIR}/Build/HiKey/RELEASE_GCC48/FV/*.fd out/
cp -a ${EDK2_DIR}/Build/HiKey/RELEASE_GCC48/AARCH64/AndroidFastbootApp.efi out/
git clone -b hikey-v0.2.2 --depth 1 https://github.com/96boards/l-loader.git
cd l-loader
ln -s ${WORKSPACE}/out/bl1.bin
# XXX sgdisk usage requires sudo
sed -i "s|^\tsh|\tsudo bash -x|" Makefile
make
cp -a l-loader.bin ptable.img ${WORKSPACE}/out/
cd ${WORKSPACE}
# Publish
test -d ${HOME}/bin || mkdir ${HOME}/bin
wget https://git.linaro.org/ci/publishing-api.git/blob_plain/HEAD:/linaro-cp.py -O ${HOME}/bin/linaro-cp.py
python ${HOME}/bin/linaro-cp.py --server http://builds.96boards.org/ out snapshots/hikey/uefi/${BUILD_NUMBER}
publishers:
- email:
recipients: 'fathi.boudra@linaro.org'
|