mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
dist/tools/esptools: move test for libncurses version to qemu handling
Since macOS doesn't have `ldconfig` command, it must not be used outside the `install_qemu` and `export_qemu` function.
This commit is contained in:
parent
8626d096bc
commit
b148de8f1a
22
dist/tools/esptools/export.sh
vendored
22
dist/tools/esptools/export.sh
vendored
@ -5,17 +5,6 @@ ESP32_GCC_VERSION_DIR="8.4.0"
|
||||
|
||||
ESP32_OPENOCD_VERSION="v0.11.0-esp32-20211220"
|
||||
|
||||
# qemu version depends on the version of ncurses lib
|
||||
if [ "$(ldconfig -p | grep libncursesw.so.6)" != "" ]; then
|
||||
ESP32_QEMU_VERSION="esp-develop-20220203"
|
||||
else
|
||||
ESP32_QEMU_VERSION="esp-develop-20210220"
|
||||
fi
|
||||
|
||||
if [ -z ${IDF_TOOLS_PATH} ]; then
|
||||
IDF_TOOLS_PATH=${HOME}/.espressif
|
||||
fi
|
||||
|
||||
TOOLS_PATH=${IDF_TOOLS_PATH}/tools
|
||||
|
||||
export_arch()
|
||||
@ -61,6 +50,17 @@ export_openocd()
|
||||
|
||||
export_qemu()
|
||||
{
|
||||
# qemu version depends on the version of ncurses lib
|
||||
if [ "$(ldconfig -p | grep libncursesw.so.6)" != "" ]; then
|
||||
ESP32_QEMU_VERSION="esp-develop-20220203"
|
||||
else
|
||||
ESP32_QEMU_VERSION="esp-develop-20210220"
|
||||
fi
|
||||
|
||||
if [ -z ${IDF_TOOLS_PATH} ]; then
|
||||
IDF_TOOLS_PATH=${HOME}/.espressif
|
||||
fi
|
||||
|
||||
TOOLS_DIR=${TOOLS_PATH}/qemu-esp32/${ESP32_QEMU_VERSION}/qemu
|
||||
TOOLS_DIR_IN_PATH=`echo $PATH | grep ${TOOLS_DIR}`
|
||||
|
||||
|
14
dist/tools/esptools/install.sh
vendored
14
dist/tools/esptools/install.sh
vendored
@ -7,13 +7,6 @@ ESP32_GCC_VERSION_DOWNLOAD="gcc8_4_0"
|
||||
ESP32_OPENOCD_VERSION="v0.11.0-esp32-20211220"
|
||||
ESP32_OPENOCD_VERSION_TGZ="0.11.0-esp32-20211220"
|
||||
|
||||
# qemu version depends on the version of ncurses lib
|
||||
if [ "$(ldconfig -p | grep libncursesw.so.6)" != "" ]; then
|
||||
ESP32_QEMU_VERSION="esp-develop-20220203"
|
||||
else
|
||||
ESP32_QEMU_VERSION="esp-develop-20210220"
|
||||
fi
|
||||
|
||||
# set the tool path to the default if not already set
|
||||
if [ -z ${IDF_TOOLS_PATH} ]; then
|
||||
IDF_TOOLS_PATH=${HOME}/.espressif
|
||||
@ -135,6 +128,13 @@ install_qemu()
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# qemu version depends on the version of ncurses lib
|
||||
if [ "$(ldconfig -p | grep libncursesw.so.6)" != "" ]; then
|
||||
ESP32_QEMU_VERSION="esp-develop-20220203"
|
||||
else
|
||||
ESP32_QEMU_VERSION="esp-develop-20210220"
|
||||
fi
|
||||
|
||||
TOOLS_DIR=${TOOLS_PATH}/qemu-esp32/${ESP32_QEMU_VERSION}
|
||||
|
||||
URL_PATH=https://github.com/espressif/qemu/releases/download
|
||||
|
Loading…
Reference in New Issue
Block a user