summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nuttx/ChangeLog3
-rw-r--r--nuttx/Documentation/NuttX.html32
-rw-r--r--nuttx/Documentation/NuttxPortingGuide.html21
-rw-r--r--nuttx/Makefile2
-rw-r--r--nuttx/arch/README.txt6
-rw-r--r--nuttx/configs/README.txt5
-rwxr-xr-xnuttx/configs/c5471evm/setenv.sh8
-rwxr-xr-xnuttx/configs/m68332evb/setenv.sh8
-rwxr-xr-xnuttx/configs/mcu123-lpc214x/setenv.sh8
-rwxr-xr-xnuttx/configs/ntosd-dm320/setenv.sh8
-rwxr-xr-xnuttx/configs/pjrc-8051/setenv.sh8
-rwxr-xr-xnuttx/configs/sim/setenv.sh8
-rw-r--r--nuttx/configs/z80sim/defconfig4
-rwxr-xr-xnuttx/configs/z80sim/setenv.sh8
-rw-r--r--nuttx/include/nuttx/compiler.h94
-rwxr-xr-xnuttx/tools/configure.sh17
-rwxr-xr-xnuttx/tools/mknulldeps.sh34
17 files changed, 210 insertions, 64 deletions
diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog
index e046982cfd..7c8030fa3f 100644
--- a/nuttx/ChangeLog
+++ b/nuttx/ChangeLog
@@ -291,3 +291,6 @@
* Add support for Pascal P-Code interpreter
0.3.7 2008-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
+
+ * Began adding support for the Zilog Z16F using the Zilog
+ Z16F2800100ZCOG Development Kit.
diff --git a/nuttx/Documentation/NuttX.html b/nuttx/Documentation/NuttX.html
index b0d9a6390e..a82874b270 100644
--- a/nuttx/Documentation/NuttX.html
+++ b/nuttx/Documentation/NuttX.html
@@ -8,7 +8,7 @@
<tr align="center" bgcolor="#e4e4e4">
<td>
<h1><big><font color="#3c34ec"><i>NuttX RTOS</i></font></big></h1>
- <p>Last Updated: January 6, 2008</p>
+ <p>Last Updated: January 8, 2008</p>
</td>
</tr>
</table>
@@ -574,7 +574,28 @@
<tr>
<td valign="top"><img src="favicon.ico"></td>
<td bgcolor="#5eaee1">
- <b>Z80</b>
+ <b>Zilog Z16F</b>
+ </td>
+</tr>
+<tr>
+ <td><br></td>
+ <td>
+ <p>
+ <b>Zilog z16f Microncontroller</b>.
+ This port use the Zilog z16f2800100zcog development kit and the Zilog
+ ZDS-II Windows command line tools.
+ The development envirnoment is Cygwin under WinXP.
+ </p>
+ <p>
+ <b>STATUS:</b>
+ This is a work in progress.
+ </p>
+ </td>
+</tr>
+<tr>
+ <td valign="top"><img src="favicon.ico"></td>
+ <td bgcolor="#5eaee1">
+ <b>Zilog Z80</b>
</td>
</tr>
<tr>
@@ -583,7 +604,7 @@
<p>
<b>Z80 Instruction Set Simulator</b>.
This port uses the <a href="http://sdcc.sourceforge.net/">SDCC</a> toolchain
- under Linux or Cygwin (verfied using version 2.6.0).
+ under Linux or Cygwin (verified using version 2.6.0).
This port has been verified using only a Z80 instruction simulator.
That simulator can be found in the NuttX CVS
<a href="http://nuttx.cvs.sourceforge.net/nuttx/misc/sims/z80sim/">here</a>.
@@ -750,6 +771,9 @@ Other memory:
<pre><ul>
0.3.7 2007-xx-xx Gregory Nutt &lt;spudmonkey@racsa.co.cr&gt;
+
+ * Began adding support for the Zilog Z16F using the Zilog
+ Z16F2800100ZCOG Development Kit.
</pre></ul>
<table width ="100%">
@@ -809,7 +833,7 @@ Other memory:
<li>TI is a tradename of Texas Instruments Incorporated.</li>
<li>UNIX is a registered trademark of The Open Group.</li>
<li>VxWorks is a registered trademark of Wind River Systems, Incorporated.</li>
- <li>Z80 is a registered trademark of Zilog, Inc.</li>
+ <li>ZDS, ZNEO, Z16F, Z80, and Zilog are a registered trademark of Zilog, Inc.</li>
</ul>
<p>
NOTE: NuttX is <i>not</i> licensed to use the POSIX trademark. NuttX uses the POSIX
diff --git a/nuttx/Documentation/NuttxPortingGuide.html b/nuttx/Documentation/NuttxPortingGuide.html
index 39769e6019..1d266406ac 100644
--- a/nuttx/Documentation/NuttxPortingGuide.html
+++ b/nuttx/Documentation/NuttxPortingGuide.html
@@ -414,15 +414,22 @@
</li>
<li><code>arch/m68322</code>
- A work in progress.</li>
+ A work in progress.
</li>
<li><code>arch/pjrc-8051</code>:
- 8051 Microcontroller. This port is not quite ready for prime time.</li>
+ 8051 Microcontroller. This port is not quite ready for prime time.
</li>
- <li><code>arch/z80</code>:
- z80 Microcontroller. This port has been verified using only a z80 instruction simulator.</li>
+ <li><code>arch/z16f</code>:
+ Zilog z16f Microcontroller.
+ This port uses the Zilog z16f2800100zcog Development Kit.
+ This is a work in progress.
+ </li>
+
+ <li><code>arch/z80</code>:
+ Zilog z80 Microcontroller.
+ This port has been verified using only a z80 instruction simulator.
</li>
</ul>
@@ -592,6 +599,12 @@
This port is not quite ready for prime time.
</li>
+ <li><code>configs/z16f2800100zcog</code>
+ z16f Microncontroller.
+ This port use the Zilog z16f2800100zcog development kit and the
+ Zilog ZDS-II Windows command line tools.
+ The development environment is Cygwin under WinXP.
+
<li><code>configs/z80sim</code>:
z80 Microcontroller. This port uses a Z80 instruction set simulator.
That simulator can be found in the NuttX CVS
diff --git a/nuttx/Makefile b/nuttx/Makefile
index 087a1c2bd3..b7e9047f33 100644
--- a/nuttx/Makefile
+++ b/nuttx/Makefile
@@ -33,7 +33,7 @@
#
############################################################
-TOPDIR = ${shell pwd}
+TOPDIR := ${shell pwd | sed -e 's/ /\\ /g'}
-include ${TOPDIR}/.config
-include ${TOPDIR}/Make.defs
diff --git a/nuttx/arch/README.txt b/nuttx/arch/README.txt
index 104d988e74..52ad1f3e1b 100644
--- a/nuttx/arch/README.txt
+++ b/nuttx/arch/README.txt
@@ -159,8 +159,12 @@ arch/m68322
arch/pjrc-8051
8051 Microcontroller. This port is not quite ready for prime time.
+arch/z16
+ ZiLog z16f Microcontroller.
+ STATUS: A work in progress
+
arch/z80
- z80 Microcontroller.
+ ZiLog z80 Microcontroller.
STATUS: Functional with no known defects. There are still several
OS features that have not yet been tested (e.g., networking).
diff --git a/nuttx/configs/README.txt b/nuttx/configs/README.txt
index b3470680a4..8c10ecbce7 100644
--- a/nuttx/configs/README.txt
+++ b/nuttx/configs/README.txt
@@ -320,6 +320,11 @@ configs/pjrc-8051
8051 Microcontroller. This port uses the PJRC 87C52 development system
and the SDCC toolchain. This port is not quite ready for prime time.
+configs/z16f2800100zcog
+ z16f Microncontroller. This port use the Zilog z16f2800100zcog
+ development kit and the Zilog ZDS-II Windows command line tools. The
+ development envirnoment is Cygwin under WinXP.
+
configs/z80zim
z80 Microcontroller. This port uses a Z80 instruction set simulator.
That simulator can be found in the NuttX CVS at
diff --git a/nuttx/configs/c5471evm/setenv.sh b/nuttx/configs/c5471evm/setenv.sh
index bb3bd49c5c..38d04dfcb4 100755
--- a/nuttx/configs/c5471evm/setenv.sh
+++ b/nuttx/configs/c5471evm/setenv.sh
@@ -1,7 +1,7 @@
#!/bin/sh
-# setenv.sh
+# c5471evm/setenv.sh
#
-# Copyright (C) 2007 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
#
# Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
-# 3. Neither the name Gregory Nutt nor the names of its contributors may be
+# 3. Neither the name NuttX nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
@@ -32,7 +32,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#
-if [ "$(basename $0)" = "setenv" ] ; then
+if [ "$(basename $0)" = "setenv.sh" ] ; then
echo "You must source this script, not run it!" 1>&2
exit 1
fi
diff --git a/nuttx/configs/m68332evb/setenv.sh b/nuttx/configs/m68332evb/setenv.sh
index 506a6c624b..ce9b289fa6 100755
--- a/nuttx/configs/m68332evb/setenv.sh
+++ b/nuttx/configs/m68332evb/setenv.sh
@@ -1,7 +1,7 @@
#!/bin/sh
-# setenv.sh
+# m68322evb/setenv.sh
#
-# Copyright (C) 2007 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
#
# Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
-# 3. Neither the name Gregory Nutt nor the names of its contributors may be
+# 3. Neither the name NuttX nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
@@ -32,7 +32,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#
-if [ "$(basename $0)" = "setenv" ] ; then
+if [ "$(basename $0)" = "setenv.sh" ] ; then
echo "You must source this script, not run it!" 1>&2
exit 1
fi
diff --git a/nuttx/configs/mcu123-lpc214x/setenv.sh b/nuttx/configs/mcu123-lpc214x/setenv.sh
index bb3bd49c5c..a03f316180 100755
--- a/nuttx/configs/mcu123-lpc214x/setenv.sh
+++ b/nuttx/configs/mcu123-lpc214x/setenv.sh
@@ -1,7 +1,7 @@
#!/bin/sh
-# setenv.sh
+# mcu123-lpc2148/setenv.sh
#
-# Copyright (C) 2007 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
#
# Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
-# 3. Neither the name Gregory Nutt nor the names of its contributors may be
+# 3. Neither the name NuttX nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
@@ -32,7 +32,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#
-if [ "$(basename $0)" = "setenv" ] ; then
+if [ "$(basename $0)" = "setenv.sh" ] ; then
echo "You must source this script, not run it!" 1>&2
exit 1
fi
diff --git a/nuttx/configs/ntosd-dm320/setenv.sh b/nuttx/configs/ntosd-dm320/setenv.sh
index bb3bd49c5c..12656cfeb2 100755
--- a/nuttx/configs/ntosd-dm320/setenv.sh
+++ b/nuttx/configs/ntosd-dm320/setenv.sh
@@ -1,7 +1,7 @@
#!/bin/sh
-# setenv.sh
+# ntosd-dm320/setenv.sh
#
-# Copyright (C) 2007 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
#
# Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
-# 3. Neither the name Gregory Nutt nor the names of its contributors may be
+# 3. Neither the name NuttX nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
@@ -32,7 +32,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#
-if [ "$(basename $0)" = "setenv" ] ; then
+if [ "$(basename $0)" = "setenv.sh" ] ; then
echo "You must source this script, not run it!" 1>&2
exit 1
fi
diff --git a/nuttx/configs/pjrc-8051/setenv.sh b/nuttx/configs/pjrc-8051/setenv.sh
index 69614aefe8..4f24d1385a 100755
--- a/nuttx/configs/pjrc-8051/setenv.sh
+++ b/nuttx/configs/pjrc-8051/setenv.sh
@@ -1,7 +1,7 @@
#!/bin/sh
-# setenv.sh
+# pjrc-8051/setenv.sh
#
-# Copyright (C) 2007 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
#
# Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
-# 3. Neither the name Gregory Nutt nor the names of its contributors may be
+# 3. Neither the name NuttX nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
@@ -32,7 +32,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#
-if [ "$(basename $0)" = "setenv" ] ; then
+if [ "$(basename $0)" = "setenv.sh" ] ; then
echo "You must source this script, not run it!" 1>&2
exit 1
fi
diff --git a/nuttx/configs/sim/setenv.sh b/nuttx/configs/sim/setenv.sh
index d0a05bfdf9..773e055477 100755
--- a/nuttx/configs/sim/setenv.sh
+++ b/nuttx/configs/sim/setenv.sh
@@ -1,7 +1,7 @@
#!/bin/sh
-# setenv.sh
+# sim/setenv.sh
#
-# Copyright (C) 2007 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
#
# Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
-# 3. Neither the name Gregory Nutt nor the names of its contributors may be
+# 3. Neither the name NuttX nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
@@ -32,7 +32,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#
-if [ "$(basename $0)" = "setenv" ] ; then
+if [ "$(basename $0)" = "setenv.sh" ] ; then
echo "You must source this script, not run it!" 1>&2
exit 1
fi
diff --git a/nuttx/configs/z80sim/defconfig b/nuttx/configs/z80sim/defconfig
index 4de440afcc..50eaec5878 100644
--- a/nuttx/configs/z80sim/defconfig
+++ b/nuttx/configs/z80sim/defconfig
@@ -1,7 +1,7 @@
############################################################
# configs/z80/defconfig
#
-# Copyright (C) 2007 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
#
# Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
-# 3. Neither the name Gregory Nutt nor the names of its contributors may be
+# 3. Neither the name NuttX nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
diff --git a/nuttx/configs/z80sim/setenv.sh b/nuttx/configs/z80sim/setenv.sh
index 69614aefe8..52f95193b9 100755
--- a/nuttx/configs/z80sim/setenv.sh
+++ b/nuttx/configs/z80sim/setenv.sh
@@ -1,7 +1,7 @@
#!/bin/sh
-# setenv.sh
+# z80sim/setenv.sh
#
-# Copyright (C) 2007 Gregory Nutt. All rights reserved.
+# Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
#
# Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
# notice, this list of conditions and the following disclaimer in
# the documentation and/or other materials provided with the
# distribution.
-# 3. Neither the name Gregory Nutt nor the names of its contributors may be
+# 3. Neither the name NuttX nor the names of its contributors may be
# used to endorse or promote products derived from this software
# without specific prior written permission.
#
@@ -32,7 +32,7 @@
# POSSIBILITY OF SUCH DAMAGE.
#
-if [ "$(basename $0)" = "setenv" ] ; then
+if [ "$(basename $0)" = "setenv.sh" ] ; then
echo "You must source this script, not run it!" 1>&2
exit 1
fi
diff --git a/nuttx/include/nuttx/compiler.h b/nuttx/include/nuttx/compiler.h
index 945d6c25cb..2ab68b3815 100644
--- a/nuttx/include/nuttx/compiler.h
+++ b/nuttx/include/nuttx/compiler.h
@@ -1,7 +1,7 @@
-/************************************************************
- * compiler.h
+/****************************************************************************
+ * include/nuttx/compiler.h
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * 3. Neither the name Gregory Nutt nor the names of its contributors may be
+ * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -31,20 +31,20 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- ************************************************************/
+ ****************************************************************************/
#ifndef __COMPILER_H
#define __COMPILER_H
-/************************************************************
+/****************************************************************************
* Included Files
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Definitions
- ************************************************************/
+ ****************************************************************************/
-/* GCC-specific definitions *********************************/
+/* GCC-specific definitions *************************************************/
#ifdef __GNUC__
@@ -114,7 +114,7 @@
# define CONFIG_CAN_PASS_STRUCTS 1
-/* SDCC-specific definitions ********************************/
+/* SDCC-specific definitions ************************************************/
#elif defined(SDCC)
@@ -196,7 +196,69 @@
# undef CONFIG_CAN_PASS_STRUCTS
-/* Unknown compiler *****************************************/
+/* ZiLog-specific definitions ***********************************************/
+
+#elif defined(__ZILOG__)
+
+/* At present, only the ZiLog ZNeo compiler is recognized */
+
+# ifndef __ZNEO__
+# warning "Unrecognized ZiLog compiler"
+# endif
+
+/* The ZiLog compiler does not support weak symbols */
+
+# undef CONFIG_HAVE_WEAKFUNCTIONS
+# define weak_alias(name, aliasname)
+# define weak_function
+# define weak_const_function
+
+/* The ZiLog compiler does not support the noreturn or packed attributes */
+
+# define noreturn_function
+# define packed_struct
+
+/* The ZiLog compiler does not support the reentrant attribute */
+
+# define reentrant_function
+
+/* Addressing */
+
+# define FAR _Far
+# define NEAR _Near
+# define DSEG _Far
+# define CODE _Near
+
+/* Select the large, 32-bit addressing model */
+
+# undef CONFIG_SMALL_MEMORY
+
+/* Long and int are the same size */
+
+# undef CONFIG_LONG_IS_NOT_INT
+
+/* FAR pointers and int are the same size */
+
+# undef CONFIG_PTR_IS_NOT_INT
+
+/* The ZiLog compiler does not support inline functions */
+
+# undef CONFIG_HAVE_INLINE
+# define inline
+
+/* The Zilog compiler supports both types double and long long,
+ * but the size is 32-bits (same as long and single precision)
+ * so it is safer to say that they are not supported.
+ */
+
+# undef CONFIG_HAVE_DOUBLE
+# undef CONFIG_HAVE_LONG_LONG
+
+/* Structures and unions can be assigned and passed as values */
+
+# define CONFIG_CAN_PASS_STRUCTS 1
+
+/* Unknown compiler *********************************************************/
#else
@@ -224,13 +286,13 @@
#endif
-/************************************************************
+/****************************************************************************
* Global Function Prototypes
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Global Function Prototypes
- ************************************************************/
+ ****************************************************************************/
#ifdef __cplusplus
#define EXTERN extern "C"
diff --git a/nuttx/tools/configure.sh b/nuttx/tools/configure.sh
index 104c5e749c..6826807a3c 100755
--- a/nuttx/tools/configure.sh
+++ b/nuttx/tools/configure.sh
@@ -35,7 +35,7 @@
BOARD=$1
WD=`pwd`
-TOPDIR=${WD}/..
+TOPDIR="${WD}/.."
function show_usage ()
{
@@ -49,7 +49,7 @@ if [ "${BOARD}X" = "X" ]; then
fi
BOARDDIR=${TOPDIR}/configs/${BOARD}
-if [ ! -d ${BOARDDIR} ]; then
+if [ ! -d "${BOARDDIR}" ]; then
echo "Directory ${BOARDDIR} does not exist. Options are:"
echo ""
echo `cd ${TOPDIR}/configs ; ls -1 | grep -v CVS | grep -v README.txt`
@@ -57,25 +57,26 @@ if [ ! -d ${BOARDDIR} ]; then
show_usage
fi
-if [ ! -r ${BOARDDIR}/Make.defs ]; then
+if [ ! -r "${BOARDDIR}/Make.defs" ]; then
echo "File ${BOARDDIR}/Make.defs does not exist"
exit 1
fi
-if [ ! -r ${BOARDDIR}/setenv.sh ]; then
+if [ ! -r "${BOARDDIR}/setenv.sh" ]; then
echo "File ${BOARDDIR}/setenv.sh does not exist"
exit 1
fi
-if [ ! -r ${BOARDDIR}/defconfig ]; then
+if [ ! -r "${BOARDDIR}/defconfig" ]; then
echo "File ${BOARDDIR}/defconfig does not exist"
exit 1
fi
-cp -f ${BOARDDIR}/Make.defs ${TOPDIR}/. || \
+cp -f "${BOARDDIR}/Make.defs" "${TOPDIR}/." || \
{ echo "Failed to copy ${BOARDDIR}/Make.defs" ; exit 1 ; }
-cp -f ${BOARDDIR}/setenv.sh ${TOPDIR}/. || \
+cp -f "${BOARDDIR}/setenv.sh" "${TOPDIR}/." || \
{ echo "Failed to copy ${BOARDDIR}/setenv.sh" ; exit 1 ; }
-cp -f ${BOARDDIR}/defconfig ${TOPDIR}/.config || \
+chmod 755 "${TOPDIR}/setenv.sh"
+cp -f "${BOARDDIR}/defconfig" "${TOPDIR}/.config" || \
{ echo "Failed to copy ${BOARDDIR}/defconfig" ; exit 1 ; }
diff --git a/nuttx/tools/mknulldeps.sh b/nuttx/tools/mknulldeps.sh
new file mode 100755
index 0000000000..360e7cb97d
--- /dev/null
+++ b/nuttx/tools/mknulldeps.sh
@@ -0,0 +1,34 @@
+#!/bin/sh
+# tools/mknulldeps.sh
+#
+# Copyright (C) 2008 Gregory Nutt. All rights reserved.
+# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions
+# are met:
+#
+# 1. Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# 2. Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in
+# the documentation and/or other materials provided with the
+# distribution.
+# 3. Neither the name NuttX nor the names of its contributors may be
+# used to endorse or promote products derived from this software
+# without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+# FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+# COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
+# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
+# OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+# AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+#
+echo "# The selected toolchain does not support dependency generation" \ No newline at end of file