summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/barebox-mx6.config.diff
diff options
context:
space:
mode:
authorRoland Hieber <rhi@pengutronix.de>2021-04-26 12:07:15 +0200
committerRobert Schwebel <r.schwebel@pengutronix.de>2021-04-26 12:08:51 +0200
commitd975eb8b04087f8606d881d527d02e75f97c6243 (patch)
tree4c92b0f4332310867dbcc405c80cf40b92f8d725 /configs/platform-v7a/barebox-mx6.config.diff
parent55e2a6b1cf7ee69819d9f8388d2eba35fc077c2a (diff)
downloadDistroKit-d975eb8b04087f8606d881d527d02e75f97c6243.tar.gz
DistroKit-d975eb8b04087f8606d881d527d02e75f97c6243.tar.xz
v7a: run: make the SSH forwarding port multiprocess-compatible
When multiple ./configs/platform-v7a/run scripts are run at the same time, the first qemu process will open port 4445, and following runs will fail. To prevent that, first look at the environment variable QEMU_SSH_PORT to determine the port to be used (so that users can set this in their shell to keep the port constant), or fall back to a port between 1025 and 65025 based on the shell's PID, which should have a good chance of choosing an unused, but stable port. Also print the port forwarding before starting qemu, so we don't have to bother about grepping the process list. Signed-off-by: Roland Hieber <rhi@pengutronix.de> Link: https://lore.pengutronix.de/20210426100714.10944-1-rhi@pengutronix.de Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs/platform-v7a/barebox-mx6.config.diff')
0 files changed, 0 insertions, 0 deletions