There is an issue with some sdcc versions that causes problems, e.g. only
the first scan for an FX2 device succeeds, the second one yields
LIBUSB_ERROR_PIPE (see bug #1326).
Recent tests have shown that sdcc 3.3.0 produces broken fx2lafw firmware
files, and sdcc 3.1.0 errors out during the build. Versions 3.4.0, 3.5.0,
3.6.9, and 3.8.0 (for example) all seem to work fine.
Thus, increase the minimum required sdcc version to 3.4.0.
This fixes bug #1326.
- make
- autoconf >= 2.63
- automake >= 1.11
- - sdcc (>= 2.9.0)
-
-Notes:
-
- - In order to build fx2lafw you need the 'sdcc' compiler (>= 2.9.0).
- On Debian you can install it via:
-
- $ apt-get install sdcc
-
- This project has been tested to work with sdcc 2.9 and 3.x.
+ - sdcc (>= 3.4.0)
Building and installing
[AC_MSG_ERROR([cannot find sdcclib.])])
sf_sdcc_version=`$SDCC --version | sed -n 's/.* \([[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\.[[0-9]][[0-9]]*\) .*/\1/p;q' 2>&AS_MESSAGE_LOG_FD`
-AS_VERSION_COMPARE([$sf_sdcc_version], [2.9.0],
- [AC_MSG_ERROR([At least version 2.9.0 of sdcc is required.])])
+AS_VERSION_COMPARE([$sf_sdcc_version], [3.4.0],
+ [AC_MSG_ERROR([At least version 3.4.0 of sdcc is required.])])
AC_CHECK_PROGS([OBJCOPY], [objcopy])
AC_CHECK_PROGS([MAKEBIN], [makebin sdcc-makebin])