]> sigrok.org Git - sigrok-firmware-fx2lafw.git/commitdiff
build: use sdar instead of deprecated sdcclib
authorDaniel Trnka <redacted>
Sun, 15 Sep 2019 07:51:26 +0000 (09:51 +0200)
committerDaniel Trnka <redacted>
Thu, 26 Sep 2019 18:34:51 +0000 (20:34 +0200)
This fixes bug #1404

Makefile.am
configure.ac

index 5d751f1a5343994824c064935e67d68d95a0b1c2..aa6c3e644e5eb924693fab77e1630d85f1e39860 100644 (file)
@@ -334,11 +334,11 @@ $(dirstamps):
 
 fx2lib/lib/fx2.lib: $(fx2lib_objects)
        -$(AM_V_at)rm -f $@
-       $(AM_V_GEN)$(SDCCLIB) $@ $(fx2lib_objects)
+       $(AM_V_GEN)$(SDAR) -rc $@ $(fx2lib_objects)
 
 fx2lib/lib/interrupts/ints.lib: $(fx2lib_ints_objects)
        -$(AM_V_at)rm -f $@
-       $(AM_V_GEN)$(SDCCLIB) $@ $(fx2lib_ints_objects)
+       $(AM_V_GEN)$(SDAR) -rc $@ $(fx2lib_ints_objects)
 
 hw/braintechnology-usb-lps/fx2lafw-braintechnology-usb-lps.ihx: hw/braintechnology-usb-lps/dscr.rel $(fx2lafw_objects) $(fx2lib_libs)
        $(AM_V_GEN)$(SDCC) -mmcs51 $(SDCC_LINK_FLAGS) -o $@ hw/braintechnology-usb-lps/dscr.rel $(fx2lafw_objects) $(fx2lib_libs)
index b3c7f3eb21dced2a3227c7d4449350f08deff416..ae165f4992b97807a9e1c5c1d8520d1f02b138f7 100644 (file)
@@ -37,9 +37,9 @@ AC_CHECK_PROGS([SDCC], [sdcc sdcc-sdcc])
 AS_IF([test "x$SDCC" = x],
        [AC_MSG_ERROR([cannot find sdcc.])])
 
-AC_CHECK_PROGS([SDCCLIB], [sdcclib sdcc-sdcclib])
-AS_IF([test "x$SDCCLIB" = x],
-       [AC_MSG_ERROR([cannot find sdcclib.])])
+AC_CHECK_PROGS([SDAR], [sdar sdcc-sdar])
+AS_IF([test "x$SDAR" = x],
+       [AC_MSG_ERROR([cannot find sdar.])])
 
 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], [3.4.0],