fae7e63479
1. Serial (UART) driver (13 ports) 2. Ethernet driver This port is provided on two boards 1. RSK RX65N-2MB 2. GR-Rose The port is built on Cygwin environment. As part of this port, we have created two documents 1. Readme.txt for each board 2. User manual to provide information about development environment setup Both these documents are placed under 1. /boards/renesas/rx65n/rx65n-grrose 2. /boards/renesas/rx65n/rx65n-rsk2mb We have run 'nxstyle' for coding guidelines and 'ostest' for testing NuttX features on test platform. We have shared the log with no errors as confirmation of valid port.
120 lines
4.6 KiB
Plaintext
120 lines
4.6 KiB
Plaintext
##############################################################################
|
|
# configs/rx65n-grrose/scripts/Make.defs
|
|
#
|
|
# Copyright (C) 2008-2019 Gregory Nutt. All rights reserved.
|
|
# Author: Anjana <anjana@tataelxsi.co.in>
|
|
#
|
|
# 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
|
|
include ${TOPDIR}/tools/Config.mk
|
|
|
|
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|
ARCHOPTIMIZATION = -g
|
|
endif
|
|
|
|
ifneq ($(CONFIG_DEBUG_NOOPT),y)
|
|
ARCHOPTIMIZATION += -Os -fno-strict-aliasing -fno-strength-reduce -fomit-frame-pointer
|
|
endif
|
|
|
|
ifeq ($(CONFIG_HOST_WINDOWS),y)
|
|
WINTOOL=y
|
|
DIRLINK = $(TOPDIR)/tools/copydir.sh
|
|
DIRUNLINK = $(TOPDIR)/tools/unlink.sh
|
|
MKDEP = $(TOPDIR)/tools/mkwindeps.sh
|
|
ARCHINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -I. -isystem "${shell cygpath -w $(TOPDIR)/arch/$(CONFIG_ARCH)/include}"
|
|
ARCHXXINCLUDES = -I. -isystem "${shell cygpath -w $(TOPDIR)/include}" -isystem "${shell cygpath -w $(TOPDIR)/include/cxx}"
|
|
ARCHSCRIPT = -T "${shell cygpath -w $(TOPDIR)/boards/$(CONFIG_ARCH)/$(CONFIG_ARCH_CHIP)/$(CONFIG_ARCH_BOARD)/scripts/linker_script.ld}"
|
|
ARCHPICFLAGS = -fpic
|
|
ARCHCFLAGS = -std=c99 -fno-builtin --sysroot=/cygwin64
|
|
#ARCHCPUFLAGS = -fdata-sections -g2 -mlittle-endian-data
|
|
ARCHCPUFLAGS = -mcpu=rx64m
|
|
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
|
|
ARCHWARNINGSXX = -Wall -Wshadow -Wundef
|
|
else
|
|
MKDEP = $(TOPDIR)/tools/mkdeps$(HOSTEXEEXT)
|
|
ARCHINCLUDES = -I. -isystem $(TOPDIR)/include
|
|
ARCHXXINCLUDES = -I. -isystem $(TOPDIR)/include -isystem $(TOPDIR)/include/cxx
|
|
ARCHSCRIPT = -T$(TOPDIR)/boards/$(CONFIG_ARCH)/$(CONFIG_ARCH_CHIP)/$(CONFIG_ARCH_BOARD)/scripts/linker_script.ld
|
|
ARCHPICFLAGS = -fpic
|
|
ARCHCFLAGS = -std=c99 -fno-builtin
|
|
#ARCHCPUFLAGS = -fdata-sections -g2 -mlittle-endian-data
|
|
ARCHCPUFLAGS = -mcpu=rx64m
|
|
ARCHWARNINGS = -Wall -Wstrict-prototypes -Wshadow -Wundef
|
|
ARCHWARNINGSXX = -Wall -Wshadow -Wundef
|
|
endif
|
|
|
|
CROSSDEV = rx-elf-
|
|
CC = $(CROSSDEV)gcc
|
|
CXX = $(CROSSDEV)g++
|
|
CPP = $(CROSSDEV)gcc -E
|
|
LD = $(CROSSDEV)ld
|
|
STRIP = $(CROSSDEV)strip --strip-unneeded
|
|
AR = $(CROSSDEV)ar rcs
|
|
AS = $(CROSSDEV)as
|
|
NM = $(CROSSDEV)nm
|
|
OBJCOPY = $(CROSSDEV)objcopy
|
|
OBJDUMP = $(CROSSDEV)objdump
|
|
|
|
CFLAGS = $(ARCHCFLAGS) $(ARCHWARNINGS) $(ARCHOPTIMIZATION) \
|
|
$(ARCHCPUFLAGS) $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) -pipe
|
|
CPPFLAGS = $(ARCHINCLUDES) $(ARCHDEFINES) $(EXTRADEFINES) $(ARCHWARNINGSXX)
|
|
AFLAGS = $(CFLAGS) -D__ASSEMBLY__
|
|
#AFLAGS = -Wa --mcpu=rxv2 -I$(TOPDIR)/include -I$(TOPDIR)/arch/renesas/src/common -I$(TOPDIR)/arch/renesas/src/rx65n -D__ASSEMBLY__
|
|
NXFLATLDFLAGS1 = -r -d -warn-common
|
|
NXFLATLDFLAGS2 = $(NXFLATLDFLAGS1) -T$(TOPDIR)/binfmt/libnxflat/gnu-nxflat-pcrel.ld -no-check-sections
|
|
LDNXFLATFLAGS = -e main -s 2048
|
|
|
|
LDMODULEFLAGS = -r -e module_initialize
|
|
ifeq ($(WINTOOL),y)
|
|
LDMODULEFLAGS += -T "${shell cygpath -w $(TOPDIR)/libs/libc/modlib/gnu-elf.ld}"
|
|
else
|
|
LDMODULEFLAGS += -T $(TOPDIR)/libs/libc/modlib/gnu-elf.ld
|
|
endif
|
|
|
|
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
|
LDFLAGS += -g
|
|
endif
|
|
|
|
CMODULEFLAGS = $(CFLAGS) -mlong-calls # --target1-abs
|
|
|
|
ASMEXT = .asm
|
|
OBJEXT = .o
|
|
LIBEXT = .a
|
|
EXEEXT =
|
|
|
|
#MKDEP = $(TOPDIR)/tools/mkdeps$(HOSTEXEEXT)
|
|
|
|
HOSTCC = gcc
|
|
HOSTINCLUDES = -I.
|
|
HOSTCFLAGS = -Wall -Wstrict-prototypes -Wshadow -Wundef -g -pipe
|
|
HOSTLDFLAGS =
|
|
|