mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Add a Mirtoo NSH configuration; move all Mirtoo linker scripts to a common directory
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4865 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -2916,4 +2916,12 @@
|
||||
"Mirtoo" module from http://www.dimitech.com/
|
||||
* tools/pic32mx: All of the duplicate directories containing the same
|
||||
same PIC32 tools were move to this single location.
|
||||
* configs/mirtoo: The basic Mirtoo port is now functional.
|
||||
* configs/mirtoo/ostest: Added support for the microchipOpen toolchain
|
||||
(see http://sourceforge.net/projects/microchipopen/).
|
||||
* configs/mirtoo/nsh: Added a NuttShell (NSH) configuration for
|
||||
the Mirtoo module.
|
||||
* configs/mirtoo/scripts: Move all Mirtoo linker scripts to a common
|
||||
directory.
|
||||
|
||||
|
||||
|
||||
@@ -347,8 +347,8 @@ Toolchains
|
||||
|
||||
An alternative, build-it-yourself toolchain is available here:
|
||||
http://sourceforge.net/projects/microchipopen/ . These tools were
|
||||
last updated circa 2010. However, this is the only way that I know of
|
||||
to get free C++ support. Use this option to select the microchipopen
|
||||
last updated circa 2010. NOTE: C++ support still not available
|
||||
in this toolchain. Use this configuration option to select the microchipopen
|
||||
toolchain:
|
||||
|
||||
CONFIG_PIC32MX_MICROCHIPOPENL - microchipOpen toolchain for Linux
|
||||
@@ -375,8 +375,6 @@ Toolchains
|
||||
Note that the tools will have the prefix, mypic32- so, for example, the
|
||||
compiler will be called mypic32-gcc.
|
||||
|
||||
This will check out the selected branch and build the tools.
|
||||
|
||||
MPLAB/C32 vs MPLABX/X32
|
||||
-----------------------
|
||||
|
||||
|
||||
@@ -0,0 +1,172 @@
|
||||
############################################################################
|
||||
# configs/mirtoo/nsh/Make.defs
|
||||
#
|
||||
# Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
include ${TOPDIR}/.config
|
||||
|
||||
# Setup for the selected toolchain
|
||||
|
||||
ifeq ($(CONFIG_PIC32MX_MICROCHIPW),y)
|
||||
# Microchip C32 toolchain under Windows
|
||||
CROSSDEV = pic32-
|
||||
# CROSSDEV = xc32-
|
||||
WINTOOL = y
|
||||
MAXOPTIMIZATION = -O2
|
||||
ARCHCPUFLAGS = -mprocessor=elf32pic32mx -mno-float -mlong32 -membedded-data
|
||||
ARCHPICFLAGS = -fpic -membedded-pic
|
||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
||||
endif
|
||||
ifeq ($(CONFIG_PIC32MX_MICROCHIPW_LITE),y)
|
||||
# Microchip C32 toolchain under Windows
|
||||
CROSSDEV = pic32-
|
||||
# CROSSDEV = xc32-
|
||||
WINTOOL = y
|
||||
# MAXOPTIMIZATION = -O2
|
||||
ARCHCPUFLAGS = -mprocessor=elf32pic32mx -mno-float -mlong32 -membedded-data
|
||||
ARCHPICFLAGS = -fpic -membedded-pic
|
||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
||||
endif
|
||||
ifeq ($(CONFIG_PIC32MX_MICROCHIPL),y)
|
||||
# Microchip C32 toolchain under Linux
|
||||
CROSSDEV = pic32-
|
||||
# CROSSDEV = xc32-
|
||||
MAXOPTIMIZATION = -O2
|
||||
ARCHCPUFLAGS = -mprocessor=elf32pic32mx -mno-float -mlong32 -membedded-data
|
||||
ARCHPICFLAGS = -fpic -membedded-pic
|
||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
||||
endif
|
||||
ifeq ($(CONFIG_PIC32MX_MICROCHIPL_LITE),y)
|
||||
# Microchip C32 toolchain under Linux
|
||||
CROSSDEV = pic32-
|
||||
# CROSSDEV = xc32-
|
||||
# MAXOPTIMIZATION = -O2
|
||||
ARCHCPUFLAGS = -mprocessor=elf32pic32mx -mno-float -mlong32 -membedded-data
|
||||
ARCHPICFLAGS = -fpic -membedded-pic
|
||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
||||
endif
|
||||
ifeq ($(CONFIG_PIC32MX_MICROCHIPOPENL),y)
|
||||
# microchipOpen -toolchain under Linux
|
||||
CROSSDEV = mypic32-
|
||||
# MAXOPTIMIZATION = -O2
|
||||
ARCHCPUFLAGS = -mprocessor=elf32pic32mx -mno-float -mlong32 -membedded-data
|
||||
ARCHPICFLAGS = -fpic -membedded-pic
|
||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
||||
endif
|
||||
|
||||
ifeq ($(WINTOOL),y)
|
||||
# Windows-native toolchains
|
||||
DIRLINK = $(TOPDIR)/tools/winlink.sh
|
||||
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
||||
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
||||
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/debug.ld}"
|
||||
else
|
||||
# Linux/Cygwin-native toolchain
|
||||
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
||||
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
||||
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/debug.ld
|
||||
endif
|
||||
|
||||
CC = $(CROSSDEV)gcc
|
||||
CXX = $(CROSSDEV)g++
|
||||
CPP = $(CROSSDEV)gcc -E
|
||||
LD = $(CROSSDEV)ld
|
||||
AR = $(CROSSDEV)ar rcs
|
||||
NM = $(CROSSDEV)nm
|
||||
OBJCOPY = $(CROSSDEV)objcopy
|
||||
OBJDUMP = $(CROSSDEV)objdump
|
||||
|
||||
ifeq ("${CONFIG_DEBUG_SYMBOLS}","y")
|
||||
ARCHOPTIMIZATION = -g
|
||||
else
|
||||
ARCHOPTIMIZATION = $(MAXOPTIMIZATION) -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
|
||||
endif
|
||||
|
||||
ARCHCFLAGS = -fno-builtin
|
||||
ARCHCXXFLAGS = -fno-builtin -fno-exceptions
|
||||
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow
|
||||
ARCHWARNINGSXX = -Wall -Wshadow
|
||||
ARCHDEFINES =
|
||||
|
||||
CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
||||
CPICFLAGS = $(ARCHPICFLAGS) $(CFLAGS)
|
||||
CXXFLAGS = $(ARCHCXXFLAGS) $(ARCHWARNINGSXX) $(ARCHOPTIMIZATION) $(ARCHCPUFLAGS) $(ARCHXXINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
||||
CXXPICFLAGS = $(ARCHPICFLAGS) $(CXXFLAGS)
|
||||
CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES)
|
||||
AFLAGS = $(CFLAGS) -D__ASSEMBLY__
|
||||
|
||||
NXFLATLDFLAGS1 = -r -d -warn-common
|
||||
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat.ld -no-check-sections
|
||||
LDNXFLATFLAGS = -e main -s 2048
|
||||
|
||||
OBJEXT = .o
|
||||
LIBEXT = .a
|
||||
EXEEXT =
|
||||
|
||||
define PREPROCESS
|
||||
@echo "CPP: $1->$2"
|
||||
@$(CPP) $(CPPFLAGS) $1 -o $2
|
||||
endef
|
||||
|
||||
define COMPILE
|
||||
@echo "CC: $1"
|
||||
@$(CC) -c $(CFLAGS) $1 -o $2
|
||||
endef
|
||||
|
||||
define COMPILEXX
|
||||
@echo "CXX: $1"
|
||||
@$(CXX) -c $(CXXFLAGS) $1 -o $2
|
||||
endef
|
||||
|
||||
define ASSEMBLE
|
||||
@echo "AS: $1"
|
||||
@$(CC) -c $(AFLAGS) $1 -o $2
|
||||
endef
|
||||
|
||||
define ARCHIVE
|
||||
echo "AR: $2"; \
|
||||
$(AR) $1 $2 || { echo "$(AR) $1 $2 FAILED!" ; exit 1 ; }
|
||||
endef
|
||||
|
||||
define CLEAN
|
||||
@rm -f *.o *.a
|
||||
endef
|
||||
|
||||
HOSTCC = gcc
|
||||
HOSTINCLUDES = -I.
|
||||
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -g -pipe
|
||||
HOSTLDFLAGS =
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
############################################################################
|
||||
# configs/mirtoo/nsh/appconfig
|
||||
#
|
||||
# Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
# Path to example in apps/examples containing the user_start entry point
|
||||
|
||||
CONFIGURED_APPS += examples/nsh
|
||||
|
||||
# The NSH application library
|
||||
|
||||
CONFIGURED_APPS += system/readline
|
||||
CONFIGURED_APPS += nshlib
|
||||
File diff suppressed because it is too large
Load Diff
Executable
+72
@@ -0,0 +1,72 @@
|
||||
#!/bin/bash
|
||||
# configs/mirtoo/nsh/setenv.sh
|
||||
#
|
||||
# Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
#
|
||||
# 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.
|
||||
#
|
||||
|
||||
if [ "$_" = "$0" ] ; then
|
||||
echo "You must source this script, not run it!" 1>&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG="${PATH}"; fi
|
||||
|
||||
WD=`pwd`
|
||||
if [ ! -x "setenv.sh" ]; then
|
||||
echo "This script must be executed from the top-level NuttX build directory"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# This the Cygwin path to the location where I installed the MicroChip
|
||||
# PIC32MX C32 toolchain under windows. This is *not* the default install
|
||||
# location so you will probably have to edit this. You will also have
|
||||
# to edit this if you install a different version of if you install the
|
||||
# toolchain at a different location
|
||||
export TOOLCHAIN_BIN="/cygdrive/c/MicroChip/mplabc32/v1.12/bin"
|
||||
|
||||
# This the Linux path to the location where I installed the MicroChip
|
||||
# PIC32MX XC32 toolchain under Linux. This is the default install
|
||||
# location. You will also have to edit this if you install a different
|
||||
# version of if you install the toolchain at a different location
|
||||
#export TOOLCHAIN_BIN="/opt/microchip/xc32/v1.00/bin"
|
||||
|
||||
# This the Linux path to the location where I installed the microchipOpen
|
||||
# toolchain under Linux. You will have to edit this if you use the
|
||||
# microchipOpen toolchain.
|
||||
#export TOOLCHAIN_BIN="~/projects/microchipopen/v105_freeze/pic32-v105-freeze-20120622/install-image/bin"
|
||||
|
||||
# This is the path to the toosl subdirectory
|
||||
export PIC32TOOL_DIR="${WD}/tools/pic32mx"
|
||||
|
||||
# Add the path to the toolchain to the PATH varialble
|
||||
export PATH="${TOOLCHAIN_BIN}:${PIC32TOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
||||
|
||||
echo "PATH : ${PATH}"
|
||||
@@ -91,13 +91,13 @@ ifeq ($(WINTOOL),y)
|
||||
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
||||
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/ostest/debug.ld}"
|
||||
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/debug.ld}"
|
||||
else
|
||||
# Linux/Cygwin-native toolchain
|
||||
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
||||
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
||||
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/ostest/debug.ld
|
||||
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/debug.ld
|
||||
endif
|
||||
|
||||
CC = $(CROSSDEV)gcc
|
||||
|
||||
@@ -255,6 +255,10 @@ CONFIG_HAVE_LIBM=n
|
||||
# CONFIG_DEBUG_VERBOSE - enables verbose debug output
|
||||
# CONFIG_DEBUG_SYMBOLS - build without optimization and with
|
||||
# debug symbols (needed for use with a debugger).
|
||||
# CONFIG_HAVE_CXX - Enable support for C++
|
||||
# CONFIG_HAVE_CXXINITIALIZE - The platform-specific logic includes support
|
||||
# for initialization of static C++ instances for this architecture
|
||||
# and for the selected toolchain (via up_cxxinitialize()).
|
||||
# CONFIG_MM_REGIONS - If the architecture includes multiple
|
||||
# regions of memory to allocate from, this specifies the
|
||||
# number of memory regions that the memory manager must
|
||||
@@ -334,12 +338,17 @@ CONFIG_HAVE_LIBM=n
|
||||
# thread. Default: CONFIG_IDLETHREAD_STACKSIZE.
|
||||
# CONFIG_SIG_SIGWORK - The signal number that will be used to wake-up
|
||||
# the worker thread. Default: 4
|
||||
# CONFIG_SCHED_WAITPID - Enable the waitpid() API
|
||||
# CONFIG_SCHED_ATEXIT - Enabled the atexit() API
|
||||
#
|
||||
#CONFIG_APPS_DIR=
|
||||
CONFIG_DEBUG=n
|
||||
CONFIG_DEBUG_VERBOSE=n
|
||||
CONFIG_DEBUG_SYMBOLS=n
|
||||
CONFIG_DEBUG_SCHED=n
|
||||
|
||||
CONFIG_HAVE_CXX=n
|
||||
CONFIG_HAVE_CXXINITIALIZE=n
|
||||
CONFIG_MM_REGIONS=1
|
||||
CONFIG_ARCH_LOWPUTC=y
|
||||
CONFIG_RR_INTERVAL=0
|
||||
@@ -360,10 +369,12 @@ CONFIG_FDCLONE_DISABLE=n
|
||||
CONFIG_FDCLONE_STDIO=n
|
||||
CONFIG_SDCLONE_DISABLE=y
|
||||
CONFIG_SCHED_WORKQUEUE=n
|
||||
CONFIG_SCHED_WORKPRIORITY=50
|
||||
CONFIG_SCHED_WORKPRIORITY=192
|
||||
CONFIG_SCHED_WORKPERIOD=(50*1000)
|
||||
CONFIG_SCHED_WORKSTACKSIZE=1024
|
||||
CONFIG_SIG_SIGWORK=4
|
||||
CONFIG_SCHED_WAITPID=n
|
||||
CONFIG_SCHED_ATEXIT=n
|
||||
|
||||
#
|
||||
# Settings for nxflat
|
||||
@@ -447,6 +458,14 @@ CONFIG_ARCH_BZERO=n
|
||||
# CONFIG_NAME_MAX - The maximum size of a file name.
|
||||
# CONFIG_STDIO_BUFFER_SIZE - Size of the buffer to allocate
|
||||
# on fopen. (Only if CONFIG_NFILE_STREAMS > 0)
|
||||
# CONFIG_STDIO_LINEBUFFER - If standard C buffered I/O is enabled
|
||||
# (CONFIG_STDIO_BUFFER_SIZE > 0), then this option may be added
|
||||
# to force automatic, line-oriented flushing the output buffer
|
||||
# for putc(), fputc(), putchar(), puts(), fputs(), printf(),
|
||||
# fprintf(), and vfprintf(). When a newline is encountered in
|
||||
# the output string, the output buffer will be flushed. This
|
||||
# (slightly) increases the NuttX footprint but supports the kind
|
||||
# of behavior that people expect for printf().
|
||||
# CONFIG_NUNGET_CHARS - Number of characters that can be
|
||||
# buffered by ungetc() (Only if CONFIG_NFILE_STREAMS > 0)
|
||||
# CONFIG_PREALLOC_MQ_MSGS - The number of pre-allocated message
|
||||
@@ -472,6 +491,7 @@ CONFIG_NFILE_DESCRIPTORS=8
|
||||
CONFIG_NFILE_STREAMS=8
|
||||
CONFIG_NAME_MAX=32
|
||||
CONFIG_STDIO_BUFFER_SIZE=256
|
||||
CONFIG_STDIO_LINEBUFFER=n
|
||||
CONFIG_NUNGET_CHARS=2
|
||||
CONFIG_PREALLOC_MQ_MSGS=4
|
||||
CONFIG_MQ_MAXMSGSIZE=32
|
||||
@@ -479,14 +499,53 @@ CONFIG_MAX_WDOGPARMS=2
|
||||
CONFIG_PREALLOC_WDOGS=4
|
||||
CONFIG_PREALLOC_TIMERS=4
|
||||
|
||||
#
|
||||
# Filesystem configuration
|
||||
#
|
||||
# CONFIG_FS_FAT - Enable FAT filesystem support
|
||||
# CONFIG_FAT_SECTORSIZE - Max supported sector size
|
||||
# CONFIG_FAT_LCNAMES - Enable use of the NT-style upper/lower case 8.3
|
||||
# file name support.
|
||||
# CONFIG_FAT_LFN - Enable FAT long file names. NOTE: Microsoft claims
|
||||
# patents on FAT long file name technology. Please read the
|
||||
# disclaimer in the top-level COPYING file and only enable this
|
||||
# feature if you understand these issues.
|
||||
# CONFIG_FAT_MAXFNAME - If CONFIG_FAT_LFN is defined, then the
|
||||
# default, maximum long file name is 255 bytes. This can eat up
|
||||
# a lot of memory (especially stack space). If you are willing
|
||||
# to live with some non-standard, short long file names, then
|
||||
# define this value. A good choice would be the same value as
|
||||
# selected for CONFIG_NAME_MAX which will limit the visibility
|
||||
# of longer file names anyway.
|
||||
# CONFIG_FS_NXFFS: Enable NuttX FLASH file system (NXFF) support.
|
||||
# CONFIG_NXFFS_ERASEDSTATE: The erased state of FLASH.
|
||||
# This must have one of the values of 0xff or 0x00.
|
||||
# Default: 0xff.
|
||||
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||
# don't both with file chunks smaller than this number of data bytes.
|
||||
# CONFIG_NXFFS_MAXNAMLEN: The maximum size of an NXFFS file name.
|
||||
# Default: 255.
|
||||
# CONFIG_NXFFS_PACKTHRESHOLD: When packing flash file data,
|
||||
# don't both with file chunks smaller than this number of data bytes.
|
||||
# Default: 32.
|
||||
# CONFIG_NXFFS_TAILTHRESHOLD: clean-up can either mean
|
||||
# packing files together toward the end of the file or, if file are
|
||||
# deleted at the end of the file, clean up can simply mean erasing
|
||||
# the end of FLASH memory so that it can be re-used again. However,
|
||||
# doing this can also harm the life of the FLASH part because it can
|
||||
# mean that the tail end of the FLASH is re-used too often. This
|
||||
# threshold determines if/when it is worth erased the tail end of FLASH
|
||||
# and making it available for re-use (and possible over-wear).
|
||||
# Default: 8192.
|
||||
# CONFIG_FS_ROMFS - Enable ROMFS filesystem support
|
||||
# CONFIG_FS_RAMMAP - For file systems that do not support XIP, this
|
||||
# option will enable a limited form of memory mapping that is
|
||||
# implemented by copying whole files into memory.
|
||||
#
|
||||
CONFIG_FS_FAT=n
|
||||
CONFIG_FS_FAT=y
|
||||
CONFIG_FAT_LCNAMES=y
|
||||
CONFIG_FAT_LFN=y
|
||||
CONFIG_FAT_MAXFNAME=32
|
||||
CONFIG_FS_NXFFS=n
|
||||
CONFIG_FS_ROMFS=n
|
||||
|
||||
#
|
||||
@@ -726,6 +785,9 @@ CONFIG_EXAMPLES_OSTEST_NBARRIER_THREADS=3
|
||||
#
|
||||
# Settings for apps/nshlib
|
||||
#
|
||||
# CONFIG_NSH_BUILTIN_APPS - Support external registered,
|
||||
# "named" applications that can be executed from the NSH
|
||||
# command line (see apps/README.txt for more information).
|
||||
# CONFIG_NSH_FILEIOSIZE - Size of a static I/O buffer
|
||||
# CONFIG_NSH_STRERROR - Use strerror(errno)
|
||||
# CONFIG_NSH_LINELEN - Maximum length of one command line
|
||||
@@ -756,6 +818,7 @@ CONFIG_EXAMPLES_OSTEST_NBARRIER_THREADS=3
|
||||
# CONFIG_NSH_FATNSECTORS - FAT FS number of sectors
|
||||
# CONFIG_NSH_FATMOUNTPT - FAT FS mountpoint
|
||||
#
|
||||
CONFIG_NSH_BUILTIN_APPS=y
|
||||
CONFIG_NSH_FILEIOSIZE=512
|
||||
CONFIG_NSH_STRERROR=n
|
||||
CONFIG_NSH_LINELEN=64
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* configs/mirtoo/ostest/ld.script
|
||||
* configs/mirtoo/scripts/debug.ld
|
||||
*
|
||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@@ -1,5 +1,5 @@
|
||||
/****************************************************************************
|
||||
* configs/mirtoo/ostest/ld.script
|
||||
* configs/mirtoo/scripts/release.ld
|
||||
*
|
||||
* Copyright (C) 2012 Gregory Nutt. All rights reserved.
|
||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||
@@ -189,8 +189,8 @@ Toolchains
|
||||
|
||||
An alternative, build-it-yourself toolchain is available here:
|
||||
http://sourceforge.net/projects/microchipopen/ . These tools were
|
||||
last updated circa 2010. However, this is the only way that I know of
|
||||
to get free C++ support.
|
||||
last updated circa 2010. NOTE: C++ support still not available
|
||||
in this toolchain.
|
||||
|
||||
Building MicrochipOpen (on Linux)
|
||||
|
||||
@@ -211,8 +211,6 @@ Toolchains
|
||||
Note that the tools will have the prefix, mypic32- so, for example, the
|
||||
compiler will be called mypic32-gcc.
|
||||
|
||||
This will check out the selected branch and build the tools.
|
||||
|
||||
MPLAB/C32 vs MPLABX/X32
|
||||
-----------------------
|
||||
|
||||
|
||||
@@ -406,8 +406,8 @@ Toolchains
|
||||
|
||||
An alternative, build-it-yourself toolchain is available here:
|
||||
http://sourceforge.net/projects/microchipopen/ . These tools were
|
||||
last updated circa 2010. However, this is the only way that I know of
|
||||
to get free C++ support.
|
||||
last updated circa 2010. NOTE: C++ support still not available
|
||||
in this toolchain.
|
||||
|
||||
Building MicrochipOpen (on Linux)
|
||||
|
||||
@@ -428,8 +428,6 @@ Toolchains
|
||||
Note that the tools will have the prefix, mypic32- so, for example, the
|
||||
compiler will be called mypic32-gcc.
|
||||
|
||||
This will check out the selected branch and build the tools.
|
||||
|
||||
MPLAB/C32 vs MPLABX/X32
|
||||
-----------------------
|
||||
|
||||
|
||||
@@ -174,8 +174,8 @@ Toolchains
|
||||
|
||||
An alternative, build-it-yourself toolchain is available here:
|
||||
http://sourceforge.net/projects/microchipopen/ . These tools were
|
||||
last updated circa 2010. However, this is the only way that I know of
|
||||
to get free C++ support.
|
||||
last updated circa 2010. NOTE: C++ support still not available
|
||||
in this toolchain.
|
||||
|
||||
Building MicrochipOpen (on Linux)
|
||||
|
||||
@@ -196,8 +196,6 @@ Toolchains
|
||||
Note that the tools will have the prefix, mypic32- so, for example, the
|
||||
compiler will be called mypic32-gcc.
|
||||
|
||||
This will check out the selected branch and build the tools.
|
||||
|
||||
MPLAB/C32 vs MPLABX/X32
|
||||
-----------------------
|
||||
|
||||
|
||||
@@ -255,8 +255,8 @@ Toolchains
|
||||
|
||||
An alternative, build-it-yourself toolchain is available here:
|
||||
http://sourceforge.net/projects/microchipopen/ . These tools were
|
||||
last updated circa 2010. However, this is the only way that I know of
|
||||
to get free C++ support.
|
||||
last updated circa 2010. NOTE: C++ support still not available
|
||||
in this toolchain.
|
||||
|
||||
Building MicrochipOpen (on Linux)
|
||||
|
||||
@@ -277,8 +277,6 @@ Toolchains
|
||||
Note that the tools will have the prefix, mypic32- so, for example, the
|
||||
compiler will be called mypic32-gcc.
|
||||
|
||||
This will check out the selected branch and build the tools.
|
||||
|
||||
MPLAB/C32 vs MPLABX/X32
|
||||
-----------------------
|
||||
|
||||
|
||||
@@ -199,8 +199,8 @@ Toolchains
|
||||
|
||||
An alternative, build-it-yourself toolchain is available here:
|
||||
http://sourceforge.net/projects/microchipopen/ . These tools were
|
||||
last updated circa 2010. However, this is the only way that I know of
|
||||
to get free C++ support.
|
||||
last updated circa 2010. NOTE: C++ support still not available
|
||||
in this toolchain.
|
||||
|
||||
Building MicrochipOpen (on Linux)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user