summaryrefslogtreecommitdiff
path: root/nuttx/tools
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-11 14:20:40 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-02-11 14:20:40 +0000
commit75e67f05d4b97efc32d95b478ec1c1f959992a4b (patch)
tree8cf471347f767130a152b249bafd7de1a6017757 /nuttx/tools
parent4a62de545bf87610c2415218e144ddef4dd0e75c (diff)
downloadpx4-nuttx-75e67f05d4b97efc32d95b478ec1c1f959992a4b.tar.gz
px4-nuttx-75e67f05d4b97efc32d95b478ec1c1f959992a4b.tar.bz2
px4-nuttx-75e67f05d4b97efc32d95b478ec1c1f959992a4b.zip
Add logic to re-direct debug output to a sysloggin device
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4381 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/tools')
-rw-r--r--nuttx/tools/mkconfig.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/nuttx/tools/mkconfig.c b/nuttx/tools/mkconfig.c
index 22594c0ae..7e3162b8f 100644
--- a/nuttx/tools/mkconfig.c
+++ b/nuttx/tools/mkconfig.c
@@ -1,8 +1,8 @@
/****************************************************************************
* tools/mkconfig.c
*
- * Copyright (C) 2007-2011 Gregory Nutt. All rights reserved.
- * Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+ * Copyright (C) 2007-2012 Gregory Nutt. All rights reserved.
+ * Author: Gregory Nutt <gnutt@nuttx.org>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -144,7 +144,13 @@ int main(int argc, char **argv, char **envp)
printf("# if CONFIG_NFILE_STREAMS > 0 && CONFIG_NFILE_STREAMS < 3\n");
printf("# undef CONFIG_NFILE_STREAMS\n");
printf("# define CONFIG_NFILE_STREAMS 3\n");
- printf("# endif\n");
+ printf("# endif\n\n");
+ printf("/* If no console is selected, then disable all console devices */\n\n");
+ printf("#else\n");
+ printf("# undef CONFIG_DEV_LOWCONSOLE\n");
+ printf("# undef CONFIG_RAMLOG_CONSOLE\n");
+ printf("# undef CONFIG_CDCACM_CONSOLE\n");
+ printf("# undef CONFIG_PL2303_CONSOLE\n");
printf("#endif\n\n");
printf("/* If priority inheritance is disabled, then do not allocate any\n");
printf(" * associated resources.\n");