Vishal Bhoj | ab42f25 | 2018-05-01 07:22:35 +0530 | [diff] [blame] | 1 | - job: |
| 2 | name: android-imx8m |
| 3 | project-type: freestyle |
| 4 | defaults: global |
Vishal Bhoj | ab42f25 | 2018-05-01 07:22:35 +0530 | [diff] [blame] | 5 | properties: |
| 6 | - authorization: |
| 7 | anonymous: |
| 8 | - job-read |
| 9 | - job-extended-read |
Benjamin Copeland | 9dc2eb8 | 2022-10-11 12:40:33 +0100 | [diff] [blame] | 10 | everyone-flat: |
Vishal Bhoj | ab42f25 | 2018-05-01 07:22:35 +0530 | [diff] [blame] | 11 | - job-build |
| 12 | - job-cancel |
Fathi Boudra | 2ccbfab | 2018-05-01 09:07:32 +0300 | [diff] [blame] | 13 | - build-discarder: |
| 14 | days-to-keep: 60 |
| 15 | num-to-keep: 60 |
Vishal Bhoj | ab42f25 | 2018-05-01 07:22:35 +0530 | [diff] [blame] | 16 | parameters: |
| 17 | disabled: false |
| 18 | node: docker-xenial-aosp |
Fathi Boudra | 2ccbfab | 2018-05-01 09:07:32 +0300 | [diff] [blame] | 19 | display-name: 'NXP i.MX 8M Android build' |
Vishal Bhoj | ab42f25 | 2018-05-01 07:22:35 +0530 | [diff] [blame] | 20 | concurrent: true |
| 21 | wrappers: |
| 22 | - timestamps |
| 23 | - timeout: |
| 24 | timeout: 500 |
| 25 | builders: |
| 26 | - shell: | |
Vishal Bhoj | d80f910 | 2018-05-01 18:47:50 +0530 | [diff] [blame] | 27 | #!/bin/bash |
Vishal Bhoj | ab42f25 | 2018-05-01 07:22:35 +0530 | [diff] [blame] | 28 | |
| 29 | export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8 |
Fathi Boudra | 2ccbfab | 2018-05-01 09:07:32 +0300 | [diff] [blame] | 30 | export JENKINS_WORKSPACE=${WORKSPACE} |
Vishal Bhoj | ab42f25 | 2018-05-01 07:22:35 +0530 | [diff] [blame] | 31 | |
| 32 | java -version |
| 33 | |
Fathi Boudra | 2ccbfab | 2018-05-01 09:07:32 +0300 | [diff] [blame] | 34 | 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 Bhoj | ab42f25 | 2018-05-01 07:22:35 +0530 | [diff] [blame] | 36 | |
| 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 Boudra | 2ccbfab | 2018-05-01 09:07:32 +0300 | [diff] [blame] | 47 | wget -q http://snapshots.linaro.org/android/binaries/imx8m/imx-o8.1.0_1.3.0_8m.tar.gz |
Vishal Bhoj | ab42f25 | 2018-05-01 07:22:35 +0530 | [diff] [blame] | 48 | 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 Bhoj | d80f910 | 2018-05-01 18:47:50 +0530 | [diff] [blame] | 53 | set -e |
Fathi Boudra | 2ccbfab | 2018-05-01 09:07:32 +0300 | [diff] [blame] | 54 | make -j$(nproc) |
Vishal Bhoj | ab42f25 | 2018-05-01 07:22:35 +0530 | [diff] [blame] | 55 | |
Vishal Bhoj | bb200ad | 2018-05-09 10:46:57 +0530 | [diff] [blame] | 56 | cp device/fsl/common/tools/fsl-sdcard-partition.sh out/target/product/evk_8mq/ |
Fathi Boudra | 2ccbfab | 2018-05-01 09:07:32 +0300 | [diff] [blame] | 57 | 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 Bhoj | ab42f25 | 2018-05-01 07:22:35 +0530 | [diff] [blame] | 60 | |
| 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 Bhoj | bb200ad | 2018-05-09 10:46:57 +0530 | [diff] [blame] | 65 | PUB_EXTRA_INC=^[^/]+imx |
Vishal Bhoj | ab42f25 | 2018-05-01 07:22:35 +0530 | [diff] [blame] | 66 | 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 Bhoj | ab42f25 | 2018-05-01 07:22:35 +0530 | [diff] [blame] | 74 | - logparser: |
Fathi Boudra | e86882b | 2019-03-22 14:15:21 +0200 | [diff] [blame] | 75 | parse-rules: '/var/jenkins_home/userContent/android.parse' |
Vishal Bhoj | ab42f25 | 2018-05-01 07:22:35 +0530 | [diff] [blame] | 76 | 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' |