mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:12:57 +01:00
dist/tools/esptools: qemu-esp32 is only supported on linux-amd64
Since the only platform support by `qemu-esp32` is `linux-amd64`, a platform test is added to the `export_qemu` function.
This commit is contained in:
parent
b148de8f1a
commit
1016eaff4a
16
dist/tools/esptools/export.sh
vendored
16
dist/tools/esptools/export.sh
vendored
@ -50,6 +50,22 @@ export_openocd()
|
||||
|
||||
export_qemu()
|
||||
{
|
||||
# determine the platform using python
|
||||
PLATFORM_SYSTEM=$(python3 -c "import platform; print(platform.system())")
|
||||
PLATFORM_MACHINE=$(python3 -c "import platform; print(platform.machine())")
|
||||
PLATFORM=${PLATFORM_SYSTEM}-${PLATFORM_MACHINE}
|
||||
|
||||
# map different platform names to a unique OS name
|
||||
case ${PLATFORM} in
|
||||
linux-amd64|linux64|Linux-x86_64|FreeBSD-amd64)
|
||||
OS=linux-amd64
|
||||
;;
|
||||
*)
|
||||
echo "error: OS architecture ${PLATFORM} not supported"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# qemu version depends on the version of ncurses lib
|
||||
if [ "$(ldconfig -p | grep libncursesw.so.6)" != "" ]; then
|
||||
ESP32_QEMU_VERSION="esp-develop-20220203"
|
||||
|
Loading…
Reference in New Issue
Block a user