diff options
author | Roland Hieber <rhi@pengutronix.de> | 2023-10-10 11:10:28 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2023-10-20 12:53:03 +0200 |
commit | e80af0dcfddf230823fd3628d9a0834b5599f881 (patch) | |
tree | aa912c38f3f86adeb269bd7e26c2133b28fe0e9d /configs/platform-mips/run | |
parent | a8fa2344dc9cb542b57f31fc62ddb7725fbe1f80 (diff) | |
download | DistroKit-e80af0dcfddf230823fd3628d9a0834b5599f881.tar.gz DistroKit-e80af0dcfddf230823fd3628d9a0834b5599f881.tar.xz |
qemu-run: don't evaluate selected_platformconfig
Even when a selected_platformconfig symlink exists, ptxdist can still be
used with the --platformconfig=... option to override the platformconfig
during the build. In this case, running the qemu script will search in
the wrong build folder for the images.
Don't use the selected_platformconfig link to find out the platform,
instead determine it from the path of the qemu script itself.
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
Link: https://lore.pengutronix.de/distrokit/20231010091028.3444582-1-rhi@pengutronix.de
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
Diffstat (limited to 'configs/platform-mips/run')
-rwxr-xr-x | configs/platform-mips/run | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/configs/platform-mips/run b/configs/platform-mips/run index e41f012..6d6fca6 100755 --- a/configs/platform-mips/run +++ b/configs/platform-mips/run @@ -1,17 +1,12 @@ #!/bin/bash -platformconfig=selected_platformconfig -# fallback to platformconfig in the same dir as this script -if [ ! -e "$platformconfig" ]; then - platformconfig=$(dirname $0)/platformconfig -fi +platformconfig=$(dirname $0)/platformconfig # # we need information about the platform # if [ ! -e "$platformconfig" ]; then - echo "error: selected_platformconfig does not exist" - echo " please use 'ptxdist platform ...' or 'ptxdist --platformconfig=...'" + echo "error: ${platformconfig} does not exist" exit 1 fi |