Skip to content
Snippets Groups Projects
Commit e46a8e54 authored by Lorenzo Pagliai's avatar Lorenzo Pagliai
Browse files

[MEDIATEK] Add support to Mediatek repositories in CICD

* Add support to build on BSP integration branches
* Add dedicated sstate-cache folder support
* Add repositories support in scripts and configuration files for
  changelog creation
parent b5689acc
No related branches found
No related tags found
No related merge requests found
......@@ -25,12 +25,15 @@ variables:
edgehog/bsp/rockchip/u-boot-seco-rk
edgehog/bsp/rockchip/tools/rk-tools
edgehog/bsp/rockchip/tools/rkbin
edgehog/bsp/mediatek/linux-seco-mtk
edgehog/bsp/mediatek/u-boot-seco-mtk
edgehog/tools/menuconfig
edgehog/tools/seco-eeprom-manager
edgehog/seco-base
edgehog/firmware/tools/STM_D23_Tester
edgehog/layers/seco/meta-seco-imx
edgehog/layers/seco/meta-seco-rk
edgehog/layers/seco/meta-seco-mtk
edgehog/layers/seco/meta-seco-intel
edgehog/layers/seco/meta-seco-edgehog-things
edgehog/layers/seco/meta-seco-edgehog-embedded
......
......@@ -11,7 +11,7 @@ git config --global url.https://gitlab-ci-token:${GITBOT_TOKEN}@git.seco.com/.in
repo init --submodules -u ${CI_REPOSITORY_URL} -b ${BUILD_BRANCH} --
repo sync -j$(nproc) --fetch-submodules --no-clone-bundle
RECIPES="u-boot-seco-rk linux-seco-rk u-boot-seco-imx linux-seco-imx imx-mkimage"
RECIPES="u-boot-seco-rk linux-seco-rk u-boot-seco-imx linux-seco-imx imx-mkimage u-boot-seco-mtk linux-seco-mtk"
for str in $RECIPES; do
if echo "$BUILD_BRANCH" | grep -q "$str"; then
filename=$(find layers/meta-seco-imx layers/meta-seco-rk -name "*$str*" -type f -exec grep -l "SRCBRANCH = " {} \;)
......
......@@ -167,7 +167,7 @@ class Release:
# Ignore automated merge requests except for those regarding the
# BSP since they can be used to access the original merge request in
# the BSP repository itself
bsp_repo = ["u-boot-seco-imx", "linux-seco-imx", "imx-mkimage", "u-boot-seco-rk", "linux-seco-rk"]
bsp_repo = ["u-boot-seco-imx", "linux-seco-imx", "imx-mkimage", "u-boot-seco-rk", "linux-seco-rk", "u-boot-seco-mtk", "linux-seco-mtk"]
if m.mr.author["username"] == "gitbot":
if not any(el in m.mr.title for el in bsp_repo):
return False
......
......@@ -22,7 +22,7 @@ def get_integration_sources(manifest_project: str, manifest_branch: str, group:
)
# Regex to check INTEGRATION variable against (include also layers integration)
architecture = ["imx", "rk"]
architecture = ["imx", "rk", "mtk"]
regex = [f":{manifest_project}:{manifest_branch}$"]
manifest_subgroup = '/'.join(manifest_project.split('/')[:-1])
for arch in architecture:
......
......@@ -13,6 +13,8 @@ if [ -z "$CUSTOM" ]; then
then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-imx8"' >> conf/local.conf;
elif [[ (($PROCESSOR == *rk* || $PROCESSOR == *px*)) && "$CI_JOB_NAME" != *"embedded"* ]];
then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-rk"' >> conf/local.conf;
elif [[ (($PROCESSOR == *genio*)) && "$CI_JOB_NAME" != *"embedded"* ]];
then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-mtk"' >> conf/local.conf;
# elif [[ $PROCESSOR == *intel* && "$CI_JOB_NAME" != *"embedded"* ]];
# then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-intel"' >> conf/local.conf;
elif [[ $PROCESSOR == *imx6* && "$CI_JOB_NAME" == *"embedded"* ]];
......@@ -21,6 +23,8 @@ if [ -z "$CUSTOM" ]; then
then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-imx8-embedded"' >> conf/local.conf;
elif [[ (($PROCESSOR == *rk* || $PROCESSOR == *px*)) && "$CI_JOB_NAME" == *"embedded"* ]];
then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-rk-embedded"' >> conf/local.conf;
elif [[ (($PROCESSOR == *genio*)) && "$CI_JOB_NAME" == *"embedded"* ]];
then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-mtk-embedded"' >> conf/local.conf;
# elif [[ $PROCESSOR == *intel* && "$CI_JOB_NAME" == *"embedded"* ]];
# then echo 'SSTATE_DIR = "/var/cache/edgehog_sstate-intel-embedded"' >> conf/local.conf;
fi
......
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