From afec76bcbffe0824b0bcff7db70c13f49fc05ca4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Tue, 29 Mar 2022 10:48:59 +0200 Subject: [PATCH] card-helpers.inc: Don't ask bitbake for BITBAKE_TMPDIR if BITBAKE_TMPDIR is set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need this when running bitbake in container Signed-off-by: Andreas Müller --- scripts/include/card-helpers.inc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/include/card-helpers.inc b/scripts/include/card-helpers.inc index d9fc0b0..433f71b 100644 --- a/scripts/include/card-helpers.inc +++ b/scripts/include/card-helpers.inc @@ -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!"