This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 221a45879d2338af56beadc480cfb8e99cb816c3 Author: Alin Jerpelea <[email protected]> AuthorDate: Tue Dec 31 11:06:43 2019 +0900 system: zmodem: Fix compile error in zmodem host tool --- system/zmodem/Makefile.host | 6 +++--- system/zmodem/zm.h | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/system/zmodem/Makefile.host b/system/zmodem/Makefile.host index 968ae92..6e870ee 100644 --- a/system/zmodem/Makefile.host +++ b/system/zmodem/Makefile.host @@ -43,7 +43,7 @@ # make -f Makefile.host TOPDIR=/home/me/projects/nuttx # APPDIR=/home/me/projects/apps # -# 2. Add CONFIG_DEBUG_FEATURES=1 to the make command line to enable debug output +# 2. Add CONFIG_DEBUG_FEATURES=y to the make command line to enable debug output # 3. Make sure to clean old target .o files before making new host .o # files. # @@ -62,14 +62,14 @@ HOSTAPPS = $(ZMODEM)/host/apps HOSTCFLAGS += -isystem $(HOSTDIR) -I $(ZMODEM) -I $(HOSTAPPS) HOSTCFLAGS += -Dsz_main=main -Drz_main=main ifeq ($(CONFIG_DEBUG_FEATURES),y) -HOSTCFLAGS += -DCONFIG_DEBUG_ZMODEM=1 -DCONFIG_SYSTEM_ZMODEM_DUMPBUFFER=1 +HOSTCFLAGS += -DCONFIG_DEBUG_ZMODEM=1 endif # Zmodem sz and rz commands SZSRCS = sz_main.c zm_send.c RZSRCS = rz_main.c zm_receive.c -CMNSRCS = zm_state.c zm_proto.c zm_watchdog.c zm_utils.c zm_dumpbuffer.c +CMNSRCS = zm_state.c zm_proto.c zm_watchdog.c zm_utils.c CMNSRCS += crc16.c crc32.c SRCS = $(SZSRCS) $(RZSRCS) $(CMNSRCS) diff --git a/system/zmodem/zm.h b/system/zmodem/zm.h index 6e888d0..63df4aa 100644 --- a/system/zmodem/zm.h +++ b/system/zmodem/zm.h @@ -49,6 +49,7 @@ #include <stdint.h> #include <debug.h> +#include <syslog.h> #include <nuttx/compiler.h> #include <nuttx/ascii.h>
