Prep for 5.19 release
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@3373 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
parent
5792da5257
commit
bb8fc13a45
|
@ -103,6 +103,7 @@ $(BIN): $(OBJS) $(BUILTIN_APPS_BUILT)
|
|||
$(CC) -- $(CFLAGS) -- $(SRCS) >Make.dep
|
||||
@touch $@
|
||||
@for dir in $(BUILTIN_APPS_DIR) ; do \
|
||||
rm -f $$dir/.depend ; \
|
||||
$(MAKE) -C $$dir TOPDIR="$(TOPDIR)" depend ; \
|
||||
done
|
||||
|
||||
|
|
|
@ -2,9 +2,7 @@
|
|||
Application Folder
|
||||
==================
|
||||
|
||||
This folder provides various applications that can be enabled in the .config
|
||||
file and further provides frame-work to include external user applications
|
||||
from the ../apps directory.
|
||||
This folder provides various applications found in sub-directories.
|
||||
|
||||
Application entry points with their requirements are gathered together in
|
||||
this folder, in two files:
|
||||
|
@ -16,15 +14,12 @@ Application information is collected during the make .depend process.
|
|||
To execute an application function:
|
||||
exec_nuttapp() is defined in the include/nuttx/nuttapp.h
|
||||
|
||||
Further, builtin applications may be accessed via pseudo file-system found
|
||||
under the nuttx/drivers/sbin directory.
|
||||
|
||||
NuttShell provides transparent method of invoking the command, when the
|
||||
following option is enabled (regardless of sbin pseudo file system):
|
||||
following option is enabled:
|
||||
CONFIG_EXAMPLES_NSH_BUILTIN_APPS=y
|
||||
|
||||
To select which application to be included in the build process set your
|
||||
preferences the .config file as:
|
||||
preferences the nuttx/.config file as:
|
||||
|
||||
To include applications under the nuttx apps directory:
|
||||
CONFIG_BUILTIN_APPS_NUTTX=y/n
|
||||
|
@ -32,14 +27,13 @@ To include applications under the nuttx apps directory:
|
|||
where each application can be controlled as:
|
||||
CONFIG_BUILTIN_APPS_<NAME>=y/n
|
||||
|
||||
To include applications under the user ../apps directory:
|
||||
CONFIG_BUILTIN_APPS_USER=y/n
|
||||
|
||||
When the user defines an option: (NOT IMPLEMENTED YET)
|
||||
When the user defines an option:
|
||||
CONFIG_BUILTIN_APP_START=<application name>
|
||||
|
||||
then after initialization of the NuttX OS it starts this application
|
||||
using the exec_nuttapp() method.
|
||||
Note that application name must be provided in ".." as: "hello"
|
||||
for the hello application, which starts the immediately after system
|
||||
starts:
|
||||
int hello_main(int argc, char *argv[])
|
||||
|
||||
Application skeleton can be found under the hello sub-directory,
|
||||
which shows how an application can be added to the project. One must
|
||||
|
@ -53,6 +47,4 @@ define:
|
|||
ASRCS = asm source file list as a.asm b.asm ...
|
||||
CSRCS = C source file list as foo1.c foo2.c ..
|
||||
|
||||
4. add enable/disable option in the top file in this directory as:
|
||||
ifeq CONFIG_BUILTIN_APPS_<NAME>
|
||||
...
|
||||
4. add application in the apps/Makefile
|
|
@ -124,9 +124,11 @@ int exec_nuttapp(FAR const char *appname, FAR const char *argv[])
|
|||
{
|
||||
#ifndef CONFIG_CUSTOM_STACK
|
||||
i = task_create(nuttapps[i].name, nuttapps[i].priority,
|
||||
nuttapps[i].stacksize, nuttapps[i].main, &argv[1]);
|
||||
nuttapps[i].stacksize, nuttapps[i].main,
|
||||
(argv) ? &argv[1] : (const char **)NULL);
|
||||
#else
|
||||
i = task_create(nuttapps[i].name, nuttapps[i].priority, nuttapps[i].main, &argv[1]);
|
||||
i = task_create(nuttapps[i].name, nuttapps[i].priority, nuttapps[i].main,
|
||||
(argv) ? &argv[1] : (const char **)NULL);
|
||||
#endif
|
||||
|
||||
#if CONFIG_RR_INTERVAL > 0
|
||||
|
|
|
@ -1481,7 +1481,7 @@
|
|||
* Added a new 'kill' command to NSH that will support sending signals to
|
||||
running NuttX tasks.
|
||||
|
||||
5.19 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
5.19 2011-03-12 Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
* arch/arm/stm32/stm32_idle.c -- During idle times, the STM32 now uses the
|
||||
WFI instruction to sleep in a reduced power mode until the next interrupt
|
||||
|
@ -1503,7 +1503,7 @@
|
|||
nsh> cat test.txt
|
||||
This is a test
|
||||
|
||||
* drivers/pipes/pipe_common.c: Driver open method eas not returning an EINTR
|
||||
* drivers/pipes/pipe_common.c: Driver open method was not returning an EINTR
|
||||
error when it received a signal. Instead, it just re-started the wait. This
|
||||
makes it impossible to kill a background pipe operation from NSH.
|
||||
* include/stdint.h -- Correct some errors in conditional compilation (submitted
|
||||
|
@ -1553,3 +1553,5 @@
|
|||
* configs/olimex-lpc1766stk/slip-httpd - An example that uses SLIP to
|
||||
provide a serial-port based THTTPD web server.
|
||||
|
||||
5.20 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
|
|
|
@ -807,41 +807,75 @@
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
<p><b>nuttx-5.18 Release Notes</b>:
|
||||
<p><b>nuttx-5.19 Release Notes</b>:
|
||||
|
||||
<p>
|
||||
The 65<sup>th</sup> release of NuttX, Version 5.18, was made on February 27, 2011 and is available for download from the
|
||||
The 66<sup>th</sup> release of NuttX, Version 5.19, was made on March 12, 2011 and is available for download from the
|
||||
<a href="http://sourceforge.net/projects/nuttx/files/">SourceForge</a> website.
|
||||
The change log associated with the release is available <a href="#currentrelease">here</a>.
|
||||
Unreleased changes after this release are available in SVN.
|
||||
These unreleased changes are listed <a href="#pendingchanges">here</a>.
|
||||
</p>
|
||||
<p>
|
||||
This is first release from the new NuttX SVN repository.
|
||||
This release is made primarily to keep the release tarball in synchronization with SVN.
|
||||
Many smaller changes have been made as identified in the ChangeLog.
|
||||
Headlines would include:
|
||||
This release includes several new features in various states of integration and maturity:
|
||||
</p>
|
||||
<ul>
|
||||
<li>
|
||||
Incorporate several important uIP patches -- including the well known patch to handle missing SYNACK.
|
||||
|
||||
</li>
|
||||
<li>
|
||||
The Freescale mc8s12ne64 port is code complete but testing has not yet begun due to toolchain issues.
|
||||
Added support for the Future Electronics Group NE64 Badge board.
|
||||
<b>486SX QEMU port</b>.
|
||||
This port supports the Intel 486SX architecture using the QEMU simulator.
|
||||
Initial functionality is in place a partially tested.
|
||||
There are still some outstanding issues with timer interrupts.
|
||||
A large part of the i486 logic was contributed by Biff of
|
||||
<a href="http://bifferos.bizhat.com">Bifferboard</a> fame.
|
||||
</li>
|
||||
<li>
|
||||
Added support for a new STM32 board, the ISOTEL NetClamps VSN V1.2 ready2go sensor network platform.
|
||||
This board is based on a STM32F103RET6 and includes some interesting power saving/clock control extensions.
|
||||
<b>Platform specific application support</b>.
|
||||
A new <code>apps/</code> directory appears in this port.
|
||||
This <code>apps/</code> directory provides a mechanism for applications using NuttX to have a highly customizable initialization process.
|
||||
It supports a set of end-user applications than can be executed
|
||||
(1) standalone so you can have a fully customizable application startup, or
|
||||
(2) on top of NSH.
|
||||
Think of it this way:
|
||||
In a buckled-up embedded application, your end-user programs will probably have their own dedicated start-up logic.
|
||||
But, during development, you might want to have you applications available and executable from the NSH command line.
|
||||
This <code>apps/</code> add-on (and NSH hooks) was contributed by Uros Platise to accomplish just that.
|
||||
</li>
|
||||
<li>
|
||||
USB host support expanded to handle vendor specific USB devices.
|
||||
<b>Custom NSH <code>/etc/init.d/rcS</code> File</b>.
|
||||
NSH was also extended to support application specific ROMFS <code>/etc/init.d/rcS</code> start-up scripts.
|
||||
This feature, as well, as all of the above-mentioned <code>apps/</code> directory support was contributed by Uros Platise
|
||||
</li>
|
||||
<li>
|
||||
Incorporated the LUFA HID parser.
|
||||
Additional NSH improvements and bug fixes. See the Changelog for details.
|
||||
</li>
|
||||
<li>
|
||||
Various bugfix as detailed in the ChangeLog
|
||||
<b>SLIP</b>.
|
||||
This release also provides a new SLIP network driver.
|
||||
This driver should support point-to-point network communications to a host using TCP/IP or UDP.
|
||||
This driver is code complete, but not tested in this release.
|
||||
</li>
|
||||
<li>
|
||||
<b>RAMTROM FRAM Driver</b>.
|
||||
New RAMTRON FRAM driver (contributed by Uros Platise)
|
||||
</li>
|
||||
<li>
|
||||
<b>16550 UART Driver</b>.
|
||||
New generic 16550 UART driver.
|
||||
</li>
|
||||
<li>
|
||||
<b>Cortex-M3 Power improvements</b>.
|
||||
The Cortex-M3 can now waits for Interrupt (WFI) in idle loop for reduced power consumption
|
||||
(LPC17xx and STM32 only - contributed by Uros Platise))
|
||||
</li>
|
||||
<li>
|
||||
<b><code>waitpid()</code></b>.
|
||||
New <code>waitpid()</code> system interface.
|
||||
</li>
|
||||
<li>
|
||||
<b>Bugfixes</b>.
|
||||
Additional bugfixes: pipes, stdint.h, STM32 SDIO and SPI drivers
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
@ -2039,78 +2073,6 @@ Other memory:
|
|||
</tr>
|
||||
</table>
|
||||
|
||||
<ul><pre>
|
||||
nuttx-5.18 2011-02-27 Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
* Incorporate several uIP patches from http://gitweb.aeruder.net/?p=uip.git;a=summary.
|
||||
- Lost SYNACK causes connection reset
|
||||
- Fix missing UDP stats for sent/received packets
|
||||
- Added support for Cygwin as development/test platform.
|
||||
* configs/demo9s12ne64 - Integrate new buildroot-1.9 m8s12x toolchain.
|
||||
* 'uname -o' is used throughout the build logic in bash scripts and also in
|
||||
Make.defs files in order to distinguish between Cygwin and Linux. However,
|
||||
the -o option is not standard and is not supported under, for example, OS-X or
|
||||
Solaris. This was solved by changing all 'uname -o' references to the more
|
||||
complex: 'uname -o 2>/dev/null || echo "Other"'
|
||||
* drivers/usbhost/usbhost_enumerate.c -- Add logic to get the VID and PID. This
|
||||
is necessary in order to support vendor-specific USB devices.
|
||||
* examplex/wlan, configs/olimex-lpc1766stk/wlan, drivers/usbhost/usbhost_rtl8187.c,
|
||||
Add infrastructure to support RTL18187 wireless USB.
|
||||
* configs/nucleus2g -- backed out USB host changes... wrong board.
|
||||
* Renamed arc/hc/include/mc9s12ne64 and src/mc9s12ne64 -- m9s12. That name is
|
||||
shorter and more general.
|
||||
* The NuttX repository has been converted to SVN and can now be found here
|
||||
http://nuttx.svn.sourceforge.net/viewvc/nuttx/
|
||||
* configs/mbed/hidkbd -- Added USB host support for the mbed LPC1768 board; add
|
||||
a USB host HID keyboard configuraion.
|
||||
* drivers/usbhost/hid_parser.c -- Leverages the LUFA HID parser written by
|
||||
Dean Camera.
|
||||
* examples/nsh -- Correct an usage of getopt(): If you stop calling getopt()
|
||||
before all parameters are parsed, you can leave getopt() in a strange state.
|
||||
* include/nuttx/fb.h -- Restore missing RGB type that was accidentally removed
|
||||
when Nokia 6100 support was added.
|
||||
* Rename arch/pjrc-8051 to arch/8051
|
||||
* configs/ne64badge -- Add a configuration for the Future Electronics Group
|
||||
NE64 Badge development board (Freescale MC9S12NE64)
|
||||
* Changes contributed by Uros Platise:
|
||||
- Add support for the STM32F103RET6
|
||||
- configs/vsn - Support for the ISOTEL NetClamps VSN V1.2 ready2go sensor
|
||||
network platform
|
||||
* arch/hc, configs/ne64badge -- Development is complete for the Freescale
|
||||
mc9s12ne64 on the Future Electronics Group NE64 /PoE Badge board. Howeve,
|
||||
this port remains untested until I figure out this BDM / Code Warrior
|
||||
and paged build thing
|
||||
* Added a new 'kill' command to NSH that will support sending signals to
|
||||
running NuttX tasks.
|
||||
|
||||
pascal-2.0 2009-12-21 Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
* Updated to use standard C99 types in stdint.h and
|
||||
stdbool.h. This change was necessary for compatibility
|
||||
with NuttX-5.0 (any beyond).
|
||||
|
||||
buildroot-1.9 2011-02-10 <spudmonkey@racsa.co.cr>
|
||||
|
||||
* configs/arm926t-defconfig-4.3.3: update arm926t-defconfig-4.2.4
|
||||
* configs/arm926t-defconfig-nxflat: NXFLAT-only configuration for
|
||||
arm926
|
||||
* toolchain/gdb/gdb.mk - Remove ncurses dependency from gdb_target target.
|
||||
* toolchain/gdb/gdb.mk - Added --disable-werror to GDB configuration line.
|
||||
GDB 6.8 won't build because the tarbal was released with -Werror enabled and
|
||||
the build stops on the first warning.
|
||||
* Add support for Freescale m9s12x using binutils 2.18 and gcc 3.3.6 and
|
||||
patches available from http://www.msextra.com/tools courtesy of James
|
||||
Cortina. Add configs/m9x12x-defconfig-3.3.6.
|
||||
</pre></ul>
|
||||
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="pendingchanges">Unreleased Changes</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<ul><pre>
|
||||
nuttx-5.19 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
|
@ -2134,7 +2096,7 @@ nuttx-5.19 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
|||
nsh> cat test.txt
|
||||
This is a test
|
||||
|
||||
* drivers/pipes/pipe_common.c -- Driver open method eas not returning an EINTR
|
||||
* drivers/pipes/pipe_common.c -- Driver open method was not returning an EINTR
|
||||
error when it received a signal. Instead, it just re-started the wait. This
|
||||
makes it impossible to kill a background pipe operation from NSH.
|
||||
* include/stdint.h -- Correct some errors in conditional compilation (submitted
|
||||
|
@ -2184,6 +2146,37 @@ nuttx-5.19 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
|||
* configs/olimex-lpc1766stk/slip-httpd - An example that uses SLIP to
|
||||
provide a serial-port based THTTPD web server.
|
||||
|
||||
pascal-2.0 2009-12-21 Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
* Updated to use standard C99 types in stdint.h and
|
||||
stdbool.h. This change was necessary for compatibility
|
||||
with NuttX-5.0 (any beyond).
|
||||
|
||||
buildroot-1.9 2011-02-10 <spudmonkey@racsa.co.cr>
|
||||
|
||||
* configs/arm926t-defconfig-4.3.3: update arm926t-defconfig-4.2.4
|
||||
* configs/arm926t-defconfig-nxflat: NXFLAT-only configuration for
|
||||
arm926
|
||||
* toolchain/gdb/gdb.mk - Remove ncurses dependency from gdb_target target.
|
||||
* toolchain/gdb/gdb.mk - Added --disable-werror to GDB configuration line.
|
||||
GDB 6.8 won't build because the tarbal was released with -Werror enabled and
|
||||
the build stops on the first warning.
|
||||
* Add support for Freescale m9s12x using binutils 2.18 and gcc 3.3.6 and
|
||||
patches available from http://www.msextra.com/tools courtesy of James
|
||||
Cortina. Add configs/m9x12x-defconfig-3.3.6.
|
||||
</pre></ul>
|
||||
|
||||
<table width ="100%">
|
||||
<tr bgcolor="#e4e4e4">
|
||||
<td>
|
||||
<a name="pendingchanges">Unreleased Changes</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<ul><pre>
|
||||
nuttx-5.20 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
pascal-2.1 2011-xx-xx Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
|
||||
buildroot-1.10 2011-xx-xx <spudmonkey@racsa.co.cr>
|
||||
|
|
|
@ -1694,3 +1694,39 @@ identified in the ChangeLog. Headlines would include:
|
|||
* Incorporated the LUFA HID parser.
|
||||
* Various bugfix as detailed in the ChangeLog
|
||||
|
||||
nuttx-5.18
|
||||
^^^^^^^^^^
|
||||
|
||||
The 66th release of NuttX, Version 5.19, was made on March 12, 2011 and is
|
||||
available for download from the SourceForge website. This release includes
|
||||
several new features in various states of integration and maturity:
|
||||
|
||||
* 486SX QEMU port. This port supports the Intel 486SX architecture using
|
||||
the QEMU simulator. Initial functionality is in place a partially
|
||||
tested. There are still some outstanding issues with timer interrupts.
|
||||
* Platform specific application support. A new apps/ directory appears in
|
||||
this port. This apps/ directory provides a mechanism for applications
|
||||
using NuttX to have a highly customizable initialization process. It
|
||||
supports a set of end-user applications than can be executed (1) standalone
|
||||
so you can have a fully customizable application startup, or (2) on top of
|
||||
NSH. Think of it this way: In a buckled-up embedded application, your
|
||||
end-user programs will probably have their own dedicated start-up logic.
|
||||
But, during development, you might want to have you applications
|
||||
available and executable from the NSH command line. This apps/ add-on
|
||||
(and NSH hooks) was contributed by Uros to accomplish just that.
|
||||
* NSH was also extended to support application specific ROMFS
|
||||
/etc/init.d/rcS start-up scripts. This feature, as well, as all of the
|
||||
above-mentioned apps/ directory support was contributed by Uros Platise
|
||||
* Additional NSH improvements and bug fixes. See the Changelog for
|
||||
details.
|
||||
* This release also provides a new SLIP network driver. This driver
|
||||
should support point-to-point network communications to a host using
|
||||
TCP/IP or UDP. This driver is code complete, but not tested in this
|
||||
release.
|
||||
* New RAMTRON FRAM driver (contributed by Uros Platise)
|
||||
* New generic 16550 UART driver.
|
||||
* Cortex-M3 Power improvements: Waits for Interrupt (WFI) in idle loop
|
||||
for reduced power consumption (LPC17xx and STM32 only - contributed by
|
||||
Uros Platise))
|
||||
* New waitpid() system interface.
|
||||
* Additional bugfixes: pipes, stdint.h, STM32 SDIO and SPI drivers
|
||||
|
|
|
@ -163,12 +163,6 @@ volatile pid_t g_lastpid;
|
|||
|
||||
pidhash_t g_pidhash[CONFIG_MAX_TASKS];
|
||||
|
||||
/* The task ID of the worker thread */
|
||||
|
||||
#ifdef CONFIG_SCHED_WORKQUEUE
|
||||
pid_t g_worker;
|
||||
#endif
|
||||
|
||||
/* This is a table of task lists. This table is indexed by
|
||||
* the task state enumeration type (tstate_t) and provides
|
||||
* a pointer to the associated static task list (if there
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* sched/work_internal.h
|
||||
*
|
||||
* Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2009-2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -81,6 +81,10 @@
|
|||
|
||||
extern struct dq_queue_s g_work;
|
||||
|
||||
/* The task ID of the worker thread */
|
||||
|
||||
extern pid_t g_worker;
|
||||
|
||||
/****************************************************************************
|
||||
* Public Function Prototypes
|
||||
****************************************************************************/
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
/****************************************************************************
|
||||
* sched/work_thread.c
|
||||
*
|
||||
* Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
||||
* Copyright (C) 2009-2011 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
@ -71,6 +71,12 @@
|
|||
|
||||
struct dq_queue_s g_work;
|
||||
|
||||
/* The task ID of the worker thread */
|
||||
|
||||
#ifdef CONFIG_SCHED_WORKQUEUE
|
||||
pid_t g_worker;
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Variables
|
||||
****************************************************************************/
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
#set -x
|
||||
set -x
|
||||
|
||||
WD=`pwd`
|
||||
VERSION=$1
|
||||
|
@ -43,43 +43,53 @@ ZIP=gzip
|
|||
# Make sure we know what is going on
|
||||
|
||||
if [ -z ${VERSION} ] ; then
|
||||
echo "You must supply a version like xx.yy.zz as a parameter"
|
||||
echo "You must supply a version like xx.yy as a parameter"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
# Find the directory we were executed from and were we expect to
|
||||
# see the directory to tar up
|
||||
# see the directories to tar up
|
||||
|
||||
MYNAME=`basename $0`
|
||||
|
||||
if [ -x ${WD}/${MYNAME} ] ; then
|
||||
NUTTX=`dirname ${WD}`
|
||||
PROJECTS="${WD}/../../.."
|
||||
else
|
||||
if [ -x ${WD}/tools/${MYNAME} ] ; then
|
||||
NUTTX=${WD}
|
||||
PROJECTS="${WD}/../.."
|
||||
else
|
||||
if [ -x ${WD}/nuttx/tools/${MYNAME} ] ; then
|
||||
PROJECTS="${WD}/.."
|
||||
else
|
||||
echo "You must cd into the NUTTX directory to execute this script."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
# Get the NuttX directory name and the path to the parent directory
|
||||
|
||||
NUTTXDIR=`basename ${NUTTX}`
|
||||
PROJECTS=`dirname ${NUTTX}`
|
||||
NUTTXDIR=${PROJECTS}/nuttx-${VERSION}
|
||||
NUTTX=${NUTTXDIR}/nuttx
|
||||
APPS=${NUTTXDIR}/apps
|
||||
|
||||
# The name of the directory must match the version number
|
||||
# Make sure that the versioned directory exists
|
||||
|
||||
if [ "X$NUTTXDIR" != "Xnuttx-${VERSION}" ]; then
|
||||
echo "Expected directory name to be nuttx-${VERSION} found ${NUTTXDIR}"
|
||||
if [ ! -d ${NUTTXDIR} ]; then
|
||||
echo "Directory ${NUTTXDIR} does not exist"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cd ${PROJECTS} || \
|
||||
{ echo "Failed to cd to ${PROJECTS}" ; exit 1 ; }
|
||||
|
||||
if [ ! -d ${NUTTXDIR} ] ; then
|
||||
echo "${PROJECTS}/${NUTTXDIR} does not exist!"
|
||||
if [ ! -d nuttx-${VERSION} ] ; then
|
||||
echo "Directory ${PROJECTS}/nuttx-${VERSION} does not exist!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -d ${APPS} ] ; then
|
||||
echo "Directory ${APPS} does not exist!"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -124,7 +134,7 @@ fi
|
|||
|
||||
# Then zip it
|
||||
|
||||
${TAR} ${TAR_NAME} ${NUTTXDIR} || \
|
||||
${TAR} ${TAR_NAME} nuttx-${VERSION}/nuttx nuttx-${VERSION}/apps || \
|
||||
{ echo "tar of ${TAR_NAME} failed!" ; exit 1 ; }
|
||||
${ZIP} ${TAR_NAME} || \
|
||||
{ echo "zip of ${TAR_NAME} failed!" ; exit 1 ; }
|
||||
|
|
Loading…
Reference in New Issue