summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-08 13:02:47 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-01-08 13:02:47 +0000
commitbb2884d0309904ee1e8a908a27884c83bb12ce5a (patch)
treebe9be369e3c8d01ca49e1b0ff5ff98840c03f054
parent83e56741af20c97effc60906ddbc1ad7230b1f27 (diff)
downloadpx4-nuttx-bb2884d0309904ee1e8a908a27884c83bb12ce5a.tar.gz
px4-nuttx-bb2884d0309904ee1e8a908a27884c83bb12ce5a.tar.bz2
px4-nuttx-bb2884d0309904ee1e8a908a27884c83bb12ce5a.zip
ZNeo compiler now works
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@525 42af7a65-404d-4744-a932-0658087f49c3
-rw-r--r--nuttx/Makefile34
-rw-r--r--nuttx/TODO4
-rw-r--r--nuttx/arch/arm/src/Makefile8
-rw-r--r--nuttx/arch/z16/src/Makefile10
-rw-r--r--nuttx/arch/z80/src/Makefile12
-rw-r--r--nuttx/configs/z16f2800100zcog/Make.defs11
-rwxr-xr-xnuttx/configs/z16f2800100zcog/setenv.sh2
-rw-r--r--nuttx/configs/z16f2800100zcog/src/Makefile4
-rw-r--r--nuttx/examples/ostest/Makefile4
-rw-r--r--nuttx/lib/Makefile4
-rw-r--r--nuttx/mm/Makefile4
-rw-r--r--nuttx/sched/Makefile6
12 files changed, 52 insertions, 51 deletions
diff --git a/nuttx/Makefile b/nuttx/Makefile
index 8d9d0c7b7..34961b9c6 100644
--- a/nuttx/Makefile
+++ b/nuttx/Makefile
@@ -113,7 +113,7 @@ all: $(BIN)
# Build the mkconfig tool used to create include/nuttx/config.h
tools/mkconfig:
- $(MAKE) -C tools -f Makefile.mkconfig TOPDIR=$(TOPDIR) mkconfig
+ $(MAKE) -C tools -f Makefile.mkconfig TOPDIR="$(TOPDIR)" mkconfig
# Create the include/nuttx/config.h file
include/nuttx/config.h: $(TOPDIR)/.config tools/mkconfig
@@ -203,51 +203,51 @@ check_context:
fi
sched/libsched$(LIBEXT): context
- $(MAKE) -C sched TOPDIR=$(TOPDIR) libsched$(LIBEXT)
+ $(MAKE) -C sched TOPDIR="$(TOPDIR)" libsched$(LIBEXT)
lib/liblib$(LIBEXT): context
- $(MAKE) -C lib TOPDIR=$(TOPDIR) liblib$(LIBEXT)
+ $(MAKE) -C lib TOPDIR="$(TOPDIR)" liblib$(LIBEXT)
$(ARCH_SRC)/libarch$(LIBEXT): context
- $(MAKE) -C $(ARCH_SRC) TOPDIR=$(TOPDIR) libarch$(LIBEXT)
+ $(MAKE) -C $(ARCH_SRC) TOPDIR="$(TOPDIR)" libarch$(LIBEXT)
mm/libmm$(LIBEXT): context
- $(MAKE) -C mm TOPDIR=$(TOPDIR) libmm$(LIBEXT)
+ $(MAKE) -C mm TOPDIR="$(TOPDIR)" libmm$(LIBEXT)
net/libnet$(LIBEXT): context
- $(MAKE) -C net TOPDIR=$(TOPDIR) libnet$(LIBEXT)
+ $(MAKE) -C net TOPDIR="$(TOPDIR)" libnet$(LIBEXT)
netutils/libnetutils$(LIBEXT): context
- $(MAKE) -C netutils TOPDIR=$(TOPDIR) libnetutils$(LIBEXT)
+ $(MAKE) -C netutils TOPDIR="$(TOPDIR)" libnetutils$(LIBEXT)
fs/libfs$(LIBEXT): context
- $(MAKE) -C fs TOPDIR=$(TOPDIR) libfs$(LIBEXT)
+ $(MAKE) -C fs TOPDIR="$(TOPDIR)" libfs$(LIBEXT)
drivers/libdrivers$(LIBEXT): context
- $(MAKE) -C drivers TOPDIR=$(TOPDIR) libdrivers$(LIBEXT)
+ $(MAKE) -C drivers TOPDIR="$(TOPDIR)" libdrivers$(LIBEXT)
pcode/libpcode$(LIBEXT): context
- $(MAKE) -C pcode TOPDIR=$(TOPDIR) libpcode$(LIBEXT)
+ $(MAKE) -C pcode TOPDIR="$(TOPDIR)" libpcode$(LIBEXT)
examples/$(CONFIG_EXAMPLE)/lib$(CONFIG_EXAMPLE)$(LIBEXT): context
- $(MAKE) -C examples/$(CONFIG_EXAMPLE) TOPDIR=$(TOPDIR) lib$(CONFIG_EXAMPLE)$(LIBEXT)
+ $(MAKE) -C examples/$(CONFIG_EXAMPLE) TOPDIR="$(TOPDIR)" lib$(CONFIG_EXAMPLE)$(LIBEXT)
$(BIN): context depend $(LINKLIBS)
- $(MAKE) -C $(ARCH_SRC) TOPDIR=$(TOPDIR) LINKLIBS="$(LINKLIBS)" $(BIN)
+ $(MAKE) -C $(ARCH_SRC) TOPDIR="$(TOPDIR)" LINKLIBS="$(LINKLIBS)" $(BIN)
depend:
@for dir in $(MAKEDIRS) ; do \
- $(MAKE) -C $$dir TOPDIR=$(TOPDIR) depend ; \
+ $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" depend ; \
done
subdir_clean:
@for dir in $(CLEANDIRS) ; do \
if [ -e $$dir/Makefile ]; then \
- $(MAKE) -C $$dir TOPDIR=$(TOPDIR) clean ; \
+ $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" clean ; \
fi \
done
- $(MAKE) -C tools -f Makefile.mkconfig TOPDIR=$(TOPDIR) clean
- $(MAKE) -C mm -f Makefile.test TOPDIR=$(TOPDIR) clean
+ $(MAKE) -C tools -f Makefile.mkconfig TOPDIR="$(TOPDIR)" clean
+ $(MAKE) -C mm -f Makefile.test TOPDIR="$(TOPDIR)" clean
clean: subdir_clean
rm -f $(BIN) $(BIN).* mm_test *.map *~
@@ -255,7 +255,7 @@ clean: subdir_clean
subdir_distclean:
@for dir in $(CLEANDIRS) ; do \
if [ -e $$dir/Makefile ]; then \
- $(MAKE) -C $$dir TOPDIR=$(TOPDIR) distclean ; \
+ $(MAKE) -C $$dir TOPDIR="$(TOPDIR)" distclean ; \
fi \
done
diff --git a/nuttx/TODO b/nuttx/TODO
index 8c8bfcccd..917122cc8 100644
--- a/nuttx/TODO
+++ b/nuttx/TODO
@@ -1,5 +1,5 @@
-NuttX TODO List (Last updated December 13, 2007)
-^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+NuttX TODO List (Last updated January 6, 2008)
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
(6) Task/Scheduler (sched/)
(1) Dynamic loader (N/A)
diff --git a/nuttx/arch/arm/src/Makefile b/nuttx/arch/arm/src/Makefile
index 625f0226c..e0f73fb0a 100644
--- a/nuttx/arch/arm/src/Makefile
+++ b/nuttx/arch/arm/src/Makefile
@@ -78,7 +78,7 @@ libarch$(LIBEXT): $(OBJS)
done ; )
board/libboard$(LIBEXT):
- $(MAKE) -C board TOPDIR=$(TOPDIR) libboard$(LIBEXT)
+ $(MAKE) -C board TOPDIR="$(TOPDIR)" libboard$(LIBEXT)
nuttx: $(HEAD_AOBJ) board/libboard$(LIBEXT)
$(LD) --entry=__start $(LDFLAGS) $(LDPATHES) -L$(BOARDDIR) -o $(TOPDIR)/$@ $(HEAD_AOBJ) \
@@ -100,7 +100,7 @@ endif
.depend: Makefile chip/Make.defs $(SRCS)
@if [ -e board/Makefile ]; then \
- $(MAKE) -C board TOPDIR=$(TOPDIR) depend ; \
+ $(MAKE) -C board TOPDIR="$(TOPDIR)" depend ; \
fi
$(MKDEP) --dep-path chip --dep-path common $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
@touch $@
@@ -109,14 +109,14 @@ depend: .depend
clean:
@if [ -e board/Makefile ]; then \
- $(MAKE) -C board TOPDIR=$(TOPDIR) clean ; \
+ $(MAKE) -C board TOPDIR="$(TOPDIR)" clean ; \
fi
@rm -f libarch$(LIBEXT) *~
@if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi
distclean: clean
@if [ -e board/Makefile ]; then \
- $(MAKE) -C board TOPDIR=$(TOPDIR) distclean ; \
+ $(MAKE) -C board TOPDIR="$(TOPDIR)" distclean ; \
fi
@rm -f Make.dep .depend
diff --git a/nuttx/arch/z16/src/Makefile b/nuttx/arch/z16/src/Makefile
index 93eaff147..487257dda 100644
--- a/nuttx/arch/z16/src/Makefile
+++ b/nuttx/arch/z16/src/Makefile
@@ -78,7 +78,7 @@ libarch$(LIBEXT): $(OBJS)
done ; )
board/libboard$(LIBEXT):
- $(MAKE) -C board TOPDIR=$(TOPDIR) libboard$(LIBEXT)
+ $(MAKE) -C board TOPDIR="$(TOPDIR)" libboard$(LIBEXT)
nuttx: $(HEAD_AOBJ) board/libboard$(LIBEXT)
$(LD) --entry=__start $(LDFLAGS) $(LDPATHES) -L$(BOARDDIR) -o $(TOPDIR)/$@ $(HEAD_AOBJ) \
@@ -86,23 +86,23 @@ nuttx: $(HEAD_AOBJ) board/libboard$(LIBEXT)
.depend: Makefile chip/Make.defs $(SRCS)
@if [ -e board/Makefile ]; then \
- $(MAKE) -C board TOPDIR=$(TOPDIR) depend ; \
+ $(MAKE) -C board TOPDIR="$(TOPDIR)" depend ; \
fi
- $(MKDEP) --dep-path chip --dep-path common $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
+ @$(MKDEP) --dep-path chip --dep-path common $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
@touch $@
depend: .depend
clean:
@if [ -e board/Makefile ]; then \
- $(MAKE) -C board TOPDIR=$(TOPDIR) clean ; \
+ $(MAKE) -C board TOPDIR="$(TOPDIR)" clean ; \
fi
@rm -f libarch$(LIBEXT) *~
@if [ ! -z "$(OBJEXT)" ]; then rm -f *$(OBJEXT); fi
distclean: clean
@if [ -e board/Makefile ]; then \
- $(MAKE) -C board TOPDIR=$(TOPDIR) distclean ; \
+ $(MAKE) -C board TOPDIR="$(TOPDIR)" distclean ; \
fi
@rm -f Make.dep .depend
diff --git a/nuttx/arch/z80/src/Makefile b/nuttx/arch/z80/src/Makefile
index 5c9ccb5d3..b1025ed67 100644
--- a/nuttx/arch/z80/src/Makefile
+++ b/nuttx/arch/z80/src/Makefile
@@ -165,7 +165,7 @@ libarch$(LIBEXT): up_mem.h asm_mem.h $(OBJS)
# This builds the libboard library in the board/ subdirectory
board/libboard$(LIBEXT):
- $(MAKE) -C board TOPDIR=$(TOPDIR) libboard$(LIBEXT)
+ $(MAKE) -C board TOPDIR="$(TOPDIR)" libboard$(LIBEXT)
# This target builds the final executable
@@ -190,8 +190,8 @@ pass1.ihx: up_mem.h asm_mem.h $(SDCCLIBDIR)/myz80.lib $(HEAD_AOBJ) board/libboar
$(LD) -f pass1.lnk
@rm -f up_mem.h asm_mem.h
@rm -f up_allocateheap$(OBJEXT) $(HEAD_AOBJ) libarch$(LIBEXT)
- @$(MAKE) TOPDIR=$(TOPDIR) libarch$(LIBEXT)
- @$(MAKE) TOPDIR=$(TOPDIR) $(HEAD_AOBJ)
+ @$(MAKE) TOPDIR="$(TOPDIR)" libarch$(LIBEXT)
+ @$(MAKE) TOPDIR="$(TOPDIR)" $(HEAD_AOBJ)
nuttx.ihx: up_mem.h asm_mem.h $(SDCCLIBDIR)/myz80.lib $(HEAD_AOBJ) board/libboard$(LIBEXT)
@echo "--" >nuttx.lnk # Non-interactive
@@ -222,7 +222,7 @@ nuttx$(EXEEXT): pass1.ihx nuttx.ihx
.depend: Makefile up_mem.h asm_mem.h chip/Make.defs $(DEPSRCS)
@if [ -e board/Makefile ]; then \
- $(MAKE) -C board TOPDIR=$(TOPDIR) depend ; \
+ $(MAKE) -C board TOPDIR="$(TOPDIR)" depend ; \
fi
$(MKDEP) --dep-path chip --dep-path common $(CC) -- $(CFLAGS) -- $(DEPSRCS) >Make.dep
@touch $@
@@ -231,7 +231,7 @@ depend: .depend
clean:
@if [ -e board/Makefile ]; then \
- $(MAKE) -C board TOPDIR=$(TOPDIR) clean ; \
+ $(MAKE) -C board TOPDIR="$(TOPDIR)" clean ; \
fi
rm -f libarch$(LIBEXT) up_mem.h asm_mem.h pass1.* nuttx.*
rm -f *.asm *.rel *.lst *.rst *.sym *.adb *.lnk *.map *.mem *.ihx *.hex
@@ -240,7 +240,7 @@ clean:
distclean: clean
@if [ -e board/Makefile ]; then \
- $(MAKE) -C board TOPDIR=$(TOPDIR) distclean ; \
+ $(MAKE) -C board TOPDIR="$(TOPDIR)" distclean ; \
fi
rm -f Make.dep .depend
diff --git a/nuttx/configs/z16f2800100zcog/Make.defs b/nuttx/configs/z16f2800100zcog/Make.defs
index a690606ca..569a9f0e4 100644
--- a/nuttx/configs/z16f2800100zcog/Make.defs
+++ b/nuttx/configs/z16f2800100zcog/Make.defs
@@ -36,6 +36,7 @@
include ${TOPDIR}/.config
ZDSINSTALLDIR = C:/Program\ Files/ZiLOG/ZDSII_ZNEO_4.10.2
+ZDSBINDIR = $(ZDSINSTALLDIR)/bin
ZDSLIBDIR = $(ZDSINSTALLDIR)/lib/std
ZDSINCDIR = $(ZDSINSTALLDIR)/include
@@ -72,11 +73,11 @@ CFLAGS = $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \
$(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES)
CROSSDEV =
-CC = zneocc
-CPP = zneoasm
-LD = zneolink
-AS = zneoasm
-AR = zneolib
+CC = $(ZDSBINDIR)/zneocc.exe
+CPP = $(ZDSBINDIR)/zneoasm.exe
+LD = $(ZDSBINDIR)/zneolink.exe
+AS = $(ZDSBINDIR)/zneoasm.exe
+AR = $(ZDSBINDIR)/zneolib.exe
ASMEXT = .asm
OBJEXT = .obj
diff --git a/nuttx/configs/z16f2800100zcog/setenv.sh b/nuttx/configs/z16f2800100zcog/setenv.sh
index 6ab843c2e..e0c18d13a 100755
--- a/nuttx/configs/z16f2800100zcog/setenv.sh
+++ b/nuttx/configs/z16f2800100zcog/setenv.sh
@@ -41,6 +41,6 @@ if [ -z ${PATH_ORIG} ]; then export PATH_ORIG=${PATH}; fi
WD=`pwd`
ZDSINSTALLDIR="C:/Program\ Files/ZiLOG/ZDSII_ZNEO_4.10.2"
-export PATH=${ZDSINSTALLDIR}/bin:/sbin:/usr/sbin:${PATH_ORIG}
+export PATH="${ZDSINSTALLDIR}/bin:/sbin:/usr/sbin:${PATH_ORIG}"
echo "PATH : ${PATH}"
diff --git a/nuttx/configs/z16f2800100zcog/src/Makefile b/nuttx/configs/z16f2800100zcog/src/Makefile
index 96acd7101..be3eedd31 100644
--- a/nuttx/configs/z16f2800100zcog/src/Makefile
+++ b/nuttx/configs/z16f2800100zcog/src/Makefile
@@ -57,13 +57,13 @@ $(COBJS) $(LINKOBJS): %$(OBJEXT): %.c
$(CC) -c $(CFLAGS) $< -o $@
libboard$(LIBEXT): $(OBJS)
- ( for obj in $(OBJS) ; do \
+ @( for obj in $(OBJS) ; do \
$(AR) $@ $${obj} || \
{ echo "$(AR) $@ $obj FAILED!" ; exit 1 ; } ; \
done ; )
.depend: Makefile $(SRCS)
- $(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
+ @$(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
touch $@
depend: .depend
diff --git a/nuttx/examples/ostest/Makefile b/nuttx/examples/ostest/Makefile
index 28a21794f..f87e9f3d2 100644
--- a/nuttx/examples/ostest/Makefile
+++ b/nuttx/examples/ostest/Makefile
@@ -78,13 +78,13 @@ $(COBJS): %$(OBJEXT): %.c
$(CC) -c $(CFLAGS) $< -o $@
$(BIN): $(OBJS)
- ( for obj in $(OBJS) ; do \
+ @( for obj in $(OBJS) ; do \
$(AR) $@ $${obj} || \
{ echo "$(AR) $@ $obj FAILED!" ; exit 1 ; } ; \
done ; )
.depend: Makefile $(SRCS)
- $(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
+ @$(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
touch $@
depend: .depend
diff --git a/nuttx/lib/Makefile b/nuttx/lib/Makefile
index ce98422b2..cdfacf9ae 100644
--- a/nuttx/lib/Makefile
+++ b/nuttx/lib/Makefile
@@ -97,13 +97,13 @@ $(COBJS): %$(OBJEXT): %.c
$(CC) -c $(CFLAGS) $< -o $@
$(BIN): $(OBJS)
- ( for obj in $(OBJS) ; do \
+ @( for obj in $(OBJS) ; do \
$(AR) $@ $${obj} || \
{ echo "$(AR) $@ $obj FAILED!" ; exit 1 ; } ; \
done ; )
.depend: Makefile $(SRCS)
- $(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
+ @$(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
touch $@
depend: .depend
diff --git a/nuttx/mm/Makefile b/nuttx/mm/Makefile
index b3e5bfe76..001cdcda5 100644
--- a/nuttx/mm/Makefile
+++ b/nuttx/mm/Makefile
@@ -56,13 +56,13 @@ $(COBJS): %.o: %.c
$(CC) -c $(CFLAGS) $< -o $@
$(BIN): $(OBJS)
- ( for obj in $(OBJS) ; do \
+ @( for obj in $(OBJS) ; do \
$(AR) $@ $${obj} || \
{ echo "$(AR) $@ $obj FAILED!" ; exit 1 ; } ; \
done ; )
.depend: Makefile $(SRCS)
- $(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
+ @$(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
touch $@
depend: .depend
diff --git a/nuttx/sched/Makefile b/nuttx/sched/Makefile
index 8bd0cd80e..205a83c83 100644
--- a/nuttx/sched/Makefile
+++ b/nuttx/sched/Makefile
@@ -148,14 +148,14 @@ $(COBJS): %$(OBJEXT): %.c
$(CC) -c $(CFLAGS) $< -o $@
$(BIN): $(OBJS)
- ( for obj in $(OBJS) ; do \
+ @( for obj in $(OBJS) ; do \
$(AR) $@ $${obj} || \
{ echo "$(AR) $@ $obj FAILED!" ; exit 1 ; } ; \
done ; )
.depend: Makefile $(SRCS)
- $(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
- touch $@
+ @$(MKDEP) $(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
+ @touch $@
depend: .depend