diff options
author | Igor Opaniuk <igor.opaniuk@linaro.org> | 2017-05-14 21:10:57 +0300 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2017-05-17 07:56:45 +0300 |
commit | d5beb809587653f80c1e368fcf80976550e726e7 (patch) | |
tree | 630fbd4afe2f03c962ea392bed6c998757d96750 /optee | |
parent | 7a3f2564c42caa87e6a12d7162f9b08d76c51303 (diff) |
optee-build: use a matrix job instead of freestyle
Change-Id: I7c089a70aa8916a808acf4519c0adbbf11dc5415
Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
Diffstat (limited to 'optee')
-rwxr-xr-x | optee/build/builders.sh | 28 |
1 files changed, 12 insertions, 16 deletions
diff --git a/optee/build/builders.sh b/optee/build/builders.sh index de78289d..3004c24b 100755 --- a/optee/build/builders.sh +++ b/optee/build/builders.sh @@ -43,23 +43,19 @@ mkdir -p ${HOME}/bin curl https://storage.googleapis.com/git-repo-downloads/repo > ${HOME}/bin/repo && chmod a+x ${HOME}/bin/repo export PATH=${HOME}/bin:${PATH} -supported_platforms="default fvp hikey juno mt8173-evb qemu_v8 rpi3" -for repo_proj in ${supported_platforms}; do - echo "INFO: Building OP-TEE for ${repo_proj}" +echo "INFO: Building OP-TEE for ${repo_proj}" +mkdir -p ${JENKINS_WORKSPACE}/${repo_proj} - mkdir -p ${JENKINS_WORKSPACE}/${repo_proj} - - if [ "${repo_proj}" == "fvp" ]; then - mkdir -p ${JENKINS_WORKSPACE}/${repo_proj}/Foundation_Platformpkg - fi +if [ "${repo_proj}" == "fvp" ]; then + mkdir -p ${JENKINS_WORKSPACE}/${repo_proj}/Foundation_Platformpkg +fi - (cd ${JENKINS_WORKSPACE}/${repo_proj} && repo init -u https://github.com/OP-TEE/manifest.git -m ${repo_proj}.xml < /dev/null && repo sync --no-clone-bundle --no-tags --quiet -j$(nproc)) +(cd ${JENKINS_WORKSPACE}/${repo_proj} && repo init -u https://github.com/OP-TEE/manifest.git -m ${repo_proj}.xml < /dev/null && repo sync --no-clone-bundle --no-tags --quiet -j$(nproc)) - # Fetch a local copy of dtc+libfdt to avoid issues with a possibly outdated libfdt-dev - # DTC (libfdt) version >= 1.4.2 is required - if [ "${repo_proj}" == "qemu_v8" ]; then - (cd ${JENKINS_WORKSPACE}/${repo_proj}/qemu && git submodule update --init dtc) - fi +# Fetch a local copy of dtc+libfdt to avoid issues with a possibly outdated libfdt-dev +# DTC (libfdt) version >= 1.4.2 is required +if [ "${repo_proj}" == "qemu_v8" ]; then + (cd ${JENKINS_WORKSPACE}/${repo_proj}/qemu && git submodule update --init dtc) +fi - (cd ${JENKINS_WORKSPACE}/${repo_proj}/build && ${make} -f toolchain.mk toolchains && ${make} all) -done +(cd ${JENKINS_WORKSPACE}/${repo_proj}/build && ${make} -f toolchain.mk toolchains && ${make} all) |