Skip to content

Commit dee58a6

Browse files
author
Chris Warren-Smith
committed
TEENSY: add checks for arm build tools
1 parent f49e0ac commit dee58a6

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

configure.ac

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,17 @@ function buildTEENSY() {
392392
if test "${have_xxd}" = "no" ; then
393393
AC_MSG_ERROR([xxd command not installed: configure failed.])
394394
fi
395+
AC_CHECK_PROG([ARM_GCC], [arm-none-eabi-gcc], [yes], [no])
396+
AC_CHECK_PROG([ARM_GXX], [arm-none-eabi-g++], [yes], [no])
397+
if test "$ARM_GCC" = "no"; then
398+
AC_MSG_ERROR([arm-none-eabi-gcc not found in PATH. Please install gcc-arm-none-eabi.])
399+
fi
400+
if test "$ARM_GXX" = "no"; then
401+
AC_MSG_ERROR([arm-none-eabi-g++ not found in PATH. Please install g++-arm-none-eabi.])
402+
fi
403+
PKG_CHECK_MODULES([LIBUSB], [libusb], [],
404+
[AC_MSG_ERROR([libusb not found. Please install libusb-dev])]
405+
)
395406
AM_CONDITIONAL(WITH_CYGWIN_CONSOLE, false)
396407
AC_DEFINE(_UnixOS, 1, [Building under Unix like systems.])
397408
AC_DEFINE(_MCU, 1, [Micro controller based builds])

0 commit comments

Comments
 (0)