OpenCores
URL https://opencores.org/ocsvn/ion/ion/trunk

Subversion Repositories ion

[/] [ion/] [trunk/] [src/] [common/] [makefile] - Diff between revs 131 and 184

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 131 Rev 184
Line 13... Line 13...
#
#
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
# NOTE:
# NOTE:
# A link script '/src/ion_noxram.lds' was used in previous versions of the
# A link script '/src/ion_noxram.lds' was used in previous versions of the
# project. It is no longer used. It is known to be buggy and will be removed.
# project. It is no longer used. It is known to be buggy and will be removed.
 
#
 
# See info on flag -G0 in ion_noxram.lds
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
 
 
 
 
### Toolchain config ###########################################################
### Toolchain config ###########################################################
 
 
Line 31... Line 33...
 
 
 
 
# MIPS GCC cross-toolchain: CodeSourcery -- replace with your own
# MIPS GCC cross-toolchain: CodeSourcery -- replace with your own
 
 
BIN_MIPS = C:/dev/embedded/SourceryGpp/mips-elf-11-03.52/bin
BIN_MIPS = C:/dev/embedded/SourceryGpp/mips-elf-11-03.52/bin
GCC_MIPS  = $(BIN_MIPS)/mips-sde-elf-gcc.exe $(CFLAGS)
CC = $(BIN_MIPS)/mips-sde-elf-gcc.exe $(CFLAGS)
AS_MIPS   = $(BIN_MIPS)/mips-sde-elf-as
AS = $(BIN_MIPS)/mips-sde-elf-as
LD_MIPS   = $(BIN_MIPS)/mips-sde-elf-ld
LD = $(BIN_MIPS)/mips-sde-elf-ld
DUMP_MIPS = $(BIN_MIPS)/mips-sde-elf-objdump
DUMP = $(BIN_MIPS)/mips-sde-elf-objdump
COPY_MIPS = $(BIN_MIPS)/mips-sde-elf-objcopy
COPY = $(BIN_MIPS)/mips-sde-elf-objcopy
TO_VHDL   = python ../bin2hdl.py
TO_VHDL   = python ../bin2hdl.py
 
 
else
else
#**** Customize for Linux
#**** Customize for Linux
 
 
# MIPS GCC cross-toolchain: BuildRoot toolchain in my home directory -- replace with your own
# MIPS GCC cross-toolchain: BuildRoot toolchain in my home directory -- replace with your own
# NOTE: we will not use gcc builtin functions or libc
# NOTE: we will not use gcc builtin functions or libc
 
 
BIN_MIPS = /home/jaruiz/desarrollo/uClinux/MIPS/buildroot/buildroot-2010.11/output/staging/usr/bin
BIN_MIPS = /home/jaruiz/desarrollo/uClinux/MIPS/buildroot/buildroot-2010.11/output/staging/usr/bin
GCC_MIPS = $(BIN_MIPS)/mips-unknown-linux-uclibc-gcc $(CFLAGS)
CC = $(BIN_MIPS)/mips-unknown-linux-uclibc-gcc $(CFLAGS)
AS_MIPS = $(BIN_MIPS)/mips-unknown-linux-uclibc-as
AS = $(BIN_MIPS)/mips-unknown-linux-uclibc-as
LD_MIPS = $(BIN_MIPS)/mips-unknown-linux-uclibc-ld
LD = $(BIN_MIPS)/mips-unknown-linux-uclibc-ld
DUMP_MIPS = $(BIN_MIPS)/mips-unknown-linux-uclibc-objdump
DUMP = $(BIN_MIPS)/mips-unknown-linux-uclibc-objdump
COPY_MIPS = $(BIN_MIPS)/mips-unknown-linux-uclibc-objcopy
COPY = $(BIN_MIPS)/mips-unknown-linux-uclibc-objcopy
TO_VHDL = python ../bin2hdl.py
TO_VHDL = python ../bin2hdl.py
 
 
endif
endif
 
 
### System parameters ##########################################################
### Default system parameters -- to be replaced in application makefile ########
 
 
# FIXME clean up parameter names
 
# 'CODE_BRAM' is meant to be a small BRAM (2 to 4KB) used for bootstrapping.
# 'CODE_BRAM' is meant to be a small BRAM (2 to 4KB) used for bootstrapping.
# 'DATA_BRAM' is a small BRAM connected to the data ports, used for debugging.
# 'DATA_BRAM' is a small BRAM connected to the data ports, used for debugging.
# 'XRAM' is meant to be the main external RAM, either SRAM or SDRAM.
# 'XRAM' is meant to be the main external RAM, either SRAM or SDRAM.
 
 
 
 
# Default location of code BRAM is on the reset vector address
# Default location of code BRAM is on the reset vector address
CODE_BRAM_ADDRESS = 0
CODE_BRAM_ADDRESS = 0
# Default size of code BRAM in 32-bit words
# Default size of code BRAM in 32-bit words
CODE_BRAM_SIZE = 1024
CODE_BRAM_SIZE = 1024
# Default size of data BRAM in 32-bit words
# Default size of data BRAM in 32-bit words (meant for simulation only)
DATA_BRAM_SIZE = 256
DATA_BRAM_SIZE = 256
# Default address of BRAM -- used in some simulation-only tests, see makefiles
# Default address of BRAM -- used in some simulation-only tests, see makefiles
DATA_BRAM_ADDRESS = 0x10000
DATA_BRAM_ADDRESS = 0x10000
# Default size of data external RAM (XRAM) in 32-bit words (for simulation)
# Default size of data external RAM (XRAM) in 32-bit words (for simulation)
XRAM_SIZE = 2048
XRAM_SIZE = 2048
# Default address of XRAM
# Default address of XRAM
XRAM_ADDRESS = 0x80000000
XRAM_ADDRESS = 0x80000000
 
 
 
### Project directories -- to be replaced in application makefile ##############
 
 
 
# Root test code source directory, where python script and vhdl templates are
 
SRC_DIR = ..
 
# VHDL test bench directory, where VHDL output files will be created
 
TB_DIR = ../../vhdl/tb
 
# VHDL DE-1 board demo root directory, for vhdl output
 
DEMO_DIR = ../../vhdl/demo
 
# Path to local libraries
 
LIB_PATH = $(SRC_DIR)/common/libsoc
 
# Link script to be used
 
LINK_SCRIPT = $(SRC_DIR)/common/flash.lds
 
 
### Build options ##############################################################
### Build options -- to be replaced in application makefile ####################
 
 
# Don't use gcc builtin functions, and try to target MIPS-I architecture
# Don't use gcc builtin functions, and try to target MIPS-I architecture
# This will prevent usage of unimplemented opcodes but will insert nops after
# This will prevent usage of unimplemented opcodes but will insert nops after
# load instructions, which Ion does not need.
# load instructions, which Ion does not need.
# (See comment above about -G0 flag)
# (See comment above about -G0 flag)
CFLAGS = -O2 -Wall -c -s -fno-builtin -mips1 -G0
CFLAGS = -O2 -Wall -c -s -fno-builtin -mips1 -G0 -nodefaultlibs -nostdlib
 
 
# LFLAGS: linker options are in the respective makefiles
# LFLAGS: linker options are in the respective makefiles
 
 
### Project directories ########################################################
 
 
 
# VHDL test bench directory, where VHDL output files will be created
 
TB_DIR = ../../vhdl/tb
 
# VHDL DE-1 board demo root directory, for vhdl output
 
DEMO_DIR = ../../vhdl/demo
 
# Root test code source directory, where python script and vhdl templates are
 
SRC_DIR = ..
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.