Jenkinsfile_mmcImages: Fix building of vcu images with wrong env

The vcu image has its one environment because it has its own
distribution.
This commit is contained in:
Alexandre Bard 2021-12-03 17:49:55 +01:00
parent f8f47c11fb
commit e05c9765f0
1 changed files with 6 additions and 1 deletions

View File

@ -169,7 +169,12 @@ def build(imgType) {
def tgtImgType = "${imgType}" == "bootloader" ? "dev" : "${imgType}"
tgtImgType = "${tgtImgType}" == "release" ? "" : "${tgtImgType}"
def imgTypePostfix = "${tgtImgType}" == "" ? "" : "-${tgtImgType}"
sh "bash -c '. ./env.image-ostree > /dev/null && bitbake -q -k netmodule-linux-image${imgTypePostfix}'"
def distroPostfix = "ostree"
if (tgtImgType == "vcu")
distroPostfix = "vcu"
sh "bash -c '. ./env.image-${distroPostfix} > /dev/null && bitbake -q -k netmodule-linux-image${imgTypePostfix}'"
}
}