summaryrefslogtreecommitdiffstats
path: root/apps/Makefile
diff options
context:
space:
mode:
authorpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-04-14 20:01:08 +0000
committerpatacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679>2012-04-14 20:01:08 +0000
commitf596d5fb9328ab338cbd0e8538887c12ec083f66 (patch)
tree48c981689060f4b6bbbcd366051a377e96890318 /apps/Makefile
parent406ba1461b4ef27a9ec4f07873116baaef5fd1d4 (diff)
Developing a new way to handle application configurations
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4609 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'apps/Makefile')
-rw-r--r--apps/Makefile41
1 files changed, 41 insertions, 0 deletions
diff --git a/apps/Makefile b/apps/Makefile
index f54a9104df..979f204b5a 100644
--- a/apps/Makefile
+++ b/apps/Makefile
@@ -35,6 +35,7 @@
############################################################################
-include $(TOPDIR)/Make.defs
+-include $(TOPDIR)/.config
APPDIR = ${shell pwd}
@@ -50,6 +51,45 @@ APPDIR = ${shell pwd}
CONFIGURED_APPS =
SUBDIRS = examples graphics interpreters namedapp nshlib netutils system vsn
+# There are two different mechanisms for obtaining the list of configured
+# directories:
+#
+# (1) In the legacy method, these paths are all provided in the appconfig
+# file that is copied to the top-level apps/ directory as .config
+# (2) With the development of the NuttX configuration tool, however, the
+# selected applications are now enabled by the configuration tool.
+# The apps/.config file is no longer used. Instead, the set of
+# configured build directories can be found by including a Make.defs
+# file contained in each of the apps/subdirectories.
+#
+# When the NuttX configuration tools executes, it will always define the
+# configure CONFIG_NUTTX_NEWCONFIG to select between these two cases. Then
+# legacy appconfig files will still work but newly configuration files will
+# also work. Eventually the CONFIG_NUTTX_NEWCONFIG option will be phased
+# out.
+
+ifeq ($(CONFIG_NUTTX_NEWCONFIG),y)
+
+include examples/Make.defs
+include graphics/Make.defs
+include interpreters/Make.defs
+include namedapp/Make.defs
+include netutils/Make.defs
+include nshlib/Make.defs
+include system/Make.defs
+include vsn/Make.defs
+
+
+# INSTALLED_APPS is the list of currently available application directories. It
+# is the same as CONFIGURED_APPS, but filtered to exclude any non-existent
+# application directory. namedapp is always in the list of applications to be
+# built.
+
+INSTALLED_APPS =
+
+# The legacy case:
+
+else
-include .config
# INSTALLED_APPS is the list of currently available application directories. It
@@ -58,6 +98,7 @@ SUBDIRS = examples graphics interpreters namedapp nshlib netutils system vsn
# built.
INSTALLED_APPS = namedapp
+endif
# Create the list of available applications (INSTALLED_APPS)