From 333b9449c02c242229449e8a35023d740f2e93f7 Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 12 Nov 2012 15:22:27 +0000 Subject: Changes to get a clean ez80 build using the ZDS 5.1.1 toolchain git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5341 42af7a65-404d-4744-a932-0658087f49c3 --- apps/nshlib/Makefile | 8 ++++++-- apps/nshlib/nsh_dbgcmds.c | 5 +++-- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'apps/nshlib') diff --git a/apps/nshlib/Makefile b/apps/nshlib/Makefile index a16644c03..313a1f6cb 100644 --- a/apps/nshlib/Makefile +++ b/apps/nshlib/Makefile @@ -89,10 +89,14 @@ COBJS = $(CSRCS:.c=$(OBJEXT)) SRCS = $(ASRCS) $(CSRCS) OBJS = $(AOBJS) $(COBJS) +ifeq ($(CONFIG_WINDOWS_NATIVE),y) + BIN = ..\libapps$(LIBEXT) +else ifeq ($(WINTOOL),y) - BIN = "${shell cygpath -w $(APPDIR)/libapps$(LIBEXT)}" + BIN = ..\\libapps$(LIBEXT) else - BIN = "$(APPDIR)/libapps$(LIBEXT)" + BIN = ../libapps$(LIBEXT) +endif endif ROOTDEPPATH = --dep-path . diff --git a/apps/nshlib/nsh_dbgcmds.c b/apps/nshlib/nsh_dbgcmds.c index 627c56bcd..5463e0f5a 100644 --- a/apps/nshlib/nsh_dbgcmds.c +++ b/apps/nshlib/nsh_dbgcmds.c @@ -367,9 +367,10 @@ int cmd_xd(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) int cmd_hexdump(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) { uint8_t buffer[IOBUFFERSIZE]; + char msg[32]; + int position; int fd; int ret = OK; - char msg[32]; /* Open the file for reading */ @@ -380,7 +381,7 @@ int cmd_hexdump(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv) return ERROR; } - int position = 0; + position = 0; for (;;) { int nbytesread = read(fd, buffer, IOBUFFERSIZE); -- cgit v1.2.3