iar-docker-images: install correct IAR binary

Change-Id: I35e63e805f4d000da8cee765e351d2f6213fceaa
Signed-off-by: Arthur She <arthur.she@linaro.org>
diff --git a/jammy-amd64-tf-m-iar-build/Dockerfile b/jammy-amd64-tf-m-iar-build/Dockerfile
index e723799..ca3d9d2 100644
--- a/jammy-amd64-tf-m-iar-build/Dockerfile
+++ b/jammy-amd64-tf-m-iar-build/Dockerfile
@@ -81,6 +81,7 @@
 ARG IAR_LIC_NR=12345678
 ARG IAR_LIC_EMAIL=donttellyou@noemail.com
 ARG IAR_PACKAGE=bxarm-9.40.2.deb
+ENV IAR_PACKAGE=${IAR_PACKAGE}
 
 COPY ${IAR_PACKAGE} /tmp/
 COPY requirements_*.txt /opt/
diff --git a/jammy-amd64-tf-m-iar-build/tf-dependencies.install b/jammy-amd64-tf-m-iar-build/tf-dependencies.install
index 7d06440..9b924a8 100755
--- a/jammy-amd64-tf-m-iar-build/tf-dependencies.install
+++ b/jammy-amd64-tf-m-iar-build/tf-dependencies.install
@@ -51,4 +51,4 @@
 /tmp/armclang-6.21/install_x86_64.sh --no-interactive --i-agree-to-the-contained-eula -d ${ARMCLANG_6_21_DIR}
 
 # Install IAR compiler
-dpkg -i /tmp/bxarm-9.40.2.deb
+dpkg -i ${IAR_PACKAGE}