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

Subversion Repositories ion

[/] [ion/] [trunk/] [src/] [memtest/] [makefile] - Diff between revs 193 and 213

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

Rev 193 Rev 213
Line 9... Line 9...
CODE_BRAM_SIZE = 2048
CODE_BRAM_SIZE = 2048
FLASH_START = 0xb0000000
FLASH_START = 0xb0000000
# External RAM parameters (size in words)
# External RAM parameters (size in words)
XRAM_SIZE = 1024
XRAM_SIZE = 1024
XRAM_START = 0x00000000
XRAM_START = 0x00000000
 
# Set to > 0 to initialize and enable the cache before running the tests
 
TEST_CACHE = 1
 
 
LFLAGS = -Ttext $(BRAM_START) -Tdata $(XRAM_START) -eentry -I elf32-big
LFLAGS = -Ttext $(BRAM_START) -Tdata $(XRAM_START) -eentry -I elf32-big
LFLAGS_FLASH = -Ttext $(FLASH_START) -eflash_test -I elf32-big
LFLAGS_FLASH = -Ttext $(FLASH_START) -eflash_test -I elf32-big
 
 
OBJS = memtest.o
OBJS = memtest.o
Line 32... Line 33...
        -@# invoke our rules for the dependencies.
        -@# invoke our rules for the dependencies.
 
 
#-- Targets for main code to be run from BRAM
#-- Targets for main code to be run from BRAM
 
 
memtest.o: memtest.s
memtest.o: memtest.s
        $(AS) -defsym TEST_CACHE=1 -defsym EXEC_FLASH=$(EXEC_FLASH) \
        $(AS) -defsym TEST_CACHE=$(TEST_CACHE) -defsym EXEC_FLASH=$(EXEC_FLASH) \
    -defsym XRAM_BASE=$(XRAM_START) -o memtest.o memtest.s
    -defsym XRAM_BASE=$(XRAM_START) -o memtest.o memtest.s
 
 
memtest.axf: memtest.o
memtest.axf: memtest.o
        $(LD) $(LFLAGS) -Map memtest.map -s -N -o memtest.axf memtest.o
        $(LD) $(LFLAGS) -Map memtest.map -s -N -o memtest.axf memtest.o
        -@$(DUMP) -I elf32-big --disassemble memtest.axf > memtest.lst
        -@$(DUMP) -I elf32-big --disassemble memtest.axf > memtest.lst
Line 50... Line 51...
        $(COPY) -I elf32-big -j .sbss -j .data -j .bss -O binary memtest.axf memtest.data
        $(COPY) -I elf32-big -j .sbss -j .data -j .bss -O binary memtest.axf memtest.data
 
 
#-- Targets for code to be run from FLASH
#-- Targets for code to be run from FLASH
 
 
flash.o: flash.s
flash.o: flash.s
        $(AS) -defsym TEST_CACHE=1 -defsym FLASH_BASE=$(FLASH_START) -o flash.o flash.s
        $(AS) -defsym TEST_CACHE=$(TEST_CACHE) -defsym FLASH_BASE=$(FLASH_START) -o flash.o flash.s
 
 
flash.axf: flash.o
flash.axf: flash.o
        $(LD) $(LFLAGS_FLASH) -Map flash.map -s -N -o flash.axf flash.o
        $(LD) $(LFLAGS_FLASH) -Map flash.map -s -N -o flash.axf flash.o
        -@$(DUMP) -I elf32-big --disassemble flash.axf > flash.lst
        -@$(DUMP) -I elf32-big --disassemble flash.axf > flash.lst
 
 

powered by: WebSVN 2.1.0

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