blob: e54509c03472dd878719cf694d8f655055561ef9 [file] [log] [blame]
Vishal Bhojab42f252018-05-01 07:22:35 +05301- job:
2 name: android-imx8m
3 project-type: freestyle
4 defaults: global
Vishal Bhojab42f252018-05-01 07:22:35 +05305 properties:
6 - authorization:
7 anonymous:
8 - job-read
9 - job-extended-read
Benjamin Copeland9dc2eb82022-10-11 12:40:33 +010010 everyone-flat:
Vishal Bhojab42f252018-05-01 07:22:35 +053011 - job-build
12 - job-cancel
Fathi Boudra2ccbfab2018-05-01 09:07:32 +030013 - build-discarder:
14 days-to-keep: 60
15 num-to-keep: 60
Vishal Bhojab42f252018-05-01 07:22:35 +053016 parameters:
17 disabled: false
18 node: docker-xenial-aosp
Fathi Boudra2ccbfab2018-05-01 09:07:32 +030019 display-name: 'NXP i.MX 8M Android build'
Vishal Bhojab42f252018-05-01 07:22:35 +053020 concurrent: true
21 wrappers:
22 - timestamps
23 - timeout:
24 timeout: 500
25 builders:
26 - shell: |
Vishal Bhojd80f9102018-05-01 18:47:50 +053027 #!/bin/bash
Vishal Bhojab42f252018-05-01 07:22:35 +053028
29 export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
Fathi Boudra2ccbfab2018-05-01 09:07:32 +030030 export JENKINS_WORKSPACE=${WORKSPACE}
Vishal Bhojab42f252018-05-01 07:22:35 +053031
32 java -version
33
Fathi Boudra2ccbfab2018-05-01 09:07:32 +030034 sudo apt-get -q=2 update
35 sudo apt-get -q=2 install -y gcc-4.9-multilib bison git gperf libxml2-utils python-mako zip time python-requests genisoimage patch mtools python-pip pxz zlib1g-dev
Vishal Bhojab42f252018-05-01 07:22:35 +053036
37 wget -q http://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre-headless_8u45-b14-1_amd64.deb \
38 http://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jre_8u45-b14-1_amd64.deb \
39 http://mirrors.kernel.org/ubuntu/pool/universe/o/openjdk-8/openjdk-8-jdk_8u45-b14-1_amd64.deb
40 sudo dpkg -i --force-all *.deb
41
42 mkdir -p ${HOME}/bin ${WORKSPACE}/build/out
43 curl https://storage.googleapis.com/git-repo-downloads/repo > ${HOME}/bin/repo
44 chmod a+x ${HOME}/bin/*
45 export PATH=${HOME}/bin:${PATH}
46
Fathi Boudra2ccbfab2018-05-01 09:07:32 +030047 wget -q http://snapshots.linaro.org/android/binaries/imx8m/imx-o8.1.0_1.3.0_8m.tar.gz
Vishal Bhojab42f252018-05-01 07:22:35 +053048 tar -xvf imx-o8.1.0_1.3.0_8m.tar.gz
49 cd imx-o8.1.0_1.3.0_8m
50 source imx_android_setup.sh
51 source build/envsetup.sh
52 lunch evk_8mq
Vishal Bhojd80f9102018-05-01 18:47:50 +053053 set -e
Fathi Boudra2ccbfab2018-05-01 09:07:32 +030054 make -j$(nproc)
Vishal Bhojab42f252018-05-01 07:22:35 +053055
Vishal Bhojbb200ad2018-05-09 10:46:57 +053056 cp device/fsl/common/tools/fsl-sdcard-partition.sh out/target/product/evk_8mq/
Fathi Boudra2ccbfab2018-05-01 09:07:32 +030057 export WORKSPACE=${JENKINS_WORKSPACE}
58
59 wget -q https://git.linaro.org/ci/job/configs.git/blob_plain/HEAD:/android-imx8m/template.txt -O out/target/product/evk_8mq/BUILD-INFO.txt
Vishal Bhojab42f252018-05-01 07:22:35 +053060
61 # Publish parameters
62 cat << EOF > ${WORKSPACE}/publish_parameters
63 PUB_DEST=android/imx8m/${BUILD_NUMBER}
64 PUB_SRC=${PWD}/out/target/product/evk_8mq/
Vishal Bhojbb200ad2018-05-09 10:46:57 +053065 PUB_EXTRA_INC=^[^/]+imx
Vishal Bhojab42f252018-05-01 07:22:35 +053066 EOF
67 - inject:
68 properties-file: publish_parameters
69 - linaro-publish-token
70 - shell:
71 !include-raw:
72 - android/linaro-publisher.sh
73 publishers:
Vishal Bhojab42f252018-05-01 07:22:35 +053074 - logparser:
Fathi Boudrae86882b2019-03-22 14:15:21 +020075 parse-rules: '/var/jenkins_home/userContent/android.parse'
Vishal Bhojab42f252018-05-01 07:22:35 +053076 unstable-on-warning: false
77 fail-on-error: false
78 - fingerprint:
79 files: 'build/fingerprints/*'
80 - email:
81 recipients: 'vishal.bhoj@linaro.org fathi.boudra@linaro.org'