card-helpers.inc: Don't ask bitbake for BITBAKE_TMPDIR if BITBAKE_TMPDIR is set

We need this when running bitbake in container

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2022-03-29 10:48:59 +02:00
parent f34eb509b1
commit 7a3b2d6fb6

View File

@@ -98,8 +98,10 @@ SelectCardDevice() {
# DeployFileDir: Path of the file selected
SelectDeployedFile() {
if [ -z "$DeployedFile" ]; then
GetBitbakeEnvVar "TMPDIR"
BITBAKE_TMPDIR="$BitbakeEnvVar"
if [ -z "$BITBAKE_TMPDIR" ]; then
GetBitbakeEnvVar "TMPDIR"
BITBAKE_TMPDIR="$BitbakeEnvVar"
fi
# bitbake environment found?
if [ -z "$BITBAKE_TMPDIR" ]; then
ErrorOut "Bitbake environment variable TMPDIR not found!"