More build fixes

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3406 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2011-03-20 19:30:39 +00:00
parent d20645c178
commit c7c2752d5c
11 changed files with 22 additions and 16 deletions
+4 -7
View File
@@ -171,12 +171,9 @@ defconfig -- This is a configuration file similar to the Linux
CONFIG_APP_DIR - Identifies the directory that builds the CONFIG_APP_DIR - Identifies the directory that builds the
application to link with NuttX. This symbol must be assigned application to link with NuttX. This symbol must be assigned
to the path to the application build directory *relative* to to the path to the application build directory *relative* to
the NuttX top build direcory. As an an example, there are the NuttX top build direcory. If you had an application
several example applicatins in the NuttX examples/ sub-directory. directory and the NuttX directory each in separate directory
To use one of these example applications, say nsh, you would trees like this:
set CONFIG_APP_DIR=examples/nsh. If you had an application
directory and the NuttX directory both within another directory
like this:
build build
|-nuttx |-nuttx
@@ -202,7 +199,7 @@ defconfig -- This is a configuration file similar to the Linux
This is only done when you change the NuttX configuration. This is only done when you change the NuttX configuration.
- depend. Make or update the application build dependencies. - depend. Make or update the application build dependencies.
When this application is invoked it will receive the setting TOPDIR< like: When this application is invoked it will receive the setting TOPDIR like:
$(MAKE) -C $(CONFIG_APP_DIR) TOPDIR="$(TOPDIR)" <target> $(MAKE) -C $(CONFIG_APP_DIR) TOPDIR="$(TOPDIR)" <target>
+9
View File
@@ -41,7 +41,16 @@
PASS1_SRCDIR = arch/$(CONFIG_ARCH)/src PASS1_SRCDIR = arch/$(CONFIG_ARCH)/src
PASS1_BOARDDIR = $(PASS1_SRCDIR)/board PASS1_BOARDDIR = $(PASS1_SRCDIR)/board
PASS1_LIBBOARD = $(PASS1_BOARDDIR)/libboard$(LIBEXT) PASS1_LIBBOARD = $(PASS1_BOARDDIR)/libboard$(LIBEXT)
# Where is the application library?
ifneq ($(CONFIG_APP_DIR),)
PASS1_LIBAPP = $(CONFIG_APP_DIR)/libapp$(LIBEXT) PASS1_LIBAPP = $(CONFIG_APP_DIR)/libapp$(LIBEXT)
else
ifneq ($(APPDIR),)
PASS1_LIBAPP = $(APPDIR)/libapps$(LIBEXT)
endif
endif
# Remove the application library (libapp) from the list of libraries. Add # Remove the application library (libapp) from the list of libraries. Add
# the boad library (liboard) # the boad library (liboard)
+1 -1
View File
@@ -59,7 +59,7 @@ endif
ifeq ($(CONFIG_PAGING),y) ifeq ($(CONFIG_PAGING),y)
CSRCS += up_fillpage.c CSRCS += up_fillpage.c
endif endif
ifeq ($(CONFIG_APP_DIR),examples/usbstorage) ifeq ($(CONFIG_USBSTRG),y)
CSRCS += up_usbstrg.c CSRCS += up_usbstrg.c
endif endif
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))
+1 -1
View File
@@ -42,7 +42,7 @@ CSRCS = up_boot.c up_leds.c
ifeq ($(CONFIG_NSH_ARCHINIT),y) ifeq ($(CONFIG_NSH_ARCHINIT),y)
CSRCS += up_nsh.c CSRCS += up_nsh.c
endif endif
ifeq ($(CONFIG_APP_DIR),examples/usbstorage) ifeq ($(CONFIG_USBSTRG),y)
CSRCS += up_usbstrg.c CSRCS += up_usbstrg.c
endif endif
+1 -1
View File
@@ -51,7 +51,7 @@ CSRCS = up_spi.c up_leds.c
ifeq ($(CONFIG_NSH_ARCHINIT),y) ifeq ($(CONFIG_NSH_ARCHINIT),y)
CSRCS += up_nsh.c CSRCS += up_nsh.c
endif endif
ifeq ($(CONFIG_APP_DIR),examples/usbstorage) ifeq ($(CONFIG_USBSTRG),y)
CSRCS += up_usbstrg.c CSRCS += up_usbstrg.c
endif endif
+1 -1
View File
@@ -42,7 +42,7 @@ CSRCS = up_boot.c up_leds.c up_ssp.c
ifeq ($(CONFIG_NSH_ARCHINIT),y) ifeq ($(CONFIG_NSH_ARCHINIT),y)
CSRCS += up_nsh.c CSRCS += up_nsh.c
endif endif
ifeq ($(CONFIG_APP_DIR),examples/usbstorage) ifeq ($(CONFIG_USBSTRG),y)
CSRCS += up_usbstrg.c CSRCS += up_usbstrg.c
endif endif
+1 -1
View File
@@ -42,7 +42,7 @@ CSRCS = up_boot.c up_leds.c up_ssp.c
ifeq ($(CONFIG_NSH_ARCHINIT),y) ifeq ($(CONFIG_NSH_ARCHINIT),y)
CSRCS += up_nsh.c CSRCS += up_nsh.c
endif endif
ifeq ($(CONFIG_APP_DIR),examples/usbstorage) ifeq ($(CONFIG_USBSTRG),y)
CSRCS += up_usbstrg.c CSRCS += up_usbstrg.c
endif endif
ifeq ($(CONFIG_NX_LCDDRIVER),y) ifeq ($(CONFIG_NX_LCDDRIVER),y)
+1 -1
View File
@@ -47,7 +47,7 @@ endif
ifeq ($(CONFIG_SAM3U_HSMCI),y) ifeq ($(CONFIG_SAM3U_HSMCI),y)
CSRCS += up_mmcsd.c CSRCS += up_mmcsd.c
endif endif
ifeq ($(CONFIG_APP_DIR),examples/usbstorage) ifeq ($(CONFIG_USBSTRG),y)
CSRCS += up_usbstrg.c CSRCS += up_usbstrg.c
endif endif
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))
+1 -1
View File
@@ -121,7 +121,7 @@ CONFIG_SIM_FBBPP=32
# desciptors by task_create() when a new task is started. If # desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task. # set, all sockets will appear to be closed in the new task.
# #
CONFIG_APP_DIR=examples/nx #CONFIG_APP_DIR=
CONFIG_DEBUG=y CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=y CONFIG_DEBUG_VERBOSE=y
CONFIG_DEBUG_SYMBOLS=n CONFIG_DEBUG_SYMBOLS=n
+1 -1
View File
@@ -46,7 +46,7 @@ CSRCS = up_boot.c up_leds.c up_buttons.c up_spi.c up_usbdev.c \
ifeq ($(CONFIG_NSH_ARCHINIT),y) ifeq ($(CONFIG_NSH_ARCHINIT),y)
CSRCS += up_nsh.c CSRCS += up_nsh.c
endif endif
ifeq ($(CONFIG_APP_DIR),examples/usbstorage) ifeq ($(CONFIG_USBSTRG),y)
CSRCS += up_usbstrg.c CSRCS += up_usbstrg.c
endif endif
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))
+1 -1
View File
@@ -49,7 +49,7 @@ CSRCS = sysclock.c boot.c leds.c buttons.c spi.c \
ifeq ($(CONFIG_NSH_ARCHINIT),y) ifeq ($(CONFIG_NSH_ARCHINIT),y)
CSRCS += nsh.c CSRCS += nsh.c
endif endif
ifeq ($(CONFIG_APP_DIR),examples/usbstorage) ifeq ($(CONFIG_USBSTRG),y)
CSRCS += usbstrg.c CSRCS += usbstrg.c
endif endif
COBJS = $(CSRCS:.c=$(OBJEXT)) COBJS = $(CSRCS:.c=$(OBJEXT))