eclair-tf-m: Image for TF-M ECLAIR analysis
A copy of eclair-linaro with base image adjusted.
eclair-tf-m: Copy ECLAIR binary from eclair-linaro job
Where it's being put by tuxput bucket already. Apparently, doesn't make
to duplicate it on the bucket level, better to make such a copy.
Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
Change-Id: Ic38294a65229a5456fae5a3f3aea38de8e6edcd9
diff --git a/eclair-tf-m/bin/xdg-open b/eclair-tf-m/bin/xdg-open
new file mode 100755
index 0000000..caa62e9
--- /dev/null
+++ b/eclair-tf-m/bin/xdg-open
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+url=$1
+
+case "${url}" in
+ http://*|https://*)
+ ;;
+ file:*)
+ ;;
+ *)
+ url=file:${url}
+ ;;
+esac
+
+case "${url}" in
+ http://*|https://*)
+ if [ -n "${BROWSER}" ]
+ then
+ echo "Opening ${url}"
+ "${BROWSER}" "${url}"
+ exit 0
+ fi
+ url=${url/:1947/:${HASPLM_PORT}}
+ url=${url/:3786/:${ECLAIR_PORT}}
+ ;;
+ file:*)
+ url=${url/file:${DOCK_DIR}/file:${HOST_DIR//\\//}}
+ ;;
+esac
+
+echo "Opening ${url}"
+echo "${url}" | socat stdin "tcp:host.docker.internal:${XDG_PORT}" ||
+ echo "WARNING: xdg-open-server is not running: ${url}"