OpenCores
URL https://opencores.org/ocsvn/an-fpga-implementation-of-low-latency-noc-based-mpsoc/an-fpga-implementation-of-low-latency-noc-based-mpsoc/trunk

Subversion Repositories an-fpga-implementation-of-low-latency-noc-based-mpsoc

[/] [an-fpga-implementation-of-low-latency-noc-based-mpsoc/] [trunk/] [mpsoc/] [src_processor/] [mor1kx-3.1/] [sw/] [Makefile] - Diff between revs 45 and 48

Show entire file | Details | Blame | View Log

Rev 45 Rev 48
Line 1... Line 1...
 
SOURCE_LIB =
 
include SOURCE_LIB
 
 
 
include march_flags.mak
 
 
HDR_SOURCE_DIR=mor1kx
HDR_SOURCE_DIR=mor1kx
 
 
TOOLCHAIN=$(PRONOC_WORK)/toolchain/or1k-elf
TOOLCHAIN=$(PRONOC_WORK)/toolchain/or1k-elf
IHEX2MIF =$(PRONOC_WORK)/toolchain/bin/ihex2mif
IHEX2MIF =$(PRONOC_WORK)/toolchain/bin/ihex2mif
IHEX2BIN =$(PRONOC_WORK)/toolchain/bin/ihex2bin
IHEX2BIN =$(PRONOC_WORK)/toolchain/bin/ihex2bin
BIN2HEX =$(PRONOC_WORK)/toolchain/bin/bin2str
BIN2HEX =$(PRONOC_WORK)/toolchain/bin/bin2str
 
BIN2MIF=$(PRONOC_WORK)/toolchain/bin/bin2mif
 
BIN2MEM=$(PRONOC_WORK)/toolchain/bin/bin2mem
 
 
OR32_TOOL_PREFIX=${TOOLCHAIN}/bin/or1k-elf-
OR32_TOOL_PREFIX=${TOOLCHAIN}/bin/or1k-elf-
 
 
OR32_LD=$(OR32_TOOL_PREFIX)ld
OR32_LD=$(OR32_TOOL_PREFIX)ld
OR32_AS=$(OR32_TOOL_PREFIX)as
OR32_AS=$(OR32_TOOL_PREFIX)as
Line 16... Line 22...
OR32_OBJCOPY=$(OR32_TOOL_PREFIX)objcopy
OR32_OBJCOPY=$(OR32_TOOL_PREFIX)objcopy
OR32_LIB1=${TOOLCHAIN}/lib/gcc/or1k-elf/5.2.0
OR32_LIB1=${TOOLCHAIN}/lib/gcc/or1k-elf/5.2.0
 
 
LIBRARIES = -L${OR32_LIB1} -L. -L./$(HDR_SOURCE_DIR) -lorlib -lgcc
LIBRARIES = -L${OR32_LIB1} -L. -L./$(HDR_SOURCE_DIR) -lorlib -lgcc
 
 
MARCH_FLAGS ?=-msoft-mul -msoft-div -msoft-float
#MARCH_FLAGS ?=-msoft-mul -msoft-div -msoft-float
CFLAGS ?= -g -nostdlib -O2 $(MARCH_FLAGS)
CFLAGS ?= -g -nostdlib -O2 $(MARCH_FLAGS)
 
 
LDFLAGS ?=    -Tlink.ld  -e 256
LDFLAGS ?=    -Tlink.ld  -e 256
 
 
#RAMSIZE=3FFF
#RAMSIZE=3FFF
 
 
# Sources to go into the liborpsoc.a support library
# Sources to go into the liborpsoc.a support library
COMPILE_SRCS=$(HDR_SOURCE_DIR)/exceptions.c $(HDR_SOURCE_DIR)/int.c  $(HDR_SOURCE_DIR)/mmu.S  $(HDR_SOURCE_DIR)/$(HDR_SOURCE_DIR)-utils.c $(HDR_SOURCE_DIR)/cache.S
COMPILE_SRCS=$(HDR_SOURCE_DIR)/exceptions.c $(HDR_SOURCE_DIR)/int.c  $(HDR_SOURCE_DIR)/mmu.S  $(HDR_SOURCE_DIR)/$(HDR_SOURCE_DIR)-utils.c $(HDR_SOURCE_DIR)/cache.S $(SOURCE_LIB)
 
 
 
 
all: image.ihex
all: image.ihex
 
 
lib:
lib:
Line 56... Line 62...
# Convert the ELF file to an IHEX file
# Convert the ELF file to an IHEX file
        mkdir -p ./RAM
        mkdir -p ./RAM
        $(OR32_OBJCOPY) -O ihex image image.ihex
        $(OR32_OBJCOPY) -O ihex image image.ihex
# Generate a MIF & BIN files from the IHEX file
# Generate a MIF & BIN files from the IHEX file
#       $(IHEX2MIF) -f image.ihex -e $(RAMSIZE) -o RAM/ram0.mif
#       $(IHEX2MIF) -f image.ihex -e $(RAMSIZE) -o RAM/ram0.mif
        $(IHEX2MIF) -f image.ihex -o RAM/ram0.mif
#       $(IHEX2MIF) -f image.ihex -o RAM/ram0.mif
        $(IHEX2BIN) -i image.ihex -o RAM/ram0.bin
        $(IHEX2BIN) -i image.ihex -o RAM/ram0.bin
 
        $(BIN2MIF)  -f RAM/ram0.bin -o RAM/ram0.mif -w 32
 
        $(BIN2MEM)  -f RAM/ram0.bin -o RAM/ram0.mem -w 32
        $(BIN2HEX)  -f RAM/ram0.bin -h
        $(BIN2HEX)  -f RAM/ram0.bin -h
        rm *.o *.a
        rm *.o *.a
 
 
 
 
 
 

powered by: WebSVN 2.1.0

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