mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Repairs needed after Kconfig changes for LPC31
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5105 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
+18
-18
@@ -43,12 +43,12 @@ GNU Toolchain Options
|
|||||||
add one of the following configuration options to your .config (or defconfig)
|
add one of the following configuration options to your .config (or defconfig)
|
||||||
file:
|
file:
|
||||||
|
|
||||||
CONFIG_LPC31XX_CODESOURCERYW=y : CodeSourcery under Windows
|
CONFIG_LPC31_CODESOURCERYW=y : CodeSourcery under Windows
|
||||||
CONFIG_LPC31XX_CODESOURCERYL=y : CodeSourcery under Linux
|
CONFIG_LPC31_CODESOURCERYL=y : CodeSourcery under Linux
|
||||||
CONFIG_LPC31XX_DEVKITARM=y : devkitARM under Windows
|
CONFIG_LPC31_DEVKITARM=y : devkitARM under Windows
|
||||||
CONFIG_LPC31XX_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
CONFIG_LPC31_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
||||||
|
|
||||||
If you are not using CONFIG_LPC31XX_BUILDROOT, then you may also have to modify
|
If you are not using CONFIG_LPC31_BUILDROOT, then you may also have to modify
|
||||||
the PATH in the setenv.h file if your make cannot find the tools.
|
the PATH in the setenv.h file if your make cannot find the tools.
|
||||||
|
|
||||||
NOTE: the CodeSourcery (for Windows), devkitARM, and Raisonance toolchains are
|
NOTE: the CodeSourcery (for Windows), devkitARM, and Raisonance toolchains are
|
||||||
@@ -381,7 +381,7 @@ On-Demand Paging
|
|||||||
configs/ea3131/locked/Makefile to build the first pass object, locked.r.
|
configs/ea3131/locked/Makefile to build the first pass object, locked.r.
|
||||||
This first pass object contains all of the code that must be in the locked
|
This first pass object contains all of the code that must be in the locked
|
||||||
text region. The Makefile in arch/arm/src/Makefile then includes this 1st
|
text region. The Makefile in arch/arm/src/Makefile then includes this 1st
|
||||||
pass in build, positioning it as controlled by configs/ea3131/pgnsh/ld.script.
|
pass in build, positioning it as controlled by configs/ea3131/scripts/pg-ld.script.
|
||||||
|
|
||||||
Finishing the Example:
|
Finishing the Example:
|
||||||
----------------------
|
----------------------
|
||||||
@@ -549,27 +549,27 @@ ARM/EA3131-specific Configuration Options
|
|||||||
|
|
||||||
Individual subsystems can be enabled:
|
Individual subsystems can be enabled:
|
||||||
|
|
||||||
CONFIG_LPC31XX_MCI, CONFIG_LPC31XX_SPI, CONFIG_LPC31XX_UART
|
CONFIG_LPC31_MCI, CONFIG_LPC31_SPI, CONFIG_LPC31_UART
|
||||||
|
|
||||||
External memory available on the board (see also CONFIG_MM_REGIONS)
|
External memory available on the board (see also CONFIG_MM_REGIONS)
|
||||||
|
|
||||||
CONFIG_LPC31XX_EXTSRAM0 - Select if external SRAM0 is present
|
CONFIG_LPC31_EXTSRAM0 - Select if external SRAM0 is present
|
||||||
CONFIG_LPC31XX_EXTSRAM0HEAP - Select if external SRAM0 should be
|
CONFIG_LPC31_EXTSRAM0HEAP - Select if external SRAM0 should be
|
||||||
configured as part of the NuttX heap.
|
configured as part of the NuttX heap.
|
||||||
CONFIG_LPC31XX_EXTSRAM0SIZE - Size (in bytes) of the installed
|
CONFIG_LPC31_EXTSRAM0SIZE - Size (in bytes) of the installed
|
||||||
external SRAM0 memory
|
external SRAM0 memory
|
||||||
CONFIG_LPC31XX_EXTSRAM1 - Select if external SRAM1 is present
|
CONFIG_LPC31_EXTSRAM1 - Select if external SRAM1 is present
|
||||||
CONFIG_LPC31XX_EXTSRAM1HEAP - Select if external SRAM1 should be
|
CONFIG_LPC31_EXTSRAM1HEAP - Select if external SRAM1 should be
|
||||||
configured as part of the NuttX heap.
|
configured as part of the NuttX heap.
|
||||||
CONFIG_LPC31XX_EXTSRAM1SIZE - Size (in bytes) of the installed
|
CONFIG_LPC31_EXTSRAM1SIZE - Size (in bytes) of the installed
|
||||||
external SRAM1 memory
|
external SRAM1 memory
|
||||||
CONFIG_LPC31XX_EXTSDRAM - Select if external SDRAM is present
|
CONFIG_LPC31_EXTSDRAM - Select if external SDRAM is present
|
||||||
CONFIG_LPC31XX_EXTSDRAMHEAP - Select if external SDRAM should be
|
CONFIG_LPC31_EXTSDRAMHEAP - Select if external SDRAM should be
|
||||||
configured as part of the NuttX heap.
|
configured as part of the NuttX heap.
|
||||||
CONFIG_LPC31XX_EXTSDRAMSIZE - Size (in bytes) of the installed
|
CONFIG_LPC31_EXTSDRAMSIZE - Size (in bytes) of the installed
|
||||||
external SDRAM memory
|
external SDRAM memory
|
||||||
CONFIG_LPC31XX_EXTNAND - Select if external NAND is present
|
CONFIG_LPC31_EXTNAND - Select if external NAND is present
|
||||||
CONFIG_LPC31XX_EXTSDRAMSIZE - Size (in bytes) of the installed
|
CONFIG_LPC31_EXTSDRAMSIZE - Size (in bytes) of the installed
|
||||||
external NAND memory
|
external NAND memory
|
||||||
|
|
||||||
LPC313X specific device driver settings
|
LPC313X specific device driver settings
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
# configs/ea3131/locked/mklocked.sh
|
# configs/ea3131/locked/mklocked.sh
|
||||||
#
|
#
|
||||||
# Copyright (C) 2010-2011 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2010-2012 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
@@ -117,7 +117,7 @@ echo "EXTERN(up_vectoraddrexcptn)" >>ld-locked.inc
|
|||||||
|
|
||||||
echo "EXTERN(up_timerinit)" >>ld-locked.inc
|
echo "EXTERN(up_timerinit)" >>ld-locked.inc
|
||||||
|
|
||||||
answer=$(checkconfig CONFIG_LPC31XX_UART)
|
answer=$(checkconfig CONFIG_LPC31_UART)
|
||||||
if [ $answer = y ]; then
|
if [ $answer = y ]; then
|
||||||
echo "EXTERN(up_earlyserialinit)" >>ld-locked.inc
|
echo "EXTERN(up_earlyserialinit)" >>ld-locked.inc
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -38,23 +38,23 @@ include ${TOPDIR}/tools/Config.mk
|
|||||||
|
|
||||||
# Setup for the selected toolchain
|
# Setup for the selected toolchain
|
||||||
|
|
||||||
ifeq ($(CONFIG_LPC31XX_CODESOURCERYW),y)
|
ifeq ($(CONFIG_LPC31_CODESOURCERYW),y)
|
||||||
# CodeSourcery under Windows
|
# CodeSourcery under Windows
|
||||||
CROSSDEV = arm-none-eabi-
|
CROSSDEV = arm-none-eabi-
|
||||||
WINTOOL = y
|
WINTOOL = y
|
||||||
MAXOPTIMIZATION = -O2
|
MAXOPTIMIZATION = -O2
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_CODESOURCERYL),y)
|
ifeq ($(CONFIG_LPC31_CODESOURCERYL),y)
|
||||||
# CodeSourcery under Linux
|
# CodeSourcery under Linux
|
||||||
CROSSDEV = arm-none-eabi-
|
CROSSDEV = arm-none-eabi-
|
||||||
MAXOPTIMIZATION = -O2
|
MAXOPTIMIZATION = -O2
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_DEVKITARM),y)
|
ifeq ($(CONFIG_LPC31_DEVKITARM),y)
|
||||||
# devkitARM under Windows
|
# devkitARM under Windows
|
||||||
CROSSDEV = arm-eabi-
|
CROSSDEV = arm-eabi-
|
||||||
WINTOOL = y
|
WINTOOL = y
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_BUILDROOT),y)
|
ifeq ($(CONFIG_LPC31_BUILDROOT),y)
|
||||||
# NuttX buildroot under Linux or Cygwin
|
# NuttX buildroot under Linux or Cygwin
|
||||||
CROSSDEV = arm-elf-
|
CROSSDEV = arm-elf-
|
||||||
MAXOPTIMIZATION = -Os
|
MAXOPTIMIZATION = -Os
|
||||||
@@ -67,13 +67,13 @@ ifeq ($(WINTOOL),y)
|
|||||||
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
||||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
||||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
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)/nsh/ld.script}"
|
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/ld.script}"
|
||||||
else
|
else
|
||||||
# Linux/Cygwin-native toolchain
|
# Linux/Cygwin-native toolchain
|
||||||
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
||||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
||||||
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
||||||
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/nsh/ld.script
|
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/ld.script
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC = $(CROSSDEV)gcc
|
CC = $(CROSSDEV)gcc
|
||||||
@@ -122,7 +122,7 @@ OBJEXT = .o
|
|||||||
LIBEXT = .a
|
LIBEXT = .a
|
||||||
EXEEXT =
|
EXEEXT =
|
||||||
|
|
||||||
ifneq ($(CONFIG_LPC31XX_BUILDROOT),y)
|
ifneq ($(CONFIG_LPC31_BUILDROOT),y)
|
||||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
LDFLAGS += -nostartfiles -nodefaultlibs
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||||
|
|||||||
@@ -1,107 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
* configs/ea3131/nsh/ld.script
|
|
||||||
*
|
|
||||||
* Copyright (C) 2010 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.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/* The LPC3131 has 192Kb of ISRAM beginning at virtual address 0x1102:8000.
|
|
||||||
* LPC31xx boot ROM expects the boot image be compiled with entry point at
|
|
||||||
* 0x1102:9000. A 128b header will appear at this address (applied by
|
|
||||||
* lpc313xImgCreator) and the executable code must begin at 0x1102:9080.
|
|
||||||
*/
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
isram (rwx) : ORIGIN = 0x11029080, LENGTH = 192K - 4224
|
|
||||||
}
|
|
||||||
|
|
||||||
OUTPUT_ARCH(arm)
|
|
||||||
ENTRY(_stext)
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
.text : {
|
|
||||||
_stext = ABSOLUTE(.);
|
|
||||||
*(.vectors)
|
|
||||||
*(.text .text.*)
|
|
||||||
*(.fixup)
|
|
||||||
*(.gnu.warning)
|
|
||||||
*(.rodata .rodata.*)
|
|
||||||
*(.gnu.linkonce.t.*)
|
|
||||||
*(.glue_7)
|
|
||||||
*(.glue_7t)
|
|
||||||
*(.got)
|
|
||||||
*(.gcc_except_table)
|
|
||||||
*(.gnu.linkonce.r.*)
|
|
||||||
_etext = ABSOLUTE(.);
|
|
||||||
} > isram
|
|
||||||
|
|
||||||
_eronly = ABSOLUTE(.);
|
|
||||||
|
|
||||||
.data : {
|
|
||||||
_sdata = ABSOLUTE(.);
|
|
||||||
*(.data .data.*)
|
|
||||||
*(.gnu.linkonce.d.*)
|
|
||||||
CONSTRUCTORS
|
|
||||||
_edata = ABSOLUTE(.);
|
|
||||||
} > isram
|
|
||||||
|
|
||||||
.ARM.extab : {
|
|
||||||
*(.ARM.extab*)
|
|
||||||
} >isram
|
|
||||||
|
|
||||||
.ARM.exidx : {
|
|
||||||
__exidx_start = ABSOLUTE(.);
|
|
||||||
*(.ARM.exidx*)
|
|
||||||
__exidx_end = ABSOLUTE(.);
|
|
||||||
} > isram
|
|
||||||
|
|
||||||
.bss : {
|
|
||||||
_sbss = ABSOLUTE(.);
|
|
||||||
*(.bss .bss.*)
|
|
||||||
*(.gnu.linkonce.b.*)
|
|
||||||
*(COMMON)
|
|
||||||
_ebss = ABSOLUTE(.);
|
|
||||||
} > isram
|
|
||||||
/* Stabs debugging sections. */
|
|
||||||
.stab 0 : { *(.stab) }
|
|
||||||
.stabstr 0 : { *(.stabstr) }
|
|
||||||
.stab.excl 0 : { *(.stab.excl) }
|
|
||||||
.stab.exclstr 0 : { *(.stab.exclstr) }
|
|
||||||
.stab.index 0 : { *(.stab.index) }
|
|
||||||
.stab.indexstr 0 : { *(.stab.indexstr) }
|
|
||||||
.comment 0 : { *(.comment) }
|
|
||||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
|
||||||
.debug_info 0 : { *(.debug_info) }
|
|
||||||
.debug_line 0 : { *(.debug_line) }
|
|
||||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
|
||||||
.debug_aranges 0 : { *(.debug_aranges) }
|
|
||||||
}
|
|
||||||
@@ -32,16 +32,35 @@
|
|||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ "$(basename $0)" = "setenv.sh" ] ; then
|
if [ "$_" = "$0" ] ; then
|
||||||
echo "You must source this script, not run it!" 1>&2
|
echo "You must source this script, not run it!" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG=${PATH}; fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
WD=`pwd`
|
||||||
export BUILDROOT_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
if [ ! -x "setenv.sh" ]; then
|
||||||
export LPCTOOL_DIR="${WD}/configs/ea3131/tools"
|
echo "This script must be executed from the top-level NuttX build directory"
|
||||||
export PATH="${BUILDROOT_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${PATH_ORIG}" ]; then
|
||||||
|
export PATH_ORIG="${PATH}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This the Cygwin path to the location where I installed the CodeSourcery
|
||||||
|
# toolchain under windows. You will also have to edit this if you install
|
||||||
|
# the CodeSourcery toolchain in any other location
|
||||||
|
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
||||||
|
|
||||||
|
# This the Cygwin path to the location where I build the buildroot
|
||||||
|
# toolchain.
|
||||||
|
#export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
|
||||||
|
|
||||||
|
# This is the path to the tools subdirectory
|
||||||
|
|
||||||
|
export LPCTOOL_DIR="${WD}/configs/ea3152/tools"
|
||||||
|
|
||||||
|
# Add the path to the toolchain to the PATH varialble
|
||||||
|
|
||||||
|
export PATH="${TOOLCHAIN_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
||||||
echo "PATH : ${PATH}"
|
echo "PATH : ${PATH}"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# configs/ea3131/ostest/Make.defs
|
# configs/ea3131/ostest/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2009,2012 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
@@ -38,23 +38,23 @@ include ${TOPDIR}/tools/Config.mk
|
|||||||
|
|
||||||
# Setup for the selected toolchain
|
# Setup for the selected toolchain
|
||||||
|
|
||||||
ifeq ($(CONFIG_LPC31XX_CODESOURCERYW),y)
|
ifeq ($(CONFIG_LPC31_CODESOURCERYW),y)
|
||||||
# CodeSourcery under Windows
|
# CodeSourcery under Windows
|
||||||
CROSSDEV = arm-none-eabi-
|
CROSSDEV = arm-none-eabi-
|
||||||
WINTOOL = y
|
WINTOOL = y
|
||||||
MAXOPTIMIZATION = -O2
|
MAXOPTIMIZATION = -O2
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_CODESOURCERYL),y)
|
ifeq ($(CONFIG_LPC31_CODESOURCERYL),y)
|
||||||
# CodeSourcery under Linux
|
# CodeSourcery under Linux
|
||||||
CROSSDEV = arm-none-eabi-
|
CROSSDEV = arm-none-eabi-
|
||||||
MAXOPTIMIZATION = -O2
|
MAXOPTIMIZATION = -O2
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_DEVKITARM),y)
|
ifeq ($(CONFIG_LPC31_DEVKITARM),y)
|
||||||
# devkitARM under Windows
|
# devkitARM under Windows
|
||||||
CROSSDEV = arm-eabi-
|
CROSSDEV = arm-eabi-
|
||||||
WINTOOL = y
|
WINTOOL = y
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_BUILDROOT),y)
|
ifeq ($(CONFIG_LPC31_BUILDROOT),y)
|
||||||
# NuttX buildroot under Linux or Cygwin
|
# NuttX buildroot under Linux or Cygwin
|
||||||
CROSSDEV = arm-elf-
|
CROSSDEV = arm-elf-
|
||||||
MAXOPTIMIZATION = -Os
|
MAXOPTIMIZATION = -Os
|
||||||
@@ -67,13 +67,13 @@ ifeq ($(WINTOOL),y)
|
|||||||
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
||||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
||||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
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/ld.script}"
|
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/ld.script}"
|
||||||
else
|
else
|
||||||
# Linux/Cygwin-native toolchain
|
# Linux/Cygwin-native toolchain
|
||||||
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
||||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
||||||
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
||||||
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/ostest/ld.script
|
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/ld.script
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC = $(CROSSDEV)gcc
|
CC = $(CROSSDEV)gcc
|
||||||
@@ -122,7 +122,7 @@ OBJEXT = .o
|
|||||||
LIBEXT = .a
|
LIBEXT = .a
|
||||||
EXEEXT =
|
EXEEXT =
|
||||||
|
|
||||||
ifneq ($(CONFIG_LPC31XX_BUILDROOT),y)
|
ifneq ($(CONFIG_LPC31_BUILDROOT),y)
|
||||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
LDFLAGS += -nostartfiles -nodefaultlibs
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||||
|
|||||||
@@ -1,107 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
* configs/ea3131/ostest/ld.script
|
|
||||||
*
|
|
||||||
* Copyright (C) 2009 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.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/* The LPC3131 has 192Kb of ISRAM beginning at virtual address 0x1102:8000.
|
|
||||||
* LPC31xx boot ROM expects the boot image be compiled with entry point at
|
|
||||||
* 0x1102:9000. A 128b header will appear at this address (applied by
|
|
||||||
* lpc313xImgCreator) and the executable code must begin at 0x1102:9080.
|
|
||||||
*/
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
isram (rwx) : ORIGIN = 0x11029080, LENGTH = 192K - 4224
|
|
||||||
}
|
|
||||||
|
|
||||||
OUTPUT_ARCH(arm)
|
|
||||||
ENTRY(_stext)
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
.text : {
|
|
||||||
_stext = ABSOLUTE(.);
|
|
||||||
*(.vectors)
|
|
||||||
*(.text .text.*)
|
|
||||||
*(.fixup)
|
|
||||||
*(.gnu.warning)
|
|
||||||
*(.rodata .rodata.*)
|
|
||||||
*(.gnu.linkonce.t.*)
|
|
||||||
*(.glue_7)
|
|
||||||
*(.glue_7t)
|
|
||||||
*(.got)
|
|
||||||
*(.gcc_except_table)
|
|
||||||
*(.gnu.linkonce.r.*)
|
|
||||||
_etext = ABSOLUTE(.);
|
|
||||||
} > isram
|
|
||||||
|
|
||||||
_eronly = ABSOLUTE(.);
|
|
||||||
|
|
||||||
.data : {
|
|
||||||
_sdata = ABSOLUTE(.);
|
|
||||||
*(.data .data.*)
|
|
||||||
*(.gnu.linkonce.d.*)
|
|
||||||
CONSTRUCTORS
|
|
||||||
_edata = ABSOLUTE(.);
|
|
||||||
} > isram
|
|
||||||
|
|
||||||
.ARM.extab : {
|
|
||||||
*(.ARM.extab*)
|
|
||||||
} >isram
|
|
||||||
|
|
||||||
.ARM.exidx : {
|
|
||||||
__exidx_start = ABSOLUTE(.);
|
|
||||||
*(.ARM.exidx*)
|
|
||||||
__exidx_end = ABSOLUTE(.);
|
|
||||||
} > isram
|
|
||||||
|
|
||||||
.bss : {
|
|
||||||
_sbss = ABSOLUTE(.);
|
|
||||||
*(.bss .bss.*)
|
|
||||||
*(.gnu.linkonce.b.*)
|
|
||||||
*(COMMON)
|
|
||||||
_ebss = ABSOLUTE(.);
|
|
||||||
} > isram
|
|
||||||
/* Stabs debugging sections. */
|
|
||||||
.stab 0 : { *(.stab) }
|
|
||||||
.stabstr 0 : { *(.stabstr) }
|
|
||||||
.stab.excl 0 : { *(.stab.excl) }
|
|
||||||
.stab.exclstr 0 : { *(.stab.exclstr) }
|
|
||||||
.stab.index 0 : { *(.stab.index) }
|
|
||||||
.stab.indexstr 0 : { *(.stab.indexstr) }
|
|
||||||
.comment 0 : { *(.comment) }
|
|
||||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
|
||||||
.debug_info 0 : { *(.debug_info) }
|
|
||||||
.debug_line 0 : { *(.debug_line) }
|
|
||||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
|
||||||
.debug_aranges 0 : { *(.debug_aranges) }
|
|
||||||
}
|
|
||||||
@@ -32,16 +32,35 @@
|
|||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ "$(basename $0)" = "setenv.sh" ] ; then
|
if [ "$_" = "$0" ] ; then
|
||||||
echo "You must source this script, not run it!" 1>&2
|
echo "You must source this script, not run it!" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG=${PATH}; fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
WD=`pwd`
|
||||||
export BUILDROOT_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
if [ ! -x "setenv.sh" ]; then
|
||||||
export LPCTOOL_DIR="${WD}/configs/ea3131/tools"
|
echo "This script must be executed from the top-level NuttX build directory"
|
||||||
export PATH="${BUILDROOT_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${PATH_ORIG}" ]; then
|
||||||
|
export PATH_ORIG="${PATH}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This the Cygwin path to the location where I installed the CodeSourcery
|
||||||
|
# toolchain under windows. You will also have to edit this if you install
|
||||||
|
# the CodeSourcery toolchain in any other location
|
||||||
|
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
||||||
|
|
||||||
|
# This the Cygwin path to the location where I build the buildroot
|
||||||
|
# toolchain.
|
||||||
|
#export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
|
||||||
|
|
||||||
|
# This is the path to the tools subdirectory
|
||||||
|
|
||||||
|
export LPCTOOL_DIR="${WD}/configs/ea3152/tools"
|
||||||
|
|
||||||
|
# Add the path to the toolchain to the PATH varialble
|
||||||
|
|
||||||
|
export PATH="${TOOLCHAIN_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
||||||
echo "PATH : ${PATH}"
|
echo "PATH : ${PATH}"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# configs/ea3131/pgnsh/Make.defs
|
# configs/ea3131/pgnsh/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2010,2012 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
@@ -38,23 +38,23 @@ include ${TOPDIR}/tools/Config.mk
|
|||||||
|
|
||||||
# Setup for the selected toolchain
|
# Setup for the selected toolchain
|
||||||
|
|
||||||
ifeq ($(CONFIG_LPC31XX_CODESOURCERYW),y)
|
ifeq ($(CONFIG_LPC31_CODESOURCERYW),y)
|
||||||
# CodeSourcery under Windows
|
# CodeSourcery under Windows
|
||||||
CROSSDEV = arm-none-eabi-
|
CROSSDEV = arm-none-eabi-
|
||||||
WINTOOL = y
|
WINTOOL = y
|
||||||
MAXOPTIMIZATION = -O2
|
MAXOPTIMIZATION = -O2
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_CODESOURCERYL),y)
|
ifeq ($(CONFIG_LPC31_CODESOURCERYL),y)
|
||||||
# CodeSourcery under Linux
|
# CodeSourcery under Linux
|
||||||
CROSSDEV = arm-none-eabi-
|
CROSSDEV = arm-none-eabi-
|
||||||
MAXOPTIMIZATION = -O2
|
MAXOPTIMIZATION = -O2
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_DEVKITARM),y)
|
ifeq ($(CONFIG_LPC31_DEVKITARM),y)
|
||||||
# devkitARM under Windows
|
# devkitARM under Windows
|
||||||
CROSSDEV = arm-eabi-
|
CROSSDEV = arm-eabi-
|
||||||
WINTOOL = y
|
WINTOOL = y
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_BUILDROOT),y)
|
ifeq ($(CONFIG_LPC31_BUILDROOT),y)
|
||||||
# NuttX buildroot under Linux or Cygwin
|
# NuttX buildroot under Linux or Cygwin
|
||||||
CROSSDEV = arm-elf-
|
CROSSDEV = arm-elf-
|
||||||
MAXOPTIMIZATION = -Os
|
MAXOPTIMIZATION = -Os
|
||||||
@@ -67,13 +67,13 @@ ifeq ($(WINTOOL),y)
|
|||||||
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
||||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
||||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
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)/pgnsh/ld.script}"
|
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/pg-ld.script}"
|
||||||
else
|
else
|
||||||
# Linux/Cygwin-native toolchain
|
# Linux/Cygwin-native toolchain
|
||||||
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
||||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
||||||
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
||||||
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/pgnsh/ld.script
|
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/pg-ld.script
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC = $(CROSSDEV)gcc
|
CC = $(CROSSDEV)gcc
|
||||||
@@ -122,7 +122,7 @@ OBJEXT = .o
|
|||||||
LIBEXT = .a
|
LIBEXT = .a
|
||||||
EXEEXT =
|
EXEEXT =
|
||||||
|
|
||||||
ifneq ($(CONFIG_LPC31XX_BUILDROOT),y)
|
ifneq ($(CONFIG_LPC31_BUILDROOT),y)
|
||||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
LDFLAGS += -nostartfiles -nodefaultlibs
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||||
|
|||||||
@@ -32,16 +32,35 @@
|
|||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ "$(basename $0)" = "setenv.sh" ] ; then
|
if [ "$_" = "$0" ] ; then
|
||||||
echo "You must source this script, not run it!" 1>&2
|
echo "You must source this script, not run it!" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG=${PATH}; fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
WD=`pwd`
|
||||||
export BUILDROOT_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
if [ ! -x "setenv.sh" ]; then
|
||||||
export LPCTOOL_DIR="${WD}/configs/ea3131/tools"
|
echo "This script must be executed from the top-level NuttX build directory"
|
||||||
export PATH="${BUILDROOT_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${PATH_ORIG}" ]; then
|
||||||
|
export PATH_ORIG="${PATH}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This the Cygwin path to the location where I installed the CodeSourcery
|
||||||
|
# toolchain under windows. You will also have to edit this if you install
|
||||||
|
# the CodeSourcery toolchain in any other location
|
||||||
|
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
||||||
|
|
||||||
|
# This the Cygwin path to the location where I build the buildroot
|
||||||
|
# toolchain.
|
||||||
|
#export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
|
||||||
|
|
||||||
|
# This is the path to the tools subdirectory
|
||||||
|
|
||||||
|
export LPCTOOL_DIR="${WD}/configs/ea3152/tools"
|
||||||
|
|
||||||
|
# Add the path to the toolchain to the PATH varialble
|
||||||
|
|
||||||
|
export PATH="${TOOLCHAIN_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
||||||
echo "PATH : ${PATH}"
|
echo "PATH : ${PATH}"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* configs/ea3131/usbserial/ld.script
|
* configs/ea3131/scripts/ld.script
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010-2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2010-2012 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* configs/ea3131/pgnsh/ld.script
|
* configs/ea3131/scripts/pg-ld.script
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2010, 2012 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
# configs/ea3131/src/Makefile
|
# configs/ea3131/src/Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
@@ -44,13 +44,13 @@ CSRCS = up_boot.c up_clkinit.c
|
|||||||
ifeq ($(CONFIG_ARCH_BUTTONS),y)
|
ifeq ($(CONFIG_ARCH_BUTTONS),y)
|
||||||
CSRCS += up_buttons.c
|
CSRCS += up_buttons.c
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_EXTSDRAM),y)
|
ifeq ($(CONFIG_LPC31_EXTSDRAM),y)
|
||||||
CSRCS += up_mem.c
|
CSRCS += up_mem.c
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_ARCH_LEDS),y)
|
ifeq ($(CONFIG_ARCH_LEDS),y)
|
||||||
CSRCS += up_leds.c
|
CSRCS += up_leds.c
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_SPI),y)
|
ifeq ($(CONFIG_LPC31_SPI),y)
|
||||||
CSRCS += up_spi.c
|
CSRCS += up_spi.c
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_NSH_ARCHINIT),y)
|
ifeq ($(CONFIG_NSH_ARCHINIT),y)
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* configs/ea3131/src/ea3131_internal.h
|
* configs/ea3131/src/ea3131_internal.h
|
||||||
* arch/arm/src/board/ea3131_internal.n
|
* arch/arm/src/board/ea3131_internal.n
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009-2010,2012 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LPC31XX_EXTSDRAM
|
#ifdef CONFIG_LPC31_EXTSDRAM
|
||||||
extern void lpc31_meminitialize(void);
|
extern void lpc31_meminitialize(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* configs/ea3131/src/up_boot.c
|
* configs/ea3131/src/up_boot.c
|
||||||
* arch/arm/src/board/up_boot.c
|
* arch/arm/src/board/up_boot.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009,2012 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@@ -75,7 +75,7 @@ void lpc31_boardinitialize(void)
|
|||||||
{
|
{
|
||||||
/* Initialize configured, external memory resources */
|
/* Initialize configured, external memory resources */
|
||||||
|
|
||||||
#ifdef CONFIG_LPC31XX_EXTSDRAM
|
#ifdef CONFIG_LPC31_EXTSDRAM
|
||||||
lpc31_meminitialize();
|
lpc31_meminitialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ void lpc31_boardinitialize(void)
|
|||||||
* lpc31_spiinitialize() has been brought into the link.
|
* lpc31_spiinitialize() has been brought into the link.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_LPC31XX_SPI)
|
#if defined(CONFIG_LPC31_SPI)
|
||||||
if (lpc31_spiinitialize)
|
if (lpc31_spiinitialize)
|
||||||
{
|
{
|
||||||
lpc31_spiinitialize();
|
lpc31_spiinitialize();
|
||||||
@@ -95,7 +95,7 @@ void lpc31_boardinitialize(void)
|
|||||||
* into the build.
|
* into the build.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_USBDEV) && defined(CONFIG_LPC31XX_USB)
|
#if defined(CONFIG_USBDEV) && defined(CONFIG_LPC31_USB)
|
||||||
if (lpc31_usbinitialize)
|
if (lpc31_usbinitialize)
|
||||||
{
|
{
|
||||||
lpc31_usbinitialize();
|
lpc31_usbinitialize();
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* configs/ea3131/src/up_fillpage.c
|
* configs/ea3131/src/up_fillpage.c
|
||||||
* arch/arm/src/board/up_fillpage.c
|
* arch/arm/src/board/up_fillpage.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2010,2012 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@@ -122,7 +122,7 @@
|
|||||||
* is not enabled.
|
* is not enabled.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
# if defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_LPC31XX_MCI)
|
# if defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_LPC31_MCI)
|
||||||
# ifdef CONFIG_PAGING_SDSLOT
|
# ifdef CONFIG_PAGING_SDSLOT
|
||||||
# error "Mountpoints and/or MCI disabled"
|
# error "Mountpoints and/or MCI disabled"
|
||||||
# endif
|
# endif
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
|
|
||||||
/* Verify that SPI support is enabld */
|
/* Verify that SPI support is enabld */
|
||||||
|
|
||||||
#ifndef CONFIG_LPC31XX_SPI
|
#ifndef CONFIG_LPC31_SPI
|
||||||
# error "SPI support is not enabled"
|
# error "SPI support is not enabled"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* configs/ea3131/src/up_mem.c
|
* configs/ea3131/src/up_mem.c
|
||||||
* arch/arm/src/board/up_mem.c
|
* arch/arm/src/board/up_mem.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009-2010 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009-2010,2012 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* References:
|
* References:
|
||||||
* - NXP UM10314 LPC3130/31 User manual Rev. 1.01 — 9 September 2009
|
* - NXP UM10314 LPC3130/31 User manual Rev. 1.01 — 9 September 2009
|
||||||
@@ -59,7 +59,7 @@
|
|||||||
#include "lpc31_mpmc.h"
|
#include "lpc31_mpmc.h"
|
||||||
#include "ea3131_internal.h"
|
#include "ea3131_internal.h"
|
||||||
|
|
||||||
#ifdef CONFIG_LPC31XX_EXTSDRAM
|
#ifdef CONFIG_LPC31_EXTSDRAM
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
@@ -164,8 +164,8 @@ static void lpc31_sdraminitialize(void)
|
|||||||
* replaced with an apriori value.
|
* replaced with an apriori value.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_LPC31XX_SDRAMHCLK
|
#ifdef CONFIG_LPC31_SDRAMHCLK
|
||||||
# define HCLK CONFIG_LPC31XX_SDRAMHCLK
|
# define HCLK CONFIG_LPC31_SDRAMHCLK
|
||||||
#else
|
#else
|
||||||
uint32_t hclk = lpc31_clkfreq(CLKID_MPMCCFGCLK2, DOMAINID_SYS);
|
uint32_t hclk = lpc31_clkfreq(CLKID_MPMCCFGCLK2, DOMAINID_SYS);
|
||||||
# define HCLK hclk
|
# define HCLK hclk
|
||||||
@@ -356,4 +356,4 @@ void lpc31_meminitialize(void)
|
|||||||
|
|
||||||
lpc31_sdraminitialize();
|
lpc31_sdraminitialize();
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_LPC31XX_EXTSDRAM */
|
#endif /* CONFIG_LPC31_EXTSDRAM */
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* config/ea3131/src/up_nsh.c
|
* config/ea3131/src/up_nsh.c
|
||||||
* arch/arm/src/board/up_nsh.c
|
* arch/arm/src/board/up_nsh.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#ifdef CONFIG_LPC31XX_MCI
|
#ifdef CONFIG_LPC31_MCI
|
||||||
# include <nuttx/sdio.h>
|
# include <nuttx/sdio.h>
|
||||||
# include <nuttx/mmcsd.h>
|
# include <nuttx/mmcsd.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
* is not enabled.
|
* is not enabled.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_LPC31XX_MCI)
|
#if defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_LPC31_MCI)
|
||||||
# undef CONFIG_NSH_HAVEMMCSD
|
# undef CONFIG_NSH_HAVEMMCSD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -2,8 +2,8 @@
|
|||||||
* configs/ea3131/src/up_spi.c
|
* configs/ea3131/src/up_spi.c
|
||||||
* arch/arm/src/board/up_spi.c
|
* arch/arm/src/board/up_spi.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2009-2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2009-2012 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
#include "lpc31_internal.h"
|
#include "lpc31_internal.h"
|
||||||
#include "ea3131_internal.h"
|
#include "ea3131_internal.h"
|
||||||
|
|
||||||
#ifdef CONFIG_LPC31XX_SPI
|
#ifdef CONFIG_LPC31_SPI
|
||||||
#if 0 /* At present, EA3131 specific logic is hard-coded in the file lpc31_spi.c
|
#if 0 /* At present, EA3131 specific logic is hard-coded in the file lpc31_spi.c
|
||||||
* in arch/arm/src/lpc31xx */
|
* in arch/arm/src/lpc31xx */
|
||||||
|
|
||||||
@@ -138,5 +138,5 @@ uint8_t lpc31_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif /* 0 */
|
#endif /* 0 */
|
||||||
#endif /* CONFIG_LPC31XX_SPI */
|
#endif /* CONFIG_LPC31_SPI */
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# configs/ea3131/usbserial/Make.defs
|
# configs/ea3131/usbserial/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2010,2012 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
@@ -38,23 +38,23 @@ include ${TOPDIR}/tools/Config.mk
|
|||||||
|
|
||||||
# Setup for the selected toolchain
|
# Setup for the selected toolchain
|
||||||
|
|
||||||
ifeq ($(CONFIG_LPC31XX_CODESOURCERYW),y)
|
ifeq ($(CONFIG_LPC31_CODESOURCERYW),y)
|
||||||
# CodeSourcery under Windows
|
# CodeSourcery under Windows
|
||||||
CROSSDEV = arm-none-eabi-
|
CROSSDEV = arm-none-eabi-
|
||||||
WINTOOL = y
|
WINTOOL = y
|
||||||
MAXOPTIMIZATION = -O2
|
MAXOPTIMIZATION = -O2
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_CODESOURCERYL),y)
|
ifeq ($(CONFIG_LPC31_CODESOURCERYL),y)
|
||||||
# CodeSourcery under Linux
|
# CodeSourcery under Linux
|
||||||
CROSSDEV = arm-none-eabi-
|
CROSSDEV = arm-none-eabi-
|
||||||
MAXOPTIMIZATION = -O2
|
MAXOPTIMIZATION = -O2
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_DEVKITARM),y)
|
ifeq ($(CONFIG_LPC31_DEVKITARM),y)
|
||||||
# devkitARM under Windows
|
# devkitARM under Windows
|
||||||
CROSSDEV = arm-eabi-
|
CROSSDEV = arm-eabi-
|
||||||
WINTOOL = y
|
WINTOOL = y
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_BUILDROOT),y)
|
ifeq ($(CONFIG_LPC31_BUILDROOT),y)
|
||||||
# NuttX buildroot under Linux or Cygwin
|
# NuttX buildroot under Linux or Cygwin
|
||||||
CROSSDEV = arm-elf-
|
CROSSDEV = arm-elf-
|
||||||
MAXOPTIMIZATION = -Os
|
MAXOPTIMIZATION = -Os
|
||||||
@@ -67,13 +67,13 @@ ifeq ($(WINTOOL),y)
|
|||||||
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
||||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
||||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
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)/usbserial/ld.script}"
|
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/ld.script}"
|
||||||
else
|
else
|
||||||
# Linux/Cygwin-native toolchain
|
# Linux/Cygwin-native toolchain
|
||||||
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
||||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
||||||
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
||||||
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/usbserial/ld.script
|
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/ld.script
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC = $(CROSSDEV)gcc
|
CC = $(CROSSDEV)gcc
|
||||||
@@ -122,7 +122,7 @@ OBJEXT = .o
|
|||||||
LIBEXT = .a
|
LIBEXT = .a
|
||||||
EXEEXT =
|
EXEEXT =
|
||||||
|
|
||||||
ifneq ($(CONFIG_LPC31XX_BUILDROOT),y)
|
ifneq ($(CONFIG_LPC31_BUILDROOT),y)
|
||||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
LDFLAGS += -nostartfiles -nodefaultlibs
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||||
|
|||||||
@@ -32,16 +32,35 @@
|
|||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ "$(basename $0)" = "setenv.sh" ] ; then
|
if [ "$_" = "$0" ] ; then
|
||||||
echo "You must source this script, not run it!" 1>&2
|
echo "You must source this script, not run it!" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG=${PATH}; fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
WD=`pwd`
|
||||||
export BUILDROOT_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
if [ ! -x "setenv.sh" ]; then
|
||||||
export LPCTOOL_DIR="${WD}/configs/ea3131/tools"
|
echo "This script must be executed from the top-level NuttX build directory"
|
||||||
export PATH="${BUILDROOT_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${PATH_ORIG}" ]; then
|
||||||
|
export PATH_ORIG="${PATH}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This the Cygwin path to the location where I installed the CodeSourcery
|
||||||
|
# toolchain under windows. You will also have to edit this if you install
|
||||||
|
# the CodeSourcery toolchain in any other location
|
||||||
|
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
||||||
|
|
||||||
|
# This the Cygwin path to the location where I build the buildroot
|
||||||
|
# toolchain.
|
||||||
|
#export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
|
||||||
|
|
||||||
|
# This is the path to the tools subdirectory
|
||||||
|
|
||||||
|
export LPCTOOL_DIR="${WD}/configs/ea3152/tools"
|
||||||
|
|
||||||
|
# Add the path to the toolchain to the PATH varialble
|
||||||
|
|
||||||
|
export PATH="${TOOLCHAIN_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
||||||
echo "PATH : ${PATH}"
|
echo "PATH : ${PATH}"
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# configs/ea3131/usbstorage/Make.defs
|
# configs/ea3131/usbstorage/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2010 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2010,2012 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
# modification, are permitted provided that the following conditions
|
# modification, are permitted provided that the following conditions
|
||||||
@@ -38,23 +38,23 @@ include ${TOPDIR}/tools/Config.mk
|
|||||||
|
|
||||||
# Setup for the selected toolchain
|
# Setup for the selected toolchain
|
||||||
|
|
||||||
ifeq ($(CONFIG_LPC31XX_CODESOURCERYW),y)
|
ifeq ($(CONFIG_LPC31_CODESOURCERYW),y)
|
||||||
# CodeSourcery under Windows
|
# CodeSourcery under Windows
|
||||||
CROSSDEV = arm-none-eabi-
|
CROSSDEV = arm-none-eabi-
|
||||||
WINTOOL = y
|
WINTOOL = y
|
||||||
MAXOPTIMIZATION = -O2
|
MAXOPTIMIZATION = -O2
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_CODESOURCERYL),y)
|
ifeq ($(CONFIG_LPC31_CODESOURCERYL),y)
|
||||||
# CodeSourcery under Linux
|
# CodeSourcery under Linux
|
||||||
CROSSDEV = arm-none-eabi-
|
CROSSDEV = arm-none-eabi-
|
||||||
MAXOPTIMIZATION = -O2
|
MAXOPTIMIZATION = -O2
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_DEVKITARM),y)
|
ifeq ($(CONFIG_LPC31_DEVKITARM),y)
|
||||||
# devkitARM under Windows
|
# devkitARM under Windows
|
||||||
CROSSDEV = arm-eabi-
|
CROSSDEV = arm-eabi-
|
||||||
WINTOOL = y
|
WINTOOL = y
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_BUILDROOT),y)
|
ifeq ($(CONFIG_LPC31_BUILDROOT),y)
|
||||||
# NuttX buildroot under Linux or Cygwin
|
# NuttX buildroot under Linux or Cygwin
|
||||||
CROSSDEV = arm-elf-
|
CROSSDEV = arm-elf-
|
||||||
MAXOPTIMIZATION = -Os
|
MAXOPTIMIZATION = -Os
|
||||||
@@ -67,13 +67,13 @@ ifeq ($(WINTOOL),y)
|
|||||||
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
||||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
||||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
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)/usbstorage/ld.script}"
|
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/ld.script}"
|
||||||
else
|
else
|
||||||
# Linux/Cygwin-native toolchain
|
# Linux/Cygwin-native toolchain
|
||||||
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
||||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
||||||
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
||||||
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/usbstorage/ld.script
|
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/ld.script
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC = $(CROSSDEV)gcc
|
CC = $(CROSSDEV)gcc
|
||||||
@@ -122,7 +122,7 @@ OBJEXT = .o
|
|||||||
LIBEXT = .a
|
LIBEXT = .a
|
||||||
EXEEXT =
|
EXEEXT =
|
||||||
|
|
||||||
ifneq ($(CONFIG_LPC31XX_BUILDROOT),y)
|
ifneq ($(CONFIG_LPC31_BUILDROOT),y)
|
||||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
LDFLAGS += -nostartfiles -nodefaultlibs
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||||
|
|||||||
@@ -1,107 +0,0 @@
|
|||||||
/****************************************************************************
|
|
||||||
* configs/ea3131/usbstorage/ld.script
|
|
||||||
*
|
|
||||||
* Copyright (C) 2010-2011 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.
|
|
||||||
*
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/* The LPC3131 has 192Kb of ISRAM beginning at virtual address 0x1102:8000.
|
|
||||||
* LPC31xx boot ROM expects the boot image be compiled with entry point at
|
|
||||||
* 0x1102:9000. A 128b header will appear at this address (applied by
|
|
||||||
* lpc313xImgCreator) and the executable code must begin at 0x1102:9080.
|
|
||||||
*/
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
isram (rwx) : ORIGIN = 0x11029080, LENGTH = 192K - 4224
|
|
||||||
}
|
|
||||||
|
|
||||||
OUTPUT_ARCH(arm)
|
|
||||||
ENTRY(_stext)
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
.text : {
|
|
||||||
_stext = ABSOLUTE(.);
|
|
||||||
*(.vectors)
|
|
||||||
*(.text .text.*)
|
|
||||||
*(.fixup)
|
|
||||||
*(.gnu.warning)
|
|
||||||
*(.rodata .rodata.*)
|
|
||||||
*(.gnu.linkonce.t.*)
|
|
||||||
*(.glue_7)
|
|
||||||
*(.glue_7t)
|
|
||||||
*(.got)
|
|
||||||
*(.gcc_except_table)
|
|
||||||
*(.gnu.linkonce.r.*)
|
|
||||||
_etext = ABSOLUTE(.);
|
|
||||||
} > isram
|
|
||||||
|
|
||||||
_eronly = ABSOLUTE(.);
|
|
||||||
|
|
||||||
.data : {
|
|
||||||
_sdata = ABSOLUTE(.);
|
|
||||||
*(.data .data.*)
|
|
||||||
*(.gnu.linkonce.d.*)
|
|
||||||
CONSTRUCTORS
|
|
||||||
_edata = ABSOLUTE(.);
|
|
||||||
} > isram
|
|
||||||
|
|
||||||
.ARM.extab : {
|
|
||||||
*(.ARM.extab*)
|
|
||||||
} >isram
|
|
||||||
|
|
||||||
__exidx_start = ABSOLUTE(.);
|
|
||||||
.ARM.exidx : {
|
|
||||||
*(.ARM.exidx*)
|
|
||||||
} > isram
|
|
||||||
__exidx_end = ABSOLUTE(.);
|
|
||||||
|
|
||||||
.bss : {
|
|
||||||
_sbss = ABSOLUTE(.);
|
|
||||||
*(.bss .bss.*)
|
|
||||||
*(.gnu.linkonce.b.*)
|
|
||||||
*(COMMON)
|
|
||||||
_ebss = ABSOLUTE(.);
|
|
||||||
} > isram
|
|
||||||
/* Stabs debugging sections. */
|
|
||||||
.stab 0 : { *(.stab) }
|
|
||||||
.stabstr 0 : { *(.stabstr) }
|
|
||||||
.stab.excl 0 : { *(.stab.excl) }
|
|
||||||
.stab.exclstr 0 : { *(.stab.exclstr) }
|
|
||||||
.stab.index 0 : { *(.stab.index) }
|
|
||||||
.stab.indexstr 0 : { *(.stab.indexstr) }
|
|
||||||
.comment 0 : { *(.comment) }
|
|
||||||
.debug_abbrev 0 : { *(.debug_abbrev) }
|
|
||||||
.debug_info 0 : { *(.debug_info) }
|
|
||||||
.debug_line 0 : { *(.debug_line) }
|
|
||||||
.debug_pubnames 0 : { *(.debug_pubnames) }
|
|
||||||
.debug_aranges 0 : { *(.debug_aranges) }
|
|
||||||
}
|
|
||||||
@@ -32,16 +32,35 @@
|
|||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ "$(basename $0)" = "setenv.sh" ] ; then
|
if [ "$_" = "$0" ] ; then
|
||||||
echo "You must source this script, not run it!" 1>&2
|
echo "You must source this script, not run it!" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG=${PATH}; fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
WD=`pwd`
|
||||||
export BUILDROOT_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
if [ ! -x "setenv.sh" ]; then
|
||||||
export LPCTOOL_DIR="${WD}/configs/ea3131/tools"
|
echo "This script must be executed from the top-level NuttX build directory"
|
||||||
export PATH="${BUILDROOT_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${PATH_ORIG}" ]; then
|
||||||
|
export PATH_ORIG="${PATH}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This the Cygwin path to the location where I installed the CodeSourcery
|
||||||
|
# toolchain under windows. You will also have to edit this if you install
|
||||||
|
# the CodeSourcery toolchain in any other location
|
||||||
|
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
||||||
|
|
||||||
|
# This the Cygwin path to the location where I build the buildroot
|
||||||
|
# toolchain.
|
||||||
|
#export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
|
||||||
|
|
||||||
|
# This is the path to the tools subdirectory
|
||||||
|
|
||||||
|
export LPCTOOL_DIR="${WD}/configs/ea3152/tools"
|
||||||
|
|
||||||
|
# Add the path to the toolchain to the PATH varialble
|
||||||
|
|
||||||
|
export PATH="${TOOLCHAIN_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
||||||
echo "PATH : ${PATH}"
|
echo "PATH : ${PATH}"
|
||||||
|
|||||||
+17
-17
@@ -42,12 +42,12 @@ GNU Toolchain Options
|
|||||||
add one of the following configuration options to your .config (or defconfig)
|
add one of the following configuration options to your .config (or defconfig)
|
||||||
file:
|
file:
|
||||||
|
|
||||||
CONFIG_LPC31XX_CODESOURCERYW=y : CodeSourcery under Windows
|
CONFIG_LPC31_CODESOURCERYW=y : CodeSourcery under Windows
|
||||||
CONFIG_LPC31XX_CODESOURCERYL=y : CodeSourcery under Linux
|
CONFIG_LPC31_CODESOURCERYL=y : CodeSourcery under Linux
|
||||||
CONFIG_LPC31XX_DEVKITARM=y : devkitARM under Windows
|
CONFIG_LPC31_DEVKITARM=y : devkitARM under Windows
|
||||||
CONFIG_LPC31XX_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
CONFIG_LPC31_BUILDROOT=y : NuttX buildroot under Linux or Cygwin (default)
|
||||||
|
|
||||||
If you are not using CONFIG_LPC31XX_BUILDROOT, then you may also have to modify
|
If you are not using CONFIG_LPC31_BUILDROOT, then you may also have to modify
|
||||||
the PATH in the setenv.h file if your make cannot find the tools.
|
the PATH in the setenv.h file if your make cannot find the tools.
|
||||||
|
|
||||||
NOTE: the CodeSourcery (for Windows), devkitARM, and Raisonance toolchains are
|
NOTE: the CodeSourcery (for Windows), devkitARM, and Raisonance toolchains are
|
||||||
@@ -355,27 +355,27 @@ ARM/EA3152-specific Configuration Options
|
|||||||
|
|
||||||
Individual subsystems can be enabled:
|
Individual subsystems can be enabled:
|
||||||
|
|
||||||
CONFIG_LPC31XX_MCI, CONFIG_LPC31XX_SPI, CONFIG_LPC31XX_UART
|
CONFIG_LPC31_MCI, CONFIG_LPC31_SPI, CONFIG_LPC31_UART
|
||||||
|
|
||||||
External memory available on the board (see also CONFIG_MM_REGIONS)
|
External memory available on the board (see also CONFIG_MM_REGIONS)
|
||||||
|
|
||||||
CONFIG_LPC31XX_EXTSRAM0 - Select if external SRAM0 is present
|
CONFIG_LPC31_EXTSRAM0 - Select if external SRAM0 is present
|
||||||
CONFIG_LPC31XX_EXTSRAM0HEAP - Select if external SRAM0 should be
|
CONFIG_LPC31_EXTSRAM0HEAP - Select if external SRAM0 should be
|
||||||
configured as part of the NuttX heap.
|
configured as part of the NuttX heap.
|
||||||
CONFIG_LPC31XX_EXTSRAM0SIZE - Size (in bytes) of the installed
|
CONFIG_LPC31_EXTSRAM0SIZE - Size (in bytes) of the installed
|
||||||
external SRAM0 memory
|
external SRAM0 memory
|
||||||
CONFIG_LPC31XX_EXTSRAM1 - Select if external SRAM1 is present
|
CONFIG_LPC31_EXTSRAM1 - Select if external SRAM1 is present
|
||||||
CONFIG_LPC31XX_EXTSRAM1HEAP - Select if external SRAM1 should be
|
CONFIG_LPC31_EXTSRAM1HEAP - Select if external SRAM1 should be
|
||||||
configured as part of the NuttX heap.
|
configured as part of the NuttX heap.
|
||||||
CONFIG_LPC31XX_EXTSRAM1SIZE - Size (in bytes) of the installed
|
CONFIG_LPC31_EXTSRAM1SIZE - Size (in bytes) of the installed
|
||||||
external SRAM1 memory
|
external SRAM1 memory
|
||||||
CONFIG_LPC31XX_EXTSDRAM - Select if external SDRAM is present
|
CONFIG_LPC31_EXTSDRAM - Select if external SDRAM is present
|
||||||
CONFIG_LPC31XX_EXTSDRAMHEAP - Select if external SDRAM should be
|
CONFIG_LPC31_EXTSDRAMHEAP - Select if external SDRAM should be
|
||||||
configured as part of the NuttX heap.
|
configured as part of the NuttX heap.
|
||||||
CONFIG_LPC31XX_EXTSDRAMSIZE - Size (in bytes) of the installed
|
CONFIG_LPC31_EXTSDRAMSIZE - Size (in bytes) of the installed
|
||||||
external SDRAM memory
|
external SDRAM memory
|
||||||
CONFIG_LPC31XX_EXTNAND - Select if external NAND is present
|
CONFIG_LPC31_EXTNAND - Select if external NAND is present
|
||||||
CONFIG_LPC31XX_EXTSDRAMSIZE - Size (in bytes) of the installed
|
CONFIG_LPC31_EXTSDRAMSIZE - Size (in bytes) of the installed
|
||||||
external NAND memory
|
external NAND memory
|
||||||
|
|
||||||
LPC313X specific device driver settings
|
LPC313X specific device driver settings
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
############################################################################
|
############################################################################
|
||||||
# configs/ea3152/ostest/Make.defs
|
# configs/ea3152/ostest/Make.defs
|
||||||
#
|
#
|
||||||
# Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||||
# Author: Gregory Nutt <gnutt@nuttx.org>
|
# Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
#
|
#
|
||||||
# Redistribution and use in source and binary forms, with or without
|
# Redistribution and use in source and binary forms, with or without
|
||||||
@@ -38,23 +38,23 @@ include ${TOPDIR}/tools/Config.mk
|
|||||||
|
|
||||||
# Setup for the selected toolchain
|
# Setup for the selected toolchain
|
||||||
|
|
||||||
ifeq ($(CONFIG_LPC31XX_CODESOURCERYW),y)
|
ifeq ($(CONFIG_LPC31_CODESOURCERYW),y)
|
||||||
# CodeSourcery under Windows
|
# CodeSourcery under Windows
|
||||||
CROSSDEV = arm-none-eabi-
|
CROSSDEV = arm-none-eabi-
|
||||||
WINTOOL = y
|
WINTOOL = y
|
||||||
MAXOPTIMIZATION = -O2
|
MAXOPTIMIZATION = -O2
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_CODESOURCERYL),y)
|
ifeq ($(CONFIG_LPC31_CODESOURCERYL),y)
|
||||||
# CodeSourcery under Linux
|
# CodeSourcery under Linux
|
||||||
CROSSDEV = arm-none-eabi-
|
CROSSDEV = arm-none-eabi-
|
||||||
MAXOPTIMIZATION = -O2
|
MAXOPTIMIZATION = -O2
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_DEVKITARM),y)
|
ifeq ($(CONFIG_LPC31_DEVKITARM),y)
|
||||||
# devkitARM under Windows
|
# devkitARM under Windows
|
||||||
CROSSDEV = arm-eabi-
|
CROSSDEV = arm-eabi-
|
||||||
WINTOOL = y
|
WINTOOL = y
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_BUILDROOT),y)
|
ifeq ($(CONFIG_LPC31_BUILDROOT),y)
|
||||||
# NuttX buildroot under Linux or Cygwin
|
# NuttX buildroot under Linux or Cygwin
|
||||||
CROSSDEV = arm-elf-
|
CROSSDEV = arm-elf-
|
||||||
MAXOPTIMIZATION = -Os
|
MAXOPTIMIZATION = -Os
|
||||||
@@ -67,13 +67,13 @@ ifeq ($(WINTOOL),y)
|
|||||||
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
MKDEP = $(TOPDIR)/tools/mknulldeps.sh
|
||||||
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}"
|
||||||
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
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/ld.script}"
|
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/ld.script}"
|
||||||
else
|
else
|
||||||
# Linux/Cygwin-native toolchain
|
# Linux/Cygwin-native toolchain
|
||||||
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
MKDEP = $(TOPDIR)/tools/mkdeps.sh
|
||||||
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
||||||
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
||||||
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/ostest/ld.script
|
ARCHSCRIPT = -T$(TOPDIR)/configs/$(CONFIG_ARCH_BOARD)/scripts/ld.script
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC = $(CROSSDEV)gcc
|
CC = $(CROSSDEV)gcc
|
||||||
@@ -122,7 +122,7 @@ OBJEXT = .o
|
|||||||
LIBEXT = .a
|
LIBEXT = .a
|
||||||
EXEEXT =
|
EXEEXT =
|
||||||
|
|
||||||
ifneq ($(CONFIG_LPC31XX_BUILDROOT),y)
|
ifneq ($(CONFIG_LPC31_BUILDROOT),y)
|
||||||
LDFLAGS += -nostartfiles -nodefaultlibs
|
LDFLAGS += -nostartfiles -nodefaultlibs
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||||
|
|||||||
@@ -32,16 +32,35 @@
|
|||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ "$(basename $0)" = "setenv.sh" ] ; then
|
if [ "$_" = "$0" ] ; then
|
||||||
echo "You must source this script, not run it!" 1>&2
|
echo "You must source this script, not run it!" 1>&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${PATH_ORIG}" ]; then export PATH_ORIG=${PATH}; fi
|
|
||||||
|
|
||||||
WD=`pwd`
|
WD=`pwd`
|
||||||
export BUILDROOT_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
if [ ! -x "setenv.sh" ]; then
|
||||||
export LPCTOOL_DIR="${WD}/configs/ea3152/tools"
|
echo "This script must be executed from the top-level NuttX build directory"
|
||||||
export PATH="${BUILDROOT_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -z "${PATH_ORIG}" ]; then
|
||||||
|
export PATH_ORIG="${PATH}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# This the Cygwin path to the location where I installed the CodeSourcery
|
||||||
|
# toolchain under windows. You will also have to edit this if you install
|
||||||
|
# the CodeSourcery toolchain in any other location
|
||||||
|
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
||||||
|
|
||||||
|
# This the Cygwin path to the location where I build the buildroot
|
||||||
|
# toolchain.
|
||||||
|
#export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
|
||||||
|
|
||||||
|
# This is the path to the tools subdirectory
|
||||||
|
|
||||||
|
export LPCTOOL_DIR="${WD}/configs/ea3152/tools"
|
||||||
|
|
||||||
|
# Add the path to the toolchain to the PATH varialble
|
||||||
|
|
||||||
|
export PATH="${TOOLCHAIN_BIN}:${LPCTOOL_DIR}:/sbin:/usr/sbin:${PATH_ORIG}"
|
||||||
echo "PATH : ${PATH}"
|
echo "PATH : ${PATH}"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* configs/ea3152/ostest/ld.script
|
* configs/ea3152/scripts/ld.script
|
||||||
*
|
*
|
||||||
* Copyright (C) 2011 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2011-2012 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <gnutt@nuttx.org>
|
* Author: Gregory Nutt <gnutt@nuttx.org>
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
@@ -44,13 +44,13 @@ CSRCS = up_boot.c up_clkinit.c
|
|||||||
ifeq ($(CONFIG_ARCH_BUTTONS),y)
|
ifeq ($(CONFIG_ARCH_BUTTONS),y)
|
||||||
CSRCS += up_buttons.c
|
CSRCS += up_buttons.c
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_EXTSDRAM),y)
|
ifeq ($(CONFIG_LPC31_EXTSDRAM),y)
|
||||||
CSRCS += up_mem.c
|
CSRCS += up_mem.c
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_ARCH_LEDS),y)
|
ifeq ($(CONFIG_ARCH_LEDS),y)
|
||||||
CSRCS += up_leds.c
|
CSRCS += up_leds.c
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_LPC31XX_SPI),y)
|
ifeq ($(CONFIG_LPC31_SPI),y)
|
||||||
CSRCS += up_spi.c
|
CSRCS += up_spi.c
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_NSH_ARCHINIT),y)
|
ifeq ($(CONFIG_NSH_ARCHINIT),y)
|
||||||
|
|||||||
@@ -86,7 +86,7 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifdef CONFIG_LPC31XX_EXTSDRAM
|
#ifdef CONFIG_LPC31_EXTSDRAM
|
||||||
extern void lpc31_meminitialize(void);
|
extern void lpc31_meminitialize(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ void lpc31_boardinitialize(void)
|
|||||||
{
|
{
|
||||||
/* Initialize configured, external memory resources */
|
/* Initialize configured, external memory resources */
|
||||||
|
|
||||||
#ifdef CONFIG_LPC31XX_EXTSDRAM
|
#ifdef CONFIG_LPC31_EXTSDRAM
|
||||||
lpc31_meminitialize();
|
lpc31_meminitialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@@ -83,7 +83,7 @@ void lpc31_boardinitialize(void)
|
|||||||
* lpc31_spiinitialize() has been brought into the link.
|
* lpc31_spiinitialize() has been brought into the link.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_LPC31XX_SPI)
|
#if defined(CONFIG_LPC31_SPI)
|
||||||
if (lpc31_spiinitialize)
|
if (lpc31_spiinitialize)
|
||||||
{
|
{
|
||||||
lpc31_spiinitialize();
|
lpc31_spiinitialize();
|
||||||
@@ -95,7 +95,7 @@ void lpc31_boardinitialize(void)
|
|||||||
* into the build.
|
* into the build.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_USBDEV) && defined(CONFIG_LPC31XX_USB)
|
#if defined(CONFIG_USBDEV) && defined(CONFIG_LPC31_USB)
|
||||||
if (lpc31_usbinitialize)
|
if (lpc31_usbinitialize)
|
||||||
{
|
{
|
||||||
lpc31_usbinitialize();
|
lpc31_usbinitialize();
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
* is not enabled.
|
* is not enabled.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
# if defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_LPC31XX_MCI)
|
# if defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_LPC31_MCI)
|
||||||
# ifdef CONFIG_PAGING_SDSLOT
|
# ifdef CONFIG_PAGING_SDSLOT
|
||||||
# error "Mountpoints and/or MCI disabled"
|
# error "Mountpoints and/or MCI disabled"
|
||||||
# endif
|
# endif
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
|
|
||||||
/* Verify that SPI support is enabld */
|
/* Verify that SPI support is enabld */
|
||||||
|
|
||||||
#ifndef CONFIG_LPC31XX_SPI
|
#ifndef CONFIG_LPC31_SPI
|
||||||
# error "SPI support is not enabled"
|
# error "SPI support is not enabled"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,7 @@
|
|||||||
#include "lpc31_mpmc.h"
|
#include "lpc31_mpmc.h"
|
||||||
#include "ea3152_internal.h"
|
#include "ea3152_internal.h"
|
||||||
|
|
||||||
#ifdef CONFIG_LPC31XX_EXTSDRAM
|
#ifdef CONFIG_LPC31_EXTSDRAM
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Pre-processor Definitions
|
* Pre-processor Definitions
|
||||||
@@ -164,8 +164,8 @@ static void lpc31_sdraminitialize(void)
|
|||||||
* replaced with an apriori value.
|
* replaced with an apriori value.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_LPC31XX_SDRAMHCLK
|
#ifdef CONFIG_LPC31_SDRAMHCLK
|
||||||
# define HCLK CONFIG_LPC31XX_SDRAMHCLK
|
# define HCLK CONFIG_LPC31_SDRAMHCLK
|
||||||
#else
|
#else
|
||||||
uint32_t hclk = lpc31_clkfreq(CLKID_MPMCCFGCLK2, DOMAINID_SYS);
|
uint32_t hclk = lpc31_clkfreq(CLKID_MPMCCFGCLK2, DOMAINID_SYS);
|
||||||
# define HCLK hclk
|
# define HCLK hclk
|
||||||
@@ -356,4 +356,4 @@ void lpc31_meminitialize(void)
|
|||||||
|
|
||||||
lpc31_sdraminitialize();
|
lpc31_sdraminitialize();
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_LPC31XX_EXTSDRAM */
|
#endif /* CONFIG_LPC31_EXTSDRAM */
|
||||||
|
|||||||
@@ -45,7 +45,7 @@
|
|||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#ifdef CONFIG_LPC31XX_MCI
|
#ifdef CONFIG_LPC31_MCI
|
||||||
# include <nuttx/sdio.h>
|
# include <nuttx/sdio.h>
|
||||||
# include <nuttx/mmcsd.h>
|
# include <nuttx/mmcsd.h>
|
||||||
#endif
|
#endif
|
||||||
@@ -88,7 +88,7 @@
|
|||||||
* is not enabled.
|
* is not enabled.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_LPC31XX_MCI)
|
#if defined(CONFIG_DISABLE_MOUNTPOINT) || !defined(CONFIG_LPC31_MCI)
|
||||||
# undef CONFIG_NSH_HAVEMMCSD
|
# undef CONFIG_NSH_HAVEMMCSD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
#include "lpc31_internal.h"
|
#include "lpc31_internal.h"
|
||||||
#include "ea3152_internal.h"
|
#include "ea3152_internal.h"
|
||||||
|
|
||||||
#ifdef CONFIG_LPC31XX_SPI
|
#ifdef CONFIG_LPC31_SPI
|
||||||
#if 0 /* At present, EA3152 specific logic is hard-coded in the file lpc31_spi.c
|
#if 0 /* At present, EA3152 specific logic is hard-coded in the file lpc31_spi.c
|
||||||
* in arch/arm/src/lpc31xx */
|
* in arch/arm/src/lpc31xx */
|
||||||
|
|
||||||
@@ -138,5 +138,5 @@ uint8_t lpc31_spistatus(FAR struct spi_dev_s *dev, enum spi_dev_e devid)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#endif /* 0 */
|
#endif /* 0 */
|
||||||
#endif /* CONFIG_LPC31XX_SPI */
|
#endif /* CONFIG_LPC31_SPI */
|
||||||
|
|
||||||
|
|||||||
@@ -57,14 +57,6 @@ fi
|
|||||||
# the CodeSourcery toolchain in any other location
|
# the CodeSourcery toolchain in any other location
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
||||||
|
|
||||||
# These are the Cygwin paths to the locations where I installed the Atollic
|
|
||||||
# toolchain under windows. You will also have to edit this if you install
|
|
||||||
# the Atollic toolchain in any other location. /usr/bin is added before
|
|
||||||
# the Atollic bin path because there is are binaries named gcc.exe and g++.exe
|
|
||||||
# at those locations as well.
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for ARM Pro 2.3.0/ARMTools/bin"
|
|
||||||
#export TOOLCHAIN_BIN="/usr/bin:/cygdrive/c/Program Files (x86)/Atollic/TrueSTUDIO for STMicroelectronics STM32 Lite 2.3.0/ARMTools/bin"
|
|
||||||
|
|
||||||
# This the Cygwin path to the location where I build the buildroot
|
# This the Cygwin path to the location where I build the buildroot
|
||||||
# toolchain.
|
# toolchain.
|
||||||
#export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
|
#export TOOLCHAIN_BIN="${WD}/../misc/buildroot/build_arm_nofpu/staging_dir/bin"
|
||||||
|
|||||||
Reference in New Issue
Block a user