diff --git a/Documentation/NuttxPortingGuide.html b/Documentation/NuttxPortingGuide.html
index e0947657b3c..0df7896996a 100644
--- a/Documentation/NuttxPortingGuide.html
+++ b/Documentation/NuttxPortingGuide.html
@@ -12,7 +12,7 @@
NuttX RTOS Porting Guide
- Last Updated: August 21, 2010
+ Last Updated: August 27, 2010
@@ -2211,8 +2211,55 @@ extern void up_ledoff(int led);
-
-
CONFIG_EXAMPLE: identifies the subdirectory in examples
- that will be used in the build.
+
+ CONFIG_APP_DIR: Ldentifies the directory that builds the application to link with NuttX.
+ This symbol must be assigned to the path to the application build directory relative to the NuttX top build direcory.
+ As an an example, there are several example applicatins in the NuttX examples/ sub-directory.
+ To use one of these example applications, say nsh, you would set CONFIG_APP_DIR=examples/nsh.
+ If you had an application directory and the NuttX directory both within another directory like this:
+
+build
+ |-nuttx
+ | |
+ | `- Makefile
+ `-application
+ |
+ `- Makefile
+
+ Then you would set CONFIG_APP_DIR=../application.
+
+
+ The application direction must contain Makefile and this make file must support the following targets:
+
+ -
+
libapp$(LIBEXT) (usually libapp.a).
+ libapp.a is a static library ( an archive) that contains all of application object files.
+
+ -
+
clean.
+ Do whatever is appropriate to clean the application directories for a fresh build.
+
+ -
+
distclean.
+ Clean everthing -- auto-generated files, symbolic links etc. -- so that the directory contents are the same as the contents in your configuration management system.
+ This is only done when you change the NuttX configuration.
+
+ -
+
depend.
+ Make or update the application build dependencies.
+
+
+
+
+ When this application is invoked it will receive the setting TOPDIR like:
+
+ $(MAKE) -C $(CONFIG_APP_DIR) TOPDIR="$(TOPDIR)" <target>
+
+
+
+ TOPDIR is the full path to the NuttX directory.
+ It can be used, for example, to include makefile fragments (e.g., .config or Make.defs) or to set up include file paths.
+
CONFIG_DEBUG: enables built-in debug options
@@ -2925,7 +2972,7 @@ extern void up_ledoff(int led);
CONFIG_THTTPD_URLPATTERN: If defined, then it will be used to match
- and verify referrers.
+ and verify referrers.
diff --git a/Makefile b/Makefile
index ddd9e1edf76..90bd2f202e0 100644
--- a/Makefile
+++ b/Makefile
@@ -69,7 +69,7 @@ ADDON_DIRS := $(PCODE_DIR) $(NX_DIR)
# (except for parts of FSDIRS). We will exclude FSDIRS
# from the build if file descriptor support is disabled
-NONFSDIRS = sched lib $(ARCH_SRC) mm examples/$(CONFIG_EXAMPLE) $(ADDON_DIRS)
+NONFSDIRS = sched lib $(ARCH_SRC) mm $(CONFIG_APP_DIR) $(ADDON_DIRS)
FSDIRS = fs drivers binfmt
CONTEXTDIRS =
@@ -113,7 +113,7 @@ endif
# is disabled.
LINKLIBS = sched/libsched$(LIBEXT) $(ARCH_SRC)/libarch$(LIBEXT) mm/libmm$(LIBEXT) \
- lib/liblib$(LIBEXT) examples/$(CONFIG_EXAMPLE)/lib$(CONFIG_EXAMPLE)$(LIBEXT)
+ lib/liblib$(LIBEXT) $(CONFIG_APP_DIR)/libapp$(LIBEXT)
# Add libraries for network support. CXX, CXXFLAGS, and COMPILEXX must
# be defined in Make.defs for this to work!
@@ -253,8 +253,8 @@ pcode/libpcode$(LIBEXT): context
graphics/libgraphics$(LIBEXT): context
@$(MAKE) -C graphics TOPDIR="$(TOPDIR)" libgraphics$(LIBEXT)
-examples/$(CONFIG_EXAMPLE)/lib$(CONFIG_EXAMPLE)$(LIBEXT): context
- @$(MAKE) -C examples/$(CONFIG_EXAMPLE) TOPDIR="$(TOPDIR)" lib$(CONFIG_EXAMPLE)$(LIBEXT)
+$(CONFIG_APP_DIR)/libapp$(LIBEXT): context
+ @$(MAKE) -C $(CONFIG_APP_DIR) TOPDIR="$(TOPDIR)" libapp$(LIBEXT)
pass1:
ifeq ($(CONFIG_BUILD_2PASS),y)
diff --git a/configs/README.txt b/configs/README.txt
index 6484a1e196b..c1b73b310d3 100644
--- a/configs/README.txt
+++ b/configs/README.txt
@@ -159,8 +159,48 @@ defconfig -- This is a configuration file similar to the Linux
General OS setup
- CONFIG_EXAMPLE - identifies the subdirectory in examples
- that will be used in the build
+ CONFIG_APP_DIR - Identifies the directory that builds the
+ application to link with NuttX. This symbol must be assigned
+ to the path to the application build directory *relative* to
+ the NuttX top build direcory. As an an example, there are
+ several example applicatins in the NuttX examples/ sub-directory.
+ To use one of these example applications, say nsh, you would
+ set CONFIG_APP_DIR=examples/nsh. If you had an application
+ directory and the NuttX directory both within another directory
+ like this:
+
+ build
+ |-nuttx
+ | |
+ | `- Makefile
+ `-application
+ |
+ `- Makefile
+
+ Then you would set CONFIG_APP_DIR=../application.
+
+ The application direction must contain Makefile and this make
+ file must support the following targets:
+
+ - libapp$(LIBEXT) (usually libapp.a). libapp.a is a static
+ library ( an archive) that contains all of application object
+ files.
+ - clean. Do whatever is appropriate to clean the application
+ directories for a fresh build.
+ - distclean. Clean everthing -- auto-generated files, symbolic
+ links etc. -- so that the directory contents are the same as
+ the contents in your configuration management system.
+ This is only done when you change the NuttX configuration.
+ - depend. Make or update the application build dependencies.
+
+ When this application is invoked it will receive the setting TOPDIR< like:
+
+ $(MAKE) -C $(CONFIG_APP_DIR) TOPDIR="$(TOPDIR)"
+
+ TOPDIR is the full path to the NuttX directory. It can be used, for
+ example, to include makefile fragments (e.g., .config or Make.defs)
+ or to set up include file paths.
+
CONFIG_DEBUG - enables built-in debug options
CONFIG_DEBUG_VERBOSE - enables verbose debug output
CONFIG_DEBUG_SYMBOLS - build without optimization and with
diff --git a/configs/c5471evm/defconfig b/configs/c5471evm/defconfig
index 6078b238f6c..b2d8eb1613f 100644
--- a/configs/c5471evm/defconfig
+++ b/configs/c5471evm/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/c5471evm/defconfig
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -135,8 +135,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -200,7 +200,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/c5471evm/dhcpconfig b/configs/c5471evm/dhcpconfig
index 517fb82e918..f57cc2e3eed 100644
--- a/configs/c5471evm/dhcpconfig
+++ b/configs/c5471evm/dhcpconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/c5471evm/dhcpconfig
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -135,8 +135,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -200,7 +200,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=uip
+CONFIG_APP_DIR=examples/uip
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/c5471evm/netconfig b/configs/c5471evm/netconfig
index dacc7d8b837..a96f8fc7ee2 100644
--- a/configs/c5471evm/netconfig
+++ b/configs/c5471evm/netconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/c5471evm/netconfig
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -135,8 +135,8 @@ CONFIG_NET_C5471_BASET10=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -200,7 +200,7 @@ CONFIG_NET_C5471_BASET10=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=nettest
+CONFIG_APP_DIR=examples/nettest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/c5471evm/nshconfig b/configs/c5471evm/nshconfig
index 6bce684ab06..e2a924da6b5 100644
--- a/configs/c5471evm/nshconfig
+++ b/configs/c5471evm/nshconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/c5471evm/nshconfig
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -135,8 +135,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -200,7 +200,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/demo9s12ne64/ostest/defconfig b/configs/demo9s12ne64/ostest/defconfig
index 9366f532122..630187b0689 100755
--- a/configs/demo9s12ne64/ostest/defconfig
+++ b/configs/demo9s12ne64/ostest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/demo9s12ne64/ostest/defconfig
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -183,8 +183,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -272,7 +272,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ea3131/nsh/defconfig b/configs/ea3131/nsh/defconfig
index 92b6c2b3612..0d2774c21cc 100755
--- a/configs/ea3131/nsh/defconfig
+++ b/configs/ea3131/nsh/defconfig
@@ -201,8 +201,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -290,7 +290,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ea3131/ostest/defconfig b/configs/ea3131/ostest/defconfig
index f329b8277f8..922482d4c39 100755
--- a/configs/ea3131/ostest/defconfig
+++ b/configs/ea3131/ostest/defconfig
@@ -201,8 +201,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -290,7 +290,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ea3131/pgnsh/defconfig b/configs/ea3131/pgnsh/defconfig
index 756e92e884d..db542a647f7 100755
--- a/configs/ea3131/pgnsh/defconfig
+++ b/configs/ea3131/pgnsh/defconfig
@@ -208,8 +208,8 @@ CONFIG_PASS1_LIB=locked.r
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -297,7 +297,7 @@ CONFIG_PASS1_LIB=locked.r
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ea3131/src/Makefile b/configs/ea3131/src/Makefile
index 07443cc87cc..44b1698f6cd 100755
--- a/configs/ea3131/src/Makefile
+++ b/configs/ea3131/src/Makefile
@@ -47,7 +47,7 @@ endif
ifeq ($(CONFIG_PAGING),y)
CSRCS += up_fillpage.c
endif
-ifeq ($(CONFIG_EXAMPLE),usbstorage)
+ifeq ($(CONFIG_APP_DIR),examples/usbstorage)
CSRCS += up_usbstrg.c
endif
COBJS = $(CSRCS:.c=$(OBJEXT))
diff --git a/configs/ea3131/usbserial/defconfig b/configs/ea3131/usbserial/defconfig
index 6ef507ba705..b7b652cf57b 100755
--- a/configs/ea3131/usbserial/defconfig
+++ b/configs/ea3131/usbserial/defconfig
@@ -201,8 +201,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -290,7 +290,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=usbserial
+CONFIG_APP_DIR=examples/usbserial
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_FS=n
diff --git a/configs/ea3131/usbstorage/defconfig b/configs/ea3131/usbstorage/defconfig
index 7474122a4c3..40e82d1e881 100755
--- a/configs/ea3131/usbstorage/defconfig
+++ b/configs/ea3131/usbstorage/defconfig
@@ -201,8 +201,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -290,7 +290,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=usbstorage
+CONFIG_APP_DIR=examples/usbstorage
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_FS=n
diff --git a/configs/eagle100/httpd/defconfig b/configs/eagle100/httpd/defconfig
index c7b8d75444d..7d311cf0caf 100644
--- a/configs/eagle100/httpd/defconfig
+++ b/configs/eagle100/httpd/defconfig
@@ -204,8 +204,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -269,7 +269,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=uip
+CONFIG_APP_DIR=examples/uip
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/eagle100/nettest/defconfig b/configs/eagle100/nettest/defconfig
index 7dc147618ef..8f732462d98 100644
--- a/configs/eagle100/nettest/defconfig
+++ b/configs/eagle100/nettest/defconfig
@@ -204,8 +204,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -269,7 +269,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=nettest
+CONFIG_APP_DIR=examples/nettest
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/eagle100/nsh/defconfig b/configs/eagle100/nsh/defconfig
index 4e4b462ee7b..a0ff72a8739 100644
--- a/configs/eagle100/nsh/defconfig
+++ b/configs/eagle100/nsh/defconfig
@@ -204,8 +204,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -269,7 +269,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/eagle100/nxflat/defconfig b/configs/eagle100/nxflat/defconfig
index d18eedd5c63..cf880e40edf 100644
--- a/configs/eagle100/nxflat/defconfig
+++ b/configs/eagle100/nxflat/defconfig
@@ -204,8 +204,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -266,7 +266,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=nxflat
+CONFIG_APP_DIR=examples/nxflat
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/eagle100/ostest/defconfig b/configs/eagle100/ostest/defconfig
index 9f3b479ba2c..82d44a4faf2 100644
--- a/configs/eagle100/ostest/defconfig
+++ b/configs/eagle100/ostest/defconfig
@@ -204,8 +204,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -275,7 +275,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/eagle100/thttpd/defconfig b/configs/eagle100/thttpd/defconfig
index 6f381e922d6..81f29fdb698 100644
--- a/configs/eagle100/thttpd/defconfig
+++ b/configs/eagle100/thttpd/defconfig
@@ -204,8 +204,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -272,7 +272,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=thttpd
+CONFIG_APP_DIR=examples/thttpd
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ez80f910200kitg/ostest/defconfig b/configs/ez80f910200kitg/ostest/defconfig
index 8509d2f3303..ee3ee1c9b18 100644
--- a/configs/ez80f910200kitg/ostest/defconfig
+++ b/configs/ez80f910200kitg/ostest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/ez80f910200kitg/ostest/defconfig
#
-# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -167,8 +167,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -234,7 +234,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ez80f910200zco/dhcpd/defconfig b/configs/ez80f910200zco/dhcpd/defconfig
index fac51a61816..b15977b6244 100644
--- a/configs/ez80f910200zco/dhcpd/defconfig
+++ b/configs/ez80f910200zco/dhcpd/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/ez80f910200zco/dhcpd/defconfig
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -171,8 +171,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_NET - enables debug of the network subsystem
@@ -239,7 +239,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=dhcpd
+CONFIG_APP_DIR=examples/dhcpd
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ez80f910200zco/httpd/defconfig b/configs/ez80f910200zco/httpd/defconfig
index ad045d0a2ff..27840eecb46 100644
--- a/configs/ez80f910200zco/httpd/defconfig
+++ b/configs/ez80f910200zco/httpd/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/ez80f910200zco/httpd/defconfig
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -171,8 +171,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_NET - enables debug of the network subsystem
@@ -239,7 +239,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=uip
+CONFIG_APP_DIR=examples/uip
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ez80f910200zco/nettest/defconfig b/configs/ez80f910200zco/nettest/defconfig
index 9f73102b6ad..6679e9375cc 100644
--- a/configs/ez80f910200zco/nettest/defconfig
+++ b/configs/ez80f910200zco/nettest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/ez80f910200zco/nettest/defconfig
#
-# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -171,8 +171,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_NET - enables debug of the network subsystem
@@ -239,7 +239,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=nettest
+CONFIG_APP_DIR=examples/nettest
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ez80f910200zco/nsh/defconfig b/configs/ez80f910200zco/nsh/defconfig
index 4606e71ab65..91bc884b88d 100644
--- a/configs/ez80f910200zco/nsh/defconfig
+++ b/configs/ez80f910200zco/nsh/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/ez80f910200zco/nsh/defconfig
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -171,8 +171,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_NET - enables debug of the network subsystem
@@ -239,7 +239,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ez80f910200zco/ostest/defconfig b/configs/ez80f910200zco/ostest/defconfig
index 0b518371503..11f079c1955 100644
--- a/configs/ez80f910200zco/ostest/defconfig
+++ b/configs/ez80f910200zco/ostest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/ez80f910200zco/ostest/defconfig
#
-# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -170,8 +170,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -237,7 +237,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ez80f910200zco/poll/defconfig b/configs/ez80f910200zco/poll/defconfig
index 4b06b3f75d2..899d976b211 100644
--- a/configs/ez80f910200zco/poll/defconfig
+++ b/configs/ez80f910200zco/poll/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/ez80f910200zco/poll/defconfig
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -171,8 +171,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -239,7 +239,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=poll
+CONFIG_APP_DIR=examples/poll
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/lm3s6965-ek/nsh/defconfig b/configs/lm3s6965-ek/nsh/defconfig
index 66c0fbed6c6..412eae23925 100755
--- a/configs/lm3s6965-ek/nsh/defconfig
+++ b/configs/lm3s6965-ek/nsh/defconfig
@@ -218,8 +218,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -289,7 +289,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/lm3s6965-ek/nx/defconfig b/configs/lm3s6965-ek/nx/defconfig
index 9efda7b0712..4fa93a8862e 100755
--- a/configs/lm3s6965-ek/nx/defconfig
+++ b/configs/lm3s6965-ek/nx/defconfig
@@ -218,8 +218,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -289,7 +289,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=nx
+CONFIG_APP_DIR=examples/nx
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/lm3s6965-ek/ostest/defconfig b/configs/lm3s6965-ek/ostest/defconfig
index e1f85c3d074..bd2a3da7b5b 100755
--- a/configs/lm3s6965-ek/ostest/defconfig
+++ b/configs/lm3s6965-ek/ostest/defconfig
@@ -218,8 +218,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -289,7 +289,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/m68332evb/defconfig b/configs/m68332evb/defconfig
index b742c4c0205..208d2d49bce 100644
--- a/configs/m68332evb/defconfig
+++ b/configs/m68332evb/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/m68332evb/defconfig
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -106,8 +106,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -168,7 +168,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/mcu123-lpc214x/nsh/defconfig b/configs/mcu123-lpc214x/nsh/defconfig
index 3125e535d34..1d77d5c419c 100644
--- a/configs/mcu123-lpc214x/nsh/defconfig
+++ b/configs/mcu123-lpc214x/nsh/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/mcu123-lpc214x/nsh/defconfig
#
-# Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -139,8 +139,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -204,7 +204,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/mcu123-lpc214x/ostest/defconfig b/configs/mcu123-lpc214x/ostest/defconfig
index 58540313f1a..b3ce31e81a1 100644
--- a/configs/mcu123-lpc214x/ostest/defconfig
+++ b/configs/mcu123-lpc214x/ostest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/mcu123-lpc214x/ostest/defconfig
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -139,8 +139,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -204,7 +204,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/mcu123-lpc214x/src/Makefile b/configs/mcu123-lpc214x/src/Makefile
index aad225d089a..431d85fc0df 100644
--- a/configs/mcu123-lpc214x/src/Makefile
+++ b/configs/mcu123-lpc214x/src/Makefile
@@ -1,7 +1,7 @@
############################################################################
# configs/mcu123-lpc214x/src/Makefile
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -51,7 +51,7 @@ CSRCS = up_spi.c up_leds.c
ifeq ($(CONFIG_EXAMPLES_NSH_ARCHINIT),y)
CSRCS += up_nsh.c
endif
-ifeq ($(CONFIG_EXAMPLE),usbstorage)
+ifeq ($(CONFIG_APP_DIR),examples/usbstorage)
CSRCS += up_usbstrg.c
endif
diff --git a/configs/mcu123-lpc214x/usbserial/defconfig b/configs/mcu123-lpc214x/usbserial/defconfig
index 8eb24b0cca9..109fcee6b4c 100644
--- a/configs/mcu123-lpc214x/usbserial/defconfig
+++ b/configs/mcu123-lpc214x/usbserial/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/mcu123-lpc214x/usbserial/defconfig
#
-# Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -139,8 +139,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -204,7 +204,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=usbserial
+CONFIG_APP_DIR=examples/usbserial
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/mcu123-lpc214x/usbstorage/defconfig b/configs/mcu123-lpc214x/usbstorage/defconfig
index 1e7525c0e33..39dfe7b888d 100644
--- a/configs/mcu123-lpc214x/usbstorage/defconfig
+++ b/configs/mcu123-lpc214x/usbstorage/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/mcu123-lpc214x/usbstorage/defconfig
#
-# Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -139,8 +139,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -204,7 +204,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=usbstorage
+CONFIG_APP_DIR=examples/usbstorage
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/mx1ads/ostest/defconfig b/configs/mx1ads/ostest/defconfig
index f3dc4a970c1..11b3f36cc9e 100644
--- a/configs/mx1ads/ostest/defconfig
+++ b/configs/mx1ads/ostest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/mx1ads/ostest/defconfig
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -155,8 +155,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -220,7 +220,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ntosd-dm320/nettest/defconfig b/configs/ntosd-dm320/nettest/defconfig
index 0530270ef57..b032b8ea351 100644
--- a/configs/ntosd-dm320/nettest/defconfig
+++ b/configs/ntosd-dm320/nettest/defconfig
@@ -144,8 +144,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -209,7 +209,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=nettest
+CONFIG_APP_DIR=examples/nettest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ntosd-dm320/nsh/defconfig b/configs/ntosd-dm320/nsh/defconfig
index 88797543af9..8468d70cd79 100644
--- a/configs/ntosd-dm320/nsh/defconfig
+++ b/configs/ntosd-dm320/nsh/defconfig
@@ -143,8 +143,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -208,7 +208,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ntosd-dm320/ostest/defconfig b/configs/ntosd-dm320/ostest/defconfig
index d6d26eb6506..9c653ddb700 100644
--- a/configs/ntosd-dm320/ostest/defconfig
+++ b/configs/ntosd-dm320/ostest/defconfig
@@ -144,8 +144,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -209,7 +209,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ntosd-dm320/poll/defconfig b/configs/ntosd-dm320/poll/defconfig
index d32a9d85380..1d4b23e1fe4 100644
--- a/configs/ntosd-dm320/poll/defconfig
+++ b/configs/ntosd-dm320/poll/defconfig
@@ -144,8 +144,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -209,7 +209,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=poll
+CONFIG_APP_DIR=examples/poll
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ntosd-dm320/thttpd/defconfig b/configs/ntosd-dm320/thttpd/defconfig
index 9a2931cb77e..a970b11eb4c 100644
--- a/configs/ntosd-dm320/thttpd/defconfig
+++ b/configs/ntosd-dm320/thttpd/defconfig
@@ -148,8 +148,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -216,7 +216,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=thttpd
+CONFIG_APP_DIR=examples/thttpd
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ntosd-dm320/udp/defconfig b/configs/ntosd-dm320/udp/defconfig
index bf19c08117b..5cab3bb1dfa 100644
--- a/configs/ntosd-dm320/udp/defconfig
+++ b/configs/ntosd-dm320/udp/defconfig
@@ -144,8 +144,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -209,7 +209,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=udp
+CONFIG_APP_DIR=examples/udp
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/ntosd-dm320/uip/defconfig b/configs/ntosd-dm320/uip/defconfig
index 0e9d1381c2e..1125c2d1613 100644
--- a/configs/ntosd-dm320/uip/defconfig
+++ b/configs/ntosd-dm320/uip/defconfig
@@ -144,8 +144,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -209,7 +209,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=uip
+CONFIG_APP_DIR=examples/uip
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/nucleus2g/nsh/defconfig b/configs/nucleus2g/nsh/defconfig
index 994017d182d..06b9a84c033 100755
--- a/configs/nucleus2g/nsh/defconfig
+++ b/configs/nucleus2g/nsh/defconfig
@@ -206,8 +206,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -295,7 +295,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/nucleus2g/ostest/defconfig b/configs/nucleus2g/ostest/defconfig
index 6d75dfc87cc..ab7740c388d 100755
--- a/configs/nucleus2g/ostest/defconfig
+++ b/configs/nucleus2g/ostest/defconfig
@@ -206,8 +206,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -295,7 +295,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/nucleus2g/src/Makefile b/configs/nucleus2g/src/Makefile
index de5a3c76c96..c54ba8a0ab3 100755
--- a/configs/nucleus2g/src/Makefile
+++ b/configs/nucleus2g/src/Makefile
@@ -42,7 +42,7 @@ CSRCS = up_boot.c up_leds.c up_ssp.c
ifeq ($(CONFIG_EXAMPLES_NSH_ARCHINIT),y)
CSRCS += up_nsh.c
endif
-ifeq ($(CONFIG_EXAMPLE),usbstorage)
+ifeq ($(CONFIG_APP_DIR),examples/usbstorage)
CSRCS += up_usbstrg.c
endif
diff --git a/configs/nucleus2g/usbserial/defconfig b/configs/nucleus2g/usbserial/defconfig
index 506d719ba52..93ef69bfc40 100755
--- a/configs/nucleus2g/usbserial/defconfig
+++ b/configs/nucleus2g/usbserial/defconfig
@@ -206,8 +206,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -295,7 +295,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=usbserial
+CONFIG_APP_DIR=examples/usbserial
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/nucleus2g/usbstorage/defconfig b/configs/nucleus2g/usbstorage/defconfig
index 3f07556b286..2e1aa832248 100755
--- a/configs/nucleus2g/usbstorage/defconfig
+++ b/configs/nucleus2g/usbstorage/defconfig
@@ -206,8 +206,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -295,7 +295,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=usbstorage
+CONFIG_APP_DIR=examples/usbstorage
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/olimex-lpc2378/nsh/defconfig b/configs/olimex-lpc2378/nsh/defconfig
index d0a5f15c375..dc960eddf67 100755
--- a/configs/olimex-lpc2378/nsh/defconfig
+++ b/configs/olimex-lpc2378/nsh/defconfig
@@ -162,8 +162,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_MM_REGIONS - If the architecture includes multiple
@@ -193,7 +193,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimal support)
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
#CONFIG_DEBUG_MM=y
diff --git a/configs/olimex-lpc2378/ostest/defconfig b/configs/olimex-lpc2378/ostest/defconfig
index 1315af2e720..7dd1af60288 100755
--- a/configs/olimex-lpc2378/ostest/defconfig
+++ b/configs/olimex-lpc2378/ostest/defconfig
@@ -162,8 +162,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_MM_REGIONS - If the architecture includes multiple
@@ -193,7 +193,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_DEV_LOWCONSOLE - Use the simple, low-level serial console
# driver (minimal support)
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
#CONFIG_DEBUG_MM=y
diff --git a/configs/olimex-strp711/nettest/defconfig b/configs/olimex-strp711/nettest/defconfig
index 89a638d3e52..a91ad272c5c 100755
--- a/configs/olimex-strp711/nettest/defconfig
+++ b/configs/olimex-strp711/nettest/defconfig
@@ -206,8 +206,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -289,7 +289,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=nettest
+CONFIG_APP_DIR=examples/nettest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/olimex-strp711/nsh/defconfig b/configs/olimex-strp711/nsh/defconfig
index 7e5378ca72e..ab4d26a5c57 100644
--- a/configs/olimex-strp711/nsh/defconfig
+++ b/configs/olimex-strp711/nsh/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/olimes-strp711/nsh/defconfig
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -206,8 +206,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -271,7 +271,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/olimex-strp711/ostest/defconfig b/configs/olimex-strp711/ostest/defconfig
index 304bc742559..2aa5fd825d6 100644
--- a/configs/olimex-strp711/ostest/defconfig
+++ b/configs/olimex-strp711/ostest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/olimes-strp711/ostest/defconfig
#
-# Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -206,8 +206,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -271,7 +271,7 @@ CONFIG_HAVE_LIBM=n
# This format will support execution of NuttX binaries located
# in a ROMFS filesystem (see examples/nxflat).
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/pjrc-8051/defconfig b/configs/pjrc-8051/defconfig
index b8f3c487918..878daddb4a6 100644
--- a/configs/pjrc-8051/defconfig
+++ b/configs/pjrc-8051/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/pjrc-8051/defconfig
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -103,8 +103,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -165,7 +165,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/sam3u-ek/nsh/defconfig b/configs/sam3u-ek/nsh/defconfig
index ec41ea06f57..25854b1451f 100755
--- a/configs/sam3u-ek/nsh/defconfig
+++ b/configs/sam3u-ek/nsh/defconfig
@@ -203,8 +203,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -292,7 +292,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/sam3u-ek/nx/defconfig b/configs/sam3u-ek/nx/defconfig
index bc94309ec6d..16b0a79c3df 100755
--- a/configs/sam3u-ek/nx/defconfig
+++ b/configs/sam3u-ek/nx/defconfig
@@ -203,8 +203,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -292,7 +292,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=nx
+CONFIG_APP_DIR=examples/nx
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/sam3u-ek/ostest/defconfig b/configs/sam3u-ek/ostest/defconfig
index 9ee92ecf114..54706dcbda9 100755
--- a/configs/sam3u-ek/ostest/defconfig
+++ b/configs/sam3u-ek/ostest/defconfig
@@ -204,8 +204,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -293,7 +293,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/sam3u-ek/src/Makefile b/configs/sam3u-ek/src/Makefile
index edcb0ffa1ae..c80b99c8fa2 100755
--- a/configs/sam3u-ek/src/Makefile
+++ b/configs/sam3u-ek/src/Makefile
@@ -1,7 +1,7 @@
############################################################################
# configs/sam3u-ek/src/Makefile
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -47,7 +47,7 @@ endif
ifeq ($(CONFIG_SAM3U_HSMCI),y)
CSRCS += up_mmcsd.c
endif
-ifeq ($(CONFIG_EXAMPLE),usbstorage)
+ifeq ($(CONFIG_APP_DIR),examples/usbstorage)
CSRCS += up_usbstrg.c
endif
COBJS = $(CSRCS:.c=$(OBJEXT))
diff --git a/configs/sim/mount/defconfig b/configs/sim/mount/defconfig
index 0f4cd918526..606d69c5960 100644
--- a/configs/sim/mount/defconfig
+++ b/configs/sim/mount/defconfig
@@ -1,7 +1,7 @@
############################################################################
# sim/mount/defconfig
#
-# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -52,8 +52,8 @@ CONFIG_ARCH_BOARD_SIM=y
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -114,7 +114,7 @@ CONFIG_ARCH_BOARD_SIM=y
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=mount
+CONFIG_APP_DIR=examples/mount
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=y
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/sim/nettest/defconfig b/configs/sim/nettest/defconfig
index fde3940b747..d2c10377fb4 100644
--- a/configs/sim/nettest/defconfig
+++ b/configs/sim/nettest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/sim/nettest/defconfig
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -52,8 +52,8 @@ CONFIG_ARCH_BOARD_SIM=y
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -114,7 +114,7 @@ CONFIG_ARCH_BOARD_SIM=y
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=nettest
+CONFIG_APP_DIR=examples/nettest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/sim/nsh/defconfig b/configs/sim/nsh/defconfig
index 4089f0ad519..1cda58d4814 100644
--- a/configs/sim/nsh/defconfig
+++ b/configs/sim/nsh/defconfig
@@ -1,7 +1,7 @@
############################################################################
# sim/nsh/defconfig
#
-# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -52,8 +52,8 @@ CONFIG_ARCH_BOARD_SIM=y
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -114,7 +114,7 @@ CONFIG_ARCH_BOARD_SIM=y
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=y
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/sim/nx/defconfig b/configs/sim/nx/defconfig
index 1b33eb4820a..cebea94dda5 100644
--- a/configs/sim/nx/defconfig
+++ b/configs/sim/nx/defconfig
@@ -1,7 +1,7 @@
############################################################################
# sim/nx/defconfig
#
-# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -59,8 +59,8 @@ CONFIG_SIM_FBBPP=8
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -121,7 +121,7 @@ CONFIG_SIM_FBBPP=8
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=nx
+CONFIG_APP_DIR=examples/nx
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=y
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/sim/nx/defconfig-x11 b/configs/sim/nx/defconfig-x11
index 8b7c83f2418..8cb26d20186 100644
--- a/configs/sim/nx/defconfig-x11
+++ b/configs/sim/nx/defconfig-x11
@@ -1,7 +1,7 @@
############################################################################
# sim/nx/defconfig
#
-# Copyright (C) 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -59,8 +59,8 @@ CONFIG_SIM_FBBPP=32
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -121,7 +121,7 @@ CONFIG_SIM_FBBPP=32
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=nx
+CONFIG_APP_DIR=examples/nx
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=y
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/sim/ostest/defconfig b/configs/sim/ostest/defconfig
index ba1d7a61db4..01cad9c5804 100644
--- a/configs/sim/ostest/defconfig
+++ b/configs/sim/ostest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/sim/ostest/defconfig
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -52,8 +52,8 @@ CONFIG_ARCH_BOARD_SIM=y
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -114,7 +114,7 @@ CONFIG_ARCH_BOARD_SIM=y
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=y
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/sim/pashello/defconfig b/configs/sim/pashello/defconfig
index 33694968e6e..7c8b356ae27 100644
--- a/configs/sim/pashello/defconfig
+++ b/configs/sim/pashello/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/sim/pashello/defconfig
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -52,8 +52,8 @@ CONFIG_ARCH_BOARD_SIM=y
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -114,7 +114,7 @@ CONFIG_ARCH_BOARD_SIM=y
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=pashello
+CONFIG_APP_DIR=examples/pashello
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/skp16c26/ostest/defconfig b/configs/skp16c26/ostest/defconfig
index 4baa36c967e..9132a4a05ce 100644
--- a/configs/skp16c26/ostest/defconfig
+++ b/configs/skp16c26/ostest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/skp16c26/ostest/defconfig
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -150,8 +150,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -212,7 +212,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/stm3210e-eval/RIDE/defconfig b/configs/stm3210e-eval/RIDE/defconfig
index 5ad48fd6f16..9c2a78c4d5a 100755
--- a/configs/stm3210e-eval/RIDE/defconfig
+++ b/configs/stm3210e-eval/RIDE/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/stm3210e-eval/RIDE/defconfig
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -226,8 +226,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -315,7 +315,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=null
+CONFIG_APP_DIR=examples/null
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/stm3210e-eval/nsh/defconfig b/configs/stm3210e-eval/nsh/defconfig
index 97e81e3d5ef..757c0ee454f 100755
--- a/configs/stm3210e-eval/nsh/defconfig
+++ b/configs/stm3210e-eval/nsh/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/stm3210e-eval/nsh/defconfig
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -236,8 +236,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -325,7 +325,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/stm3210e-eval/ostest/defconfig b/configs/stm3210e-eval/ostest/defconfig
index b6fd693a34a..30c2346f82f 100755
--- a/configs/stm3210e-eval/ostest/defconfig
+++ b/configs/stm3210e-eval/ostest/defconfig
@@ -238,8 +238,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -327,7 +327,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/stm3210e-eval/src/Makefile b/configs/stm3210e-eval/src/Makefile
index 03d565a563a..d291a169307 100755
--- a/configs/stm3210e-eval/src/Makefile
+++ b/configs/stm3210e-eval/src/Makefile
@@ -1,7 +1,7 @@
############################################################################
# configs/stm3210e-eval/src/Makefile
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -46,7 +46,7 @@ CSRCS = up_boot.c up_leds.c up_buttons.c up_spi.c up_usbdev.c \
ifeq ($(CONFIG_EXAMPLES_NSH_ARCHINIT),y)
CSRCS += up_nsh.c
endif
-ifeq ($(CONFIG_EXAMPLE),usbstorage)
+ifeq ($(CONFIG_APP_DIR),examples/usbstorage)
CSRCS += up_usbstrg.c
endif
COBJS = $(CSRCS:.c=$(OBJEXT))
diff --git a/configs/stm3210e-eval/usbserial/defconfig b/configs/stm3210e-eval/usbserial/defconfig
index 77fd6212b2a..f328ffc5428 100755
--- a/configs/stm3210e-eval/usbserial/defconfig
+++ b/configs/stm3210e-eval/usbserial/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/stm3210e-eval/usbserial/defconfig
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -238,8 +238,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -327,7 +327,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=usbserial
+CONFIG_APP_DIR=examples/usbserial
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_USB=n
diff --git a/configs/stm3210e-eval/usbstorage/defconfig b/configs/stm3210e-eval/usbstorage/defconfig
index a1cd47c3350..d0d665dcff4 100755
--- a/configs/stm3210e-eval/usbstorage/defconfig
+++ b/configs/stm3210e-eval/usbstorage/defconfig
@@ -236,8 +236,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -325,7 +325,7 @@ CONFIG_HAVE_LIBM=n
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
# the worker thread. Default: 4
#
-CONFIG_EXAMPLE=usbstorage
+CONFIG_APP_DIR=examples/usbstorage
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_FS=n
diff --git a/configs/us7032evb1/nsh/defconfig b/configs/us7032evb1/nsh/defconfig
index 165f913cdd4..6c3d9ff1a16 100644
--- a/configs/us7032evb1/nsh/defconfig
+++ b/configs/us7032evb1/nsh/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/us7032evb1/nsh/defconfig
#
-# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -154,8 +154,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -216,7 +216,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/us7032evb1/ostest/defconfig b/configs/us7032evb1/ostest/defconfig
index 595f7afc58f..a06b3312294 100644
--- a/configs/us7032evb1/ostest/defconfig
+++ b/configs/us7032evb1/ostest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/us7032evb1/ostest/defconfig
#
-# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -154,8 +154,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -216,7 +216,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/xtrs/nsh/defconfig b/configs/xtrs/nsh/defconfig
index 414ee636e04..8df793ebda2 100644
--- a/configs/xtrs/nsh/defconfig
+++ b/configs/xtrs/nsh/defconfig
@@ -1,7 +1,7 @@
############################################################################
# sim/xtrs/nsh/defconfig
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -95,8 +95,8 @@ CONFIG_LINKER_ROM_AT_0000=y
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -160,7 +160,7 @@ CONFIG_LINKER_ROM_AT_0000=y
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/xtrs/ostest/defconfig b/configs/xtrs/ostest/defconfig
index b3f3373c156..f9f92ccbac3 100644
--- a/configs/xtrs/ostest/defconfig
+++ b/configs/xtrs/ostest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/xtrs/ostest/defconfig
#
-# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -95,8 +95,8 @@ CONFIG_LINKER_ROM_AT_0000=y
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -160,7 +160,7 @@ CONFIG_LINKER_ROM_AT_0000=y
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/xtrs/pashello/defconfig b/configs/xtrs/pashello/defconfig
index 10612e62dae..e40a1c00f88 100644
--- a/configs/xtrs/pashello/defconfig
+++ b/configs/xtrs/pashello/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/xtrs/pashello/defconfig
#
-# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -95,8 +95,8 @@ CONFIG_LINKER_ROM_AT_0000=y
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -160,7 +160,7 @@ CONFIG_LINKER_ROM_AT_0000=y
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=pashello
+CONFIG_APP_DIR=examples/pashello
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/z16f2800100zcog/ostest/defconfig b/configs/z16f2800100zcog/ostest/defconfig
index b453d023509..d77f486b8f8 100644
--- a/configs/z16f2800100zcog/ostest/defconfig
+++ b/configs/z16f2800100zcog/ostest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/z16f2800100zcog/ostest/defconfig
#
-# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -125,8 +125,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -189,7 +189,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/z16f2800100zcog/pashello/defconfig b/configs/z16f2800100zcog/pashello/defconfig
index 257bc738099..61409a6af24 100644
--- a/configs/z16f2800100zcog/pashello/defconfig
+++ b/configs/z16f2800100zcog/pashello/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/z16f2800100zcog/pashello/defconfig
#
-# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -125,8 +125,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -189,7 +189,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=pashello
+CONFIG_APP_DIR=examples/pashello
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/z80sim/nsh/defconfig b/configs/z80sim/nsh/defconfig
index 10e7a465173..3616c0f3526 100644
--- a/configs/z80sim/nsh/defconfig
+++ b/configs/z80sim/nsh/defconfig
@@ -1,7 +1,7 @@
############################################################################
# sim/z80sim/nsh/defconfig
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -85,8 +85,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -150,7 +150,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=nsh
+CONFIG_APP_DIR=examples/nsh
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/z80sim/ostest/defconfig b/configs/z80sim/ostest/defconfig
index 301fa4e4cf0..2c6fc0fda0a 100644
--- a/configs/z80sim/ostest/defconfig
+++ b/configs/z80sim/ostest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/z80sim/ostest/defconfig
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -85,8 +85,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -150,7 +150,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/z80sim/pashello/defconfig b/configs/z80sim/pashello/defconfig
index 7b95e2bd199..6a740d231be 100644
--- a/configs/z80sim/pashello/defconfig
+++ b/configs/z80sim/pashello/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/z80sim/pashello/defconfig
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -85,8 +85,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -150,7 +150,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=pashello
+CONFIG_APP_DIR=examples/pashello
CONFIG_DEBUG=n
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/z8encore000zco/ostest/defconfig b/configs/z8encore000zco/ostest/defconfig
index 24b07672330..73b8490c894 100644
--- a/configs/z8encore000zco/ostest/defconfig
+++ b/configs/z8encore000zco/ostest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/z8encore000zco/ostest/defconfig
#
-# Copyright (C) 2008, 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -117,8 +117,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -184,7 +184,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/configs/z8f64200100kit/ostest/defconfig b/configs/z8f64200100kit/ostest/defconfig
index 04388fc0244..dc070f14321 100644
--- a/configs/z8f64200100kit/ostest/defconfig
+++ b/configs/z8f64200100kit/ostest/defconfig
@@ -1,7 +1,7 @@
############################################################################
# configs/z8f64200100kit/ostest/defconfig
#
-# Copyright (C) 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -117,8 +117,8 @@ CONFIG_HAVE_LIBM=n
#
# General OS setup
#
-# CONFIG_EXAMPLE - identifies the subdirectory in examples
-# that will be used in the build
+# CONFIG_APP_DIR - Identifies the relative path to the directory
+# that builds the application to link with NuttX.
# CONFIG_DEBUG - enables built-in debug options
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
@@ -184,7 +184,7 @@ CONFIG_HAVE_LIBM=n
# desciptors by task_create() when a new task is started. If
# set, all sockets will appear to be closed in the new task.
#
-CONFIG_EXAMPLE=ostest
+CONFIG_APP_DIR=examples/ostest
CONFIG_DEBUG=y
CONFIG_DEBUG_VERBOSE=n
CONFIG_DEBUG_SYMBOLS=n
diff --git a/examples/README.txt b/examples/README.txt
index ad301dbab20..e6075ec8485 100644
--- a/examples/README.txt
+++ b/examples/README.txt
@@ -2,11 +2,13 @@ examples
^^^^^^^^
The examples directory contains several sample applications that
- can be linked with nuttx. The specific example is selected in the
- configs//defconfig file via the CONFIG_EXAMPLE setting.
- For example,
+ can be linked with NuttX. The specific example is selected in the
+ configs//defconfig file via the CONFIG_APP_DIR setting.
+ This setting provides the path to the directory containing the
+ application Makefile (this path is a relative to the NuttX top-
+ level directory). For example,
- CONFIG_EXAMPLE=ostest
+ CONFIG_APP_DIR=examples/ostest
Selects the examples/ostest example.
diff --git a/examples/dhcpd/Makefile b/examples/dhcpd/Makefile
index aee2886686d..2a154136b23 100644
--- a/examples/dhcpd/Makefile
+++ b/examples/dhcpd/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/dhcpd/Makefile
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/hello/Makefile b/examples/hello/Makefile
index fd91fef115b..5fd80c39491 100644
--- a/examples/hello/Makefile
+++ b/examples/hello/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/hello/Makefile
#
-# Copyright (C) 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/helloxx/Makefile b/examples/helloxx/Makefile
index 7210ea2f170..5a90b03c58b 100755
--- a/examples/helloxx/Makefile
+++ b/examples/helloxx/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/helloxx/Makefile
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -46,7 +46,7 @@ CXXOBJS = $(CXXSRCS:.cxx=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS) $(CXXSRCS)
OBJS = $(AOBJS) $(COBJS) $(CXXOBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
.PHONY: clean depend chkcxx
diff --git a/examples/igmp/Makefile b/examples/igmp/Makefile
index 2f3d93ff49a..b1e92b942d4 100755
--- a/examples/igmp/Makefile
+++ b/examples/igmp/Makefile
@@ -45,7 +45,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/mount/Makefile b/examples/mount/Makefile
index 084fc8fb6e3..31067966e82 100644
--- a/examples/mount/Makefile
+++ b/examples/mount/Makefile
@@ -1,7 +1,7 @@
############################################################################
# Makefile
#
-# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/nettest/Makefile b/examples/nettest/Makefile
index 6677f847f87..5fda016fbde 100644
--- a/examples/nettest/Makefile
+++ b/examples/nettest/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/nettest/Makefile
#
-# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -51,7 +51,7 @@ TARG_COBJS = $(TARG_CSRCS:.c=$(OBJEXT))
TARG_SRCS = $(TARG_ASRCS) $(TARG_CSRCS)
TARG_OBJS = $(TARG_AOBJS) $(TARG_COBJS)
-TARG_BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+TARG_BIN = libapp$(LIBEXT)
HOSTCFLAGS += -DCONFIG_EXAMPLE_NETTEST_HOST=1
ifeq ($(CONFIG_EXAMPLE_NETTEST_SERVER),y)
diff --git a/examples/nsh/Makefile b/examples/nsh/Makefile
index 341f5908029..41f1aa44e02 100644
--- a/examples/nsh/Makefile
+++ b/examples/nsh/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/nsh/Makefile
#
-# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -65,7 +65,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/null/Makefile b/examples/null/Makefile
index 3eb745b4135..53efcbe392e 100644
--- a/examples/null/Makefile
+++ b/examples/null/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/null/Makefile
#
-# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/nx/Makefile b/examples/nx/Makefile
index 002e255ec0a..ea19ebcc5b3 100644
--- a/examples/nx/Makefile
+++ b/examples/nx/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/nxflat/Makefile
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -50,7 +50,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/nxflat/Makefile b/examples/nxflat/Makefile
index fa740370f6b..dae8a4ea7d3 100644
--- a/examples/nxflat/Makefile
+++ b/examples/nxflat/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/nxflat/Makefile
#
-# Copyright (C) 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
.PHONY: headers clean distclean
diff --git a/examples/ostest/Makefile b/examples/ostest/Makefile
index d04de7bfec2..5fc3cfad9e2 100644
--- a/examples/ostest/Makefile
+++ b/examples/ostest/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/ostest/Makefile
#
-# Copyright (C) 2007-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -85,7 +85,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/pashello/Makefile b/examples/pashello/Makefile
index aeb2200285a..fd91e112458 100644
--- a/examples/pashello/Makefile
+++ b/examples/pashello/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/pashello/Makefile
#
-# Copyright (C) 2008-2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -51,7 +51,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/pipe/Makefile b/examples/pipe/Makefile
index 4f61e86b888..72cd67ee700 100644
--- a/examples/pipe/Makefile
+++ b/examples/pipe/Makefile
@@ -1,7 +1,7 @@
############################################################################
# Makefile
#
-# Copyright (C) 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/poll/Makefile b/examples/poll/Makefile
index e91f5018cf4..c8c4f1f1ab5 100644
--- a/examples/poll/Makefile
+++ b/examples/poll/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/poll/Makefile
#
-# Copyright (C) 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/romfs/Makefile b/examples/romfs/Makefile
index 301d1b27cbe..67f68de9dba 100644
--- a/examples/romfs/Makefile
+++ b/examples/romfs/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/romfs/Makefile
#
-# Copyright (C) 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -45,7 +45,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/sendmail/Makefile b/examples/sendmail/Makefile
index 0907345d46a..2fac537d24d 100644
--- a/examples/sendmail/Makefile
+++ b/examples/sendmail/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/sendmail/Makefile
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/serloop/Makefile b/examples/serloop/Makefile
index a75d9a96451..4f6f53a6b3e 100644
--- a/examples/serloop/Makefile
+++ b/examples/serloop/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/serloop/Makefile
#
-# Copyright (C) 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/thttpd/Makefile b/examples/thttpd/Makefile
index 2d9b271a06d..696117e6420 100644
--- a/examples/thttpd/Makefile
+++ b/examples/thttpd/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/thttpd/Makefile
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
.PHONY: clean headers
diff --git a/examples/udp/Makefile b/examples/udp/Makefile
index a4d4fdd5e47..da833f01058 100644
--- a/examples/udp/Makefile
+++ b/examples/udp/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/udp/Makefile
#
-# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -51,7 +51,7 @@ TARG_COBJS = $(TARG_CSRCS:.c=$(OBJEXT))
TARG_SRCS = $(TARG_ASRCS) $(TARG_CSRCS)
TARG_OBJS = $(TARG_AOBJS) $(TARG_COBJS)
-TARG_BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+TARG_BIN = libapp$(LIBEXT)
HOSTCFLAGS += -DCONFIG_EXAMPLE_UDP_HOST=1
ifeq ($(CONFIG_EXAMPLE_UDP_SERVER),y)
diff --git a/examples/uip/Makefile b/examples/uip/Makefile
index c9b6932d8e3..e90f7ca4267 100644
--- a/examples/uip/Makefile
+++ b/examples/uip/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/uip/Makefile
#
-# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007-2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/usbserial/Makefile b/examples/usbserial/Makefile
index f71008783e9..a2fe9f41b3f 100644
--- a/examples/usbserial/Makefile
+++ b/examples/usbserial/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/usbserial/Makefile
#
-# Copyright (C) 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/usbstorage/Makefile b/examples/usbstorage/Makefile
index 43bd4d4e6bc..de69e59111d 100644
--- a/examples/usbstorage/Makefile
+++ b/examples/usbstorage/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/hello/Makefile
#
-# Copyright (C) 2008 Gregory Nutt. All rights reserved.
+# Copyright (C) 2008, 2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -45,7 +45,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)
diff --git a/examples/wget/Makefile b/examples/wget/Makefile
index aad645f3c93..dc00702c74a 100644
--- a/examples/wget/Makefile
+++ b/examples/wget/Makefile
@@ -1,7 +1,7 @@
############################################################################
# examples/wget/Makefile
#
-# Copyright (C) 2009 Gregory Nutt. All rights reserved.
+# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt
#
# Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,7 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS)
OBJS = $(AOBJS) $(COBJS)
-BIN = lib$(CONFIG_EXAMPLE)$(LIBEXT)
+BIN = libapp$(LIBEXT)
all: $(BIN)