card-helpers.inc: rename _TMPDIR to BITBAKE_TMPDIR

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
This commit is contained in:
Andreas Müller
2022-03-29 09:45:45 +02:00
parent 2fb64d8ea2
commit f34eb509b1

View File

@@ -99,12 +99,12 @@ SelectCardDevice() {
SelectDeployedFile() {
if [ -z "$DeployedFile" ]; then
GetBitbakeEnvVar "TMPDIR"
_TMPDIR="$BitbakeEnvVar"
BITBAKE_TMPDIR="$BitbakeEnvVar"
# bitbake environment found?
if [ -z "$_TMPDIR" ]; then
if [ -z "$BITBAKE_TMPDIR" ]; then
ErrorOut "Bitbake environment variable TMPDIR not found!"
fi
DeployPath=${_TMPDIR}/deploy/images/${Machine}
DeployPath=${BITBAKE_TMPDIR}/deploy/images/${Machine}
if [ ! -e ${DeployPath} ]; then
echo "${style_yellow}${style_bold}DeployPath: ${DeployPath}${style_normal}"
ErrorOut "Deploy path for ${Machine} not found! Wrong script started?"