Changes for ZNeo compile
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@539 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
2d4d1be45c
commit
07fa2b5735
@ -37,10 +37,10 @@ include ${TOPDIR}/.config
|
||||
|
||||
# These are the directories where the ZNeo-II toolchain is installed
|
||||
|
||||
ZDSINSTALLDIR = C:/Program\ Files/ZiLOG/ZDSII_ZNEO_4.10.2
|
||||
ZDSBINDIR = $(ZDSINSTALLDIR)/bin
|
||||
ZDSSTDINCDIR = $(ZDSINSTALLDIR)/include/std
|
||||
ZDSZILOGINCDIR = $(ZDSINSTALLDIR)/include/zilog
|
||||
ZDSINSTALLDIR := C:/Program\ Files/ZiLOG/ZDSII_ZNEO_4.10.2
|
||||
ZDSBINDIR := $(ZDSINSTALLDIR)/bin
|
||||
ZDSSTDINCDIR := $(ZDSINSTALLDIR)/include/std
|
||||
ZDSZILOGINCDIR := $(ZDSINSTALLDIR)/include/zilog
|
||||
|
||||
# These are the same directories but with the directory separator
|
||||
# character swapped as needed by the ZNeo-II compiler
|
||||
@ -49,6 +49,12 @@ WTOPDIR := ${shell cygpath -w $(TOPDIR)}
|
||||
WZDSSTDINCDIR := ${shell cygpath -w $(ZDSSTDINCDIR)}
|
||||
WZDSZILOGINCDIR := ${shell cygpath -w $(ZDSZILOGINCDIR)}
|
||||
|
||||
# Escaped versions
|
||||
|
||||
ETOPDIR := ${shell echo "$(WTOPDIR)" | sed -e "s/ /%20/g"}
|
||||
EZDSSTDINCDIR := ${shell echo "$(WZDSSTDINCDIR)" | sed -e "s/ /%20/g"}
|
||||
EZDSZILOGINCDIR := ${shell echo "$(WZDSZILOGINCDIR)" | sed -e "s/ /%20/g"}
|
||||
|
||||
# Assembler definitions
|
||||
|
||||
ifeq ("${CONFIG_DEBUG}","y")
|
||||
@ -61,7 +67,7 @@ ARCHASMCPUFLAGS = -cpu:Z16F2811AL -NOigcase
|
||||
ARCHASMLIST = -NOlistmac -name -pagelen:56 -pagewidth:80 -quiet
|
||||
ARCHASMWARNINGS = -warn
|
||||
ARCHASMDEFINES = -define:_Z16F2811AL=1 -define:_Z16K_SERIES=1 -define:_Z16F_SERIES=1 \ -define:__ASSEMBLY__
|
||||
ARCHASMINCLUDES = -include:'$(WTOPDIR)\include;$(WZDSSTDINCDIR);$(WZDSZILOGINCDIR)'
|
||||
ARCHASMINCLUDES = -include:'$(ETOPDIR)\include;$(EZDSSTDINCDIR);$(EZDSZILOGINCDIR)'
|
||||
AFLAGS = $(ARCHASMCPUFLAGS) $(ARCHASMINCLUDES) $(ARCHASMLIST) \
|
||||
$(ARCHASMWARNINGS) $(ARCHASMOPTIMIZATION)
|
||||
|
||||
@ -121,8 +127,8 @@ define ASSEMBLE
|
||||
endef
|
||||
|
||||
define ARCHIVE
|
||||
@echo "AR: $2"; \
|
||||
@$(AR) $(ARFLAGS) $1=-+$2 || { echo "$(AR) $1=-+$2 FAILED!" ; exit 1 ; }
|
||||
echo "AR: $2"; \
|
||||
$(AR) $(ARFLAGS) $1=-+$2 || { echo "$(AR) $1=-+$2 FAILED!" ; exit 1 ; }
|
||||
endef
|
||||
|
||||
# This is the tool to use for dependencies (i.e., none)
|
||||
|
@ -40,6 +40,10 @@
|
||||
# CONFIG_ARCH_Z16 - Set if processor is Z16
|
||||
# CONFIG_ARCH_CHIP - Identifies the specific chip
|
||||
# CONFIG_ARCH_CHIP_Z16F - Set if this the Z16F
|
||||
# CONFIG_ARCH_CHIP_Z16F2810 - Identifies chip variant
|
||||
# CONFIG_ARCH_CHIP_Z16F2811
|
||||
# CONFIG_ARCH_CHIP_Z16F3211
|
||||
# CONFIG_ARCH_CHIP_Z16F6411
|
||||
# CONFIG_ARCH_BOARD - identifies the configs subdirectory and, hence,
|
||||
# the board that supports the particular chip or SoC.
|
||||
# CONFIG_ARCH_BOARD_name - for use in C code
|
||||
@ -49,6 +53,10 @@ CONFIG_ARCH=z16
|
||||
CONFIG_ARCH_Z16=y
|
||||
CONFIG_ARCH_CHIP=z16f
|
||||
CONFIG_ARCH_CHIP_Z16F=y
|
||||
CONFIG_ARCH_CHIP_Z16F2810=n
|
||||
CONFIG_ARCH_CHIP_Z16F2811=y
|
||||
CONFIG_ARCH_CHIP_Z16F3211=n
|
||||
CONFIG_ARCH_CHIP_Z16F6411=n
|
||||
CONFIG_ARCH_BOARD=z16f2800100zcog
|
||||
CONFIG_ARCH_BOARD_Z16F2800100ZCOG=y
|
||||
CONFIG_DRAM_SIZE=65536
|
||||
|
Loading…
Reference in New Issue
Block a user