Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
gitlab-ci
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Clea OS
infrastructure
gitlab-ci
Commits
c4aeb6d5
Commit
c4aeb6d5
authored
7 months ago
by
Oleksii Kutuzov
Browse files
Options
Downloads
Patches
Plain Diff
test: integration
parent
53ac2c72
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build-qualcomm-firmware.yml.jinja2
+106
-0
106 additions, 0 deletions
build-qualcomm-firmware.yml.jinja2
manifest-integration.yml
+13
-4
13 additions, 4 deletions
manifest-integration.yml
with
119 additions
and
4 deletions
build-qualcomm-firmware.yml.jinja2
0 → 100644
+
106
−
0
View file @
c4aeb6d5
---
# --------------------------------------------------------------------------------------
# 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
This diff is collapsed.
Click to expand it.
manifest-integration.yml
+
13
−
4
View file @
c4aeb6d5
...
@@ -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
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment