Skip to content
Snippets Groups Projects
Commit c4aeb6d5 authored by Oleksii Kutuzov's avatar Oleksii Kutuzov
Browse files

test: integration

parent 53ac2c72
No related branches found
No related tags found
No related merge requests found
---
# --------------------------------------------------------------------------------------
# Global
# --------------------------------------------------------------------------------------
include:
- local: common.yml
variables:
SECTOOLS: ${CI_PROJECT_DIR}/QCM6490.LE.1.0/common/sectoolsv2/ext/Linux/sectools
SECTOOLS_DIR: ${CI_PROJECT_DIR}/QCM6490.LE.1.0/common/sectoolsv2/ext/Linux
stages:
- Build
- Package
# --------------------------------------------------------------------------------------
# Stage: Build
# --------------------------------------------------------------------------------------
.build-job:
stage: Build
tags: [yocto_build]
image: ${CI_IMAGE_QCS6490_FW}
variables:
GIT_DEPTH: 1
rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" # Run this job in a Merge Request
- if: $CI_COMMIT_TAG # Run this job when a tag is created
build_cdsp:
extends: .build-job
script:
- cd ${CI_PROJECT_DIR}/CDSP.HT.2.5.c3/cdsp_proc/build/ms
- python ./build_variant.py kodiak.cdsp.prod --clean
- python ./build_variant.py kodiak.cdsp.prod
artifacts:
paths:
- CDSP.HT.2.5.c3/cdsp_proc/build/*
expire_in: 1 day
build_adsp:
extends: .build-job
before_script:
- rm -f ${CI_PROJECT_DIR}/ADSP.HT.5.5.c8/adsp_proc/qsh_api/nanopb-*.tar.gz
- cp /pkg/$NANOPB_PKG ${CI_PROJECT_DIR}/ADSP.HT.5.5.c8/adsp_proc/qsh_api
script:
- cd ${CI_PROJECT_DIR}/ADSP.HT.5.5.c8/adsp_proc/
- python qsh_api/build/config_nanopb_dependency.py -f ${NANOPB_DIR}
- cd ${CI_PROJECT_DIR}/ADSP.HT.5.5.c8/adsp_proc/build/ms
- python ./build_variant.py kodiak.adsp.prod --clean
- python ./build_variant.py kodiak.adsp.prod
artifacts:
paths:
- ADSP.HT.5.5.c8/adsp_proc/build/*
expire_in: 1 day
build_boot:
extends: .build-job
script:
- cd ${CI_PROJECT_DIR}/BOOT.MXF.1.0.c1/
- python -m pip install -r boot_images/boot_tools/dtschema_tools/oss/requirements.txt
- python -u boot_images/boot_tools/buildex.py -t kodiak,QcomToolsPkg -v LAA -r RELEASE --build_flags=cleanall
- python -u boot_images/boot_tools/buildex.py -t kodiak,QcomToolsPkg -v LAA -r RELEASE
artifacts:
paths:
- BOOT.MXF.1.0.c1/*
expire_in: 1 day
build_tz:
extends: .build-job
script:
- cd ${CI_PROJECT_DIR}/TZ.XF.5.0/trustzone_images/build/ms/
- python build_all.py -b TZ.XF.5.0 CHIPSET=kodiak --cfg=build_config_deploy_kodiak.xml
artifacts:
paths:
- TZ.XF.5.0/trustzone_images/build/*
expire_in: 1 day
build_aop:
extends: .build-job
script:
- cd ${CI_PROJECT_DIR}/AOP.HO.3.6/aop_proc/build/
- ./build_kodiak.sh -l /pkg/qct/software/llvm/release/arm/14.0.4/
artifacts:
paths:
- AOP.HO.3.6/aop_proc/build/*
expire_in: 1 day
# --------------------------------------------------------------------------------------
# Stage: Package
# --------------------------------------------------------------------------------------
generate_prebuilts:
extends: .build-job
stage: Package
needs: [build_cdsp, build_adsp, build_boot, build_tz, build_aop]
dependencies: [build_cdsp, build_adsp, build_boot, build_tz, build_aop]
script:
- cd ${CI_PROJECT_DIR}/QCM6490.LE.1.0/common/build
- python build.py --imf
artifacts:
expose_as: 'FW Prebuilts'
paths:
- QCM6490.LE.1.0/common/build/ufs/bin/QCM6490_bootbinaries.zip
- QCM6490.LE.1.0/common/build/ufs/bin/QCM6490_dspso.zip
- QCM6490.LE.1.0/common/build/ufs/bin/QCM6490_fw.zip
expire_in: 1 week
...@@ -70,10 +70,19 @@ generate-pipelines: ...@@ -70,10 +70,19 @@ generate-pipelines:
# The Jinja2 render script implicitly passes the OS environment to the template, so # The Jinja2 render script implicitly passes the OS environment to the template, so
# that the template has access to all GitLab CI variables. Hence there is no need # that the template has access to all GitLab CI variables. Hence there is no need
# to explicitly pass any of them as command line arguments. # to explicitly pass any of them as command line arguments.
- .gitlab-ci/scripts/render_jinja2_template.py - echo "$CI_PROJECT_PATH"
--template=.gitlab-ci/manifest-integration-pipelines.yml.jinja2 - |
--format=yaml if [ "$CI_PROJECT_PATH" == "clea-os/bsp/qualcomm/qualcomm-linux-spf-1-0_ap_standard_oem_nomodem" ]; then
> manifest-integration-pipelines.yml .gitlab-ci/scripts/render_jinja2_template.py \
--template=.gitlab-ci/build-qualcomm-firmware.yml.jinja2 \
--format=yaml \
> manifest-integration-pipelines.yml
else
.gitlab-ci/scripts/render_jinja2_template.py \
--template=.gitlab-ci/manifest-integration-pipelines.yml.jinja2 \
--format=yaml \
> manifest-integration-pipelines.yml
fi
artifacts: artifacts:
expire_in: 4 weeks expire_in: 4 weeks
paths: paths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment