diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-11 14:34:18 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-10-11 14:34:18 +0000 |
commit | 7155446ba1a312a61d55d0c6dab9cc621112d743 (patch) | |
tree | 677c539705d20fd877b92c8138ee4af937199e3a /nuttx/arch/sim | |
parent | ef5a403a600202cc899811ad933c70cc2df08d4b (diff) | |
download | px4-nuttx-7155446ba1a312a61d55d0c6dab9cc621112d743.tar.gz px4-nuttx-7155446ba1a312a61d55d0c6dab9cc621112d743.tar.bz2 px4-nuttx-7155446ba1a312a61d55d0c6dab9cc621112d743.zip |
Fix sim/nsh2 build
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4039 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/sim')
-rw-r--r-- | nuttx/arch/sim/src/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/nuttx/arch/sim/src/Makefile b/nuttx/arch/sim/src/Makefile index d4da17d88..108a2bebd 100644 --- a/nuttx/arch/sim/src/Makefile +++ b/nuttx/arch/sim/src/Makefile @@ -114,8 +114,7 @@ LDLIBS = $(patsubst lib%,-l%,$(basename $(notdir $(LINKLIBS)))) # Add the board-specific library and directory -BOARDDIR = $(TOPDIR)/configs/sim/src -LDPATHS += -L $(BOARDDIR) +LDPATHS += -L board LDLIBS += -lboard # Make targets begin here @@ -144,8 +143,8 @@ libarch$(LIBEXT): $(NUTTXOBJS) # the simulation. However, this is a good place to keep parts of the simulation # that are not hardware-related. -$(BOARDDIR)/libboard$(LIBEXT): - @$(MAKE) -C $(BOARDDIR) TOPDIR="$(TOPDIR)" libboard$(LIBEXT) EXTRADEFINES=$(EXTRADEFINES) +board/libboard$(LIBEXT): + @$(MAKE) -C board TOPDIR="$(TOPDIR)" libboard$(LIBEXT) EXTRADEFINES=$(EXTRADEFINES) # A partially linked object containing only NuttX code (no interface to host OS) # Change the names of most symbols that conflict with libc symbols. @@ -159,7 +158,7 @@ GNU/Linux-names.dat: GNU nuttx-names.dat Cygwin-names.dat: nuttx-names.dat @cat $^ | sed -e "s/^/_/g" >$@ -nuttx.rel : libarch$(LIBEXT) $(BOARDDIR)/libboard$(LIBEXT) $(HOSTOS)-names.dat $(LINKOBJS) +nuttx.rel : libarch$(LIBEXT) board/libboard$(LIBEXT) $(HOSTOS)-names.dat $(LINKOBJS) @echo "LD: nuttx.rel" @$(LD) -r $(LDFLAGS) $(LDPATHS) -o $@ $(LINKOBJS) --start-group $(LDLIBS) --end-group $(EXTRA_LIBS) @$(OBJCOPY) --redefine-syms=$(HOSTOS)-names.dat $@ @@ -191,10 +190,16 @@ cleanrel: @rm -f nuttx.rel GNU/Linux-names.dat Cygwin-names.dat clean: cleanrel + @if [ -e board/Makefile ]; then \ + $(MAKE) -C board TOPDIR="$(TOPDIR)" clean ; \ + fi @rm -f nuttx.rel libarch$(LIBEXT) *~ .*.swp $(call CLEAN) distclean: clean + @if [ -e board/Makefile ]; then \ + $(MAKE) -C board TOPDIR="$(TOPDIR)" distclean ; \ + fi @rm -f Make.dep .depend @rm -rf GNU |