diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-08 00:27:35 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2011-03-08 00:27:35 +0000 |
commit | 8f66f424602e26f0a43a62beaa3c2aec7775c890 (patch) | |
tree | 28249f121ebc9fd071e24222304b4c0770b6fd86 /nuttx/examples/nsh/nsh_romfsetc.c | |
parent | ddd126cb2969bec42a4430b7d8fcdd45de4a42c1 (diff) | |
download | nuttx-8f66f424602e26f0a43a62beaa3c2aec7775c890.tar.gz nuttx-8f66f424602e26f0a43a62beaa3c2aec7775c890.tar.bz2 nuttx-8f66f424602e26f0a43a62beaa3c2aec7775c890.zip |
Add support for platoform specific ROMFS startup files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3350 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/nsh/nsh_romfsetc.c')
-rw-r--r-- | nuttx/examples/nsh/nsh_romfsetc.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/nuttx/examples/nsh/nsh_romfsetc.c b/nuttx/examples/nsh/nsh_romfsetc.c index d16da0a7a..482a3618c 100644 --- a/nuttx/examples/nsh/nsh_romfsetc.c +++ b/nuttx/examples/nsh/nsh_romfsetc.c @@ -1,7 +1,7 @@ /**************************************************************************** * examples/nsh/nsh_romfsetc.c * - * Copyright (C) 2008-2010 Gregory Nutt. All rights reserved. + * Copyright (C) 2008-2011 Gregory Nutt. All rights reserved. * Author: Gregory Nutt <spudmonkey@racsa.co.cr> * * Redistribution and use in source and binary forms, with or without @@ -49,7 +49,15 @@ #ifdef CONFIG_EXAMPLES_NSH_ROMFSETC -#include "nsh_romfsimg.h" +/* Should we use the default ROMFS image? Or a custom, board-specific + * ROMFS image? + */ + +#ifdef CONFIG_EXAMPLES_NSH_ARCHROMFS +# include <arch/board/nsh_romfsimg.h> +#else +# include "nsh_romfsimg.h" +#endif /**************************************************************************** * Definitions |