summaryrefslogtreecommitdiff
path: root/nuttx/examples/nsh/nsh_romfsetc.c
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/examples/nsh/nsh_romfsetc.c')
-rw-r--r--nuttx/examples/nsh/nsh_romfsetc.c12
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