diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-08-16 15:00:34 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2012-08-16 15:00:34 +0000 |
commit | 6a2e2ffd757eda3190cc5c8d15133899e82e5a62 (patch) | |
tree | 06d91865318b3069d36517a1795220a6b2bf0ed7 /nuttx/tools/mkconfig.c | |
parent | aafd9e1a14fcb857c9e843c78563a3a935510b9e (diff) | |
download | px4-nuttx-6a2e2ffd757eda3190cc5c8d15133899e82e5a62.tar.gz px4-nuttx-6a2e2ffd757eda3190cc5c8d15133899e82e5a62.tar.bz2 px4-nuttx-6a2e2ffd757eda3190cc5c8d15133899e82e5a62.zip |
mkconfig now calculates DRAM_END if not provided
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5030 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/tools/mkconfig.c')
-rw-r--r-- | nuttx/tools/mkconfig.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/nuttx/tools/mkconfig.c b/nuttx/tools/mkconfig.c index 97e2a9c34..b3749266c 100644 --- a/nuttx/tools/mkconfig.c +++ b/nuttx/tools/mkconfig.c @@ -174,6 +174,12 @@ int main(int argc, char **argv, char **envp) printf("#ifndef CONFIG_MM_REGIONS\n"); printf("# define CONFIG_MM_REGIONS 1\n"); printf("#endif\n\n"); + printf("/* If the end of RAM is not specified then it is assumed to be the beginning\n"); + printf(" * of RAM plus the RAM size.\n"); + printf(" */\n\n"); + printf("#ifndef CONFIG_DRAM_END\n"); + printf("# define CONFIG_DRAM_END (CONFIG_DRAM_START+CONFIG_DRAM_SIZE)\n"); + printf("#endif\n\n"); printf("/* If no file streams are configured, then make certain that buffered I/O\n"); printf(" * support is disabled\n"); printf(" */\n\n"); @@ -256,6 +262,7 @@ int main(int argc, char **argv, char **envp) printf("# undef CONFIG_DEBUG_USB\n"); printf("# undef CONFIG_DEBUG_GRAPHICS\n"); printf("# undef CONFIG_DEBUG_GPIO\n"); + printf("# undef CONFIG_DEBUG_SPI\n"); printf("# undef CONFIG_DEBUG_STACK\n"); printf("#endif\n\n"); printf("#endif /* __INCLUDE_NUTTX_CONFIG_H */\n"); |