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:
parent
f8f47c11fb
commit
e05c9765f0
|
|
@ -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}'"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue