mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Changes to use the common ARM directory under arch/arm
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@188 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -112,6 +112,12 @@ defconfig -- This is a configuration file similar to the Linux
|
|||||||
hence, the board that supports the particular chip or SoC.
|
hence, the board that supports the particular chip or SoC.
|
||||||
CONFIG_ARCH_BOARD_name - For use in C code
|
CONFIG_ARCH_BOARD_name - For use in C code
|
||||||
|
|
||||||
|
Some architectures require a description of the the RAM configuration:
|
||||||
|
|
||||||
|
CONFIG_DRAM_SIZE - Describes the installed DRAM.
|
||||||
|
CONFIG_DRAM_START - The start address of DRAM (physical)
|
||||||
|
CONFIG_DRAM_VSTART - The startaddress of DRAM (virtual)
|
||||||
|
|
||||||
General OS setup
|
General OS setup
|
||||||
|
|
||||||
CONFIG_EXAMPLE - identifies the subdirectory in examples
|
CONFIG_EXAMPLE - identifies the subdirectory in examples
|
||||||
|
|||||||
@@ -45,18 +45,20 @@
|
|||||||
# CONFIG_ARCH_BOARD - identifies the configs subdirectory and, hence,
|
# CONFIG_ARCH_BOARD - identifies the configs subdirectory and, hence,
|
||||||
# the board that supports the particular chip or SoC.
|
# the board that supports the particular chip or SoC.
|
||||||
# CONFIG_ARCH_BOARD_name - for use in C code
|
# CONFIG_ARCH_BOARD_name - for use in C code
|
||||||
|
# CONFIG_BOARD_LOOPSPERMSEC - for delay loops
|
||||||
# CONFIG_ROM_VECTORS - unique to c5471
|
# CONFIG_ROM_VECTORS - unique to c5471
|
||||||
# CONFIG_DRAM_END - the size of installed DRAM.
|
# CONFIG_DRAM_END - the size of installed DRAM.
|
||||||
# Unique to c5471
|
# Unique to c5471
|
||||||
# CONFIG_ARCH_LEDS - Use LEDs to show state. Unique to c5471.
|
# CONFIG_ARCH_LEDS - Use LEDs to show state. Unique to c5471.
|
||||||
# CONFIG_ARCH_STACKDUMP - Do stack dumps after assertions
|
# CONFIG_ARCH_STACKDUMP - Do stack dumps after assertions
|
||||||
#
|
#
|
||||||
CONFIG_ARCH=c5471
|
CONFIG_ARCH=arm
|
||||||
CONFIG_ARCH_C5471=y
|
CONFIG_ARCH_ARM=y
|
||||||
CONFIG_ARCH_CHIP=c5471
|
CONFIG_ARCH_CHIP=c5471
|
||||||
CONFIG_ARCH_CHIP_C5471=y
|
CONFIG_ARCH_CHIP_C5471=y
|
||||||
CONFIG_ARCH_BOARD=c5471evm
|
CONFIG_ARCH_BOARD=c5471evm
|
||||||
CONFIG_ARCH_BOARD_C5471EVM=y
|
CONFIG_ARCH_BOARD_C5471EVM=y
|
||||||
|
CONFIG_BOARD_LOOPSPERMSEC=1250
|
||||||
CONFIG_ROM_VECTORS=n
|
CONFIG_ROM_VECTORS=n
|
||||||
CONFIG_DRAM_END=0x11000000
|
CONFIG_DRAM_END=0x11000000
|
||||||
CONFIG_ARCH_LEDS=y
|
CONFIG_ARCH_LEDS=y
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/************************************************************
|
/************************************************************
|
||||||
* c5471.h
|
* arch/board.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2007 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
@@ -33,8 +33,8 @@
|
|||||||
*
|
*
|
||||||
************************************************************/
|
************************************************************/
|
||||||
|
|
||||||
#ifndef __C5471EVM_H
|
#ifndef __ARCH_BOARD_H
|
||||||
#define __C5471EVM_H
|
#define __ARCH_BOARD_H
|
||||||
|
|
||||||
/************************************************************
|
/************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
@@ -67,4 +67,4 @@
|
|||||||
* Inline Functions
|
* Inline Functions
|
||||||
************************************************************/
|
************************************************************/
|
||||||
|
|
||||||
#endif /* __C5471EVM_H */
|
#endif /* __ARCH_BOARD_H */
|
||||||
@@ -46,7 +46,8 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
|
|||||||
SRCS = $(ASRCS) $(CSRCS)
|
SRCS = $(ASRCS) $(CSRCS)
|
||||||
OBJS = $(AOBJS) $(COBJS)
|
OBJS = $(AOBJS) $(COBJS)
|
||||||
|
|
||||||
CFLAGS += -I $(TOPDIR)/arch/$(CONFIG_ARCH)/src
|
ARCH_SRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src
|
||||||
|
CFLAGS += -I$(ARCH_SRCDIR)/chip -I$(ARCH_SRCDIR)/common
|
||||||
|
|
||||||
all: libboard$(LIBEXT)
|
all: libboard$(LIBEXT)
|
||||||
|
|
||||||
|
|||||||
@@ -45,18 +45,24 @@
|
|||||||
# CONFIG_ARCH_BOARD - identifies the configs subdirectory and, hence,
|
# CONFIG_ARCH_BOARD - identifies the configs subdirectory and, hence,
|
||||||
# the board that supports the particular chip or SoC.
|
# the board that supports the particular chip or SoC.
|
||||||
# CONFIG_ARCH_BOARD_name - for use in C code
|
# CONFIG_ARCH_BOARD_name - for use in C code
|
||||||
|
# CONFIG_BOARD_LOOPSPERMSEC - for delay loops
|
||||||
# CONFIG_ROM_VECTORS - unique to dm320
|
# CONFIG_ROM_VECTORS - unique to dm320
|
||||||
# CONFIG_DRAM_SIZE - Describes the installed DRAM.
|
# CONFIG_DRAM_SIZE - Describes the installed DRAM.
|
||||||
|
# CONFIG_DRAM_START - The start address of DRAM (physical)
|
||||||
|
# CONFIG_DRAM_VSTART - The startaddress of DRAM (virtual)
|
||||||
# CONFIG_ARCH_STACKDUMP - Do stack dumps after assertions
|
# CONFIG_ARCH_STACKDUMP - Do stack dumps after assertions
|
||||||
#
|
#
|
||||||
CONFIG_ARCH=dm320
|
CONFIG_ARCH=arm
|
||||||
CONFIG_ARCH_DM320=y
|
CONFIG_ARCH_ARM=y
|
||||||
CONFIG_ARCH_CHIP=dm320
|
CONFIG_ARCH_CHIP=dm320
|
||||||
CONFIG_ARCH_CHIP_DM320=y
|
CONFIG_ARCH_CHIP_DM320=y
|
||||||
CONFIG_ARCH_BOARD=ntosd-dm320
|
CONFIG_ARCH_BOARD=ntosd-dm320
|
||||||
CONFIG_ARCH_BOARD_NTOSD_DM320=y
|
CONFIG_ARCH_BOARD_NTOSD_DM320=y
|
||||||
|
CONFIG_BOARD_LOOPSPERMSEC=1250
|
||||||
CONFIG_ROM_VECTORS=n
|
CONFIG_ROM_VECTORS=n
|
||||||
CONFIG_DRAM_SIZE=0x01000000
|
CONFIG_DRAM_SIZE=0x01000000
|
||||||
|
CONFIG_DRAM_START=0x01000000
|
||||||
|
CONFIG_DRAM_VSTART=0x00000000
|
||||||
CONFIG_DRAM_NUTTXENTRY=0x01008000
|
CONFIG_DRAM_NUTTXENTRY=0x01008000
|
||||||
CONFIG_ARCH_STACKDUMP=y
|
CONFIG_ARCH_STACKDUMP=y
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* ntosd.h
|
* arch/board/board.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2007 Gregory Nutt. All rights reserved.
|
* Copyright (C) 2007 Gregory Nutt. All rights reserved.
|
||||||
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
|
||||||
@@ -33,8 +33,8 @@
|
|||||||
*
|
*
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
|
|
||||||
#ifndef __NTOSD_H
|
#ifndef __ARCH_BOARD_BOARD_H
|
||||||
#define __NTOSD_H
|
#define __ARCH_BOARD_BOARD_H
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Included Files
|
* Included Files
|
||||||
@@ -101,4 +101,4 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* __NTOSD_H */
|
#endif /* __ARCH_BOARD_BOARD_H */
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
############################################################
|
############################################################################
|
||||||
# Makefile
|
# Makefile
|
||||||
#
|
#
|
||||||
# Copyright (C) 2007 Gregory Nutt. All rights reserved.
|
# Copyright (C) 2007 Gregory Nutt. All rights reserved.
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||||
# POSSIBILITY OF SUCH DAMAGE.
|
# POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
############################################################
|
############################################################################
|
||||||
|
|
||||||
-include $(TOPDIR)/Make.defs
|
-include $(TOPDIR)/Make.defs
|
||||||
|
|
||||||
@@ -46,7 +46,8 @@ COBJS = $(CSRCS:.c=$(OBJEXT))
|
|||||||
SRCS = $(ASRCS) $(CSRCS)
|
SRCS = $(ASRCS) $(CSRCS)
|
||||||
OBJS = $(AOBJS) $(COBJS)
|
OBJS = $(AOBJS) $(COBJS)
|
||||||
|
|
||||||
CFLAGS += -I $(TOPDIR)/arch/$(CONFIG_ARCH)/src
|
ARCH_SRCDIR = $(TOPDIR)/arch/$(CONFIG_ARCH)/src
|
||||||
|
CFLAGS += -I$(ARCH_SRCDIR)/chip -I$(ARCH_SRCDIR)/common
|
||||||
|
|
||||||
all: libboard$(LIBEXT)
|
all: libboard$(LIBEXT)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user