- refactored

- made changes due to new GCC

git-svn-id: http://moon:8086/svn/mips@145 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
2021-04-05 12:25:53 +00:00
parent d4c70f04dc
commit d1e94c4821
10 changed files with 193 additions and 79 deletions
+2 -38
View File
@@ -1,44 +1,8 @@
ENDIANESS ?=eb
BOARD ?=ml402
ifeq ($(TLB),yes)
SPECNAME=specs_tlb
else
SPECNAME=specs
endif
ifeq ($(ENDIANESS),eb)
ENDIAN_FLAGS=-EB
else
ENDIAN_FLAGS=-EL
endif
BUILD_DIR=build/$(BOARD)/$(ENDIANESS)
LSYS_BUILD_DIR=libsys/build/$(BOARD)/$(ENDIANESS)
CFLAGS:=$(ENDIAN_FLAGS) -ffunction-sections -fdata-sections -Wl,--gc-sections -G 0 -Tlink/link.ld -g -msoft-float -O2 -march=r3000 -I. -Ilibsys -Ilibsys/boards/$(BOARD) -L$(LSYS_BUILD_DIR) -Wl,-M
ifeq ($(TLB),yes)
CFLAGS+=-DSYS_IO_BASE=0xAC000000 -DSDRAM_BASE=0x80000000 -DFLASH_BASE_IO=0xA4000000 -DFLASH_BASE_MEM=0x88000000
else
CFLAGS+=-DSYS_IO_BASE=0xA0000000 -DSDRAM_BASE=0x40000000 -DFLASH_BASE_IO=0xA4000000 -DFLASH_BASE_MEM=0x00000000
endif
ifeq ($(TLB),yes)
FLASHGEN=$(MIPS_HOME)/tools/flashgen_tlb
else
FLASHGEN=$(MIPS_HOME)/tools/flashgen
endif
PACKHEX=$(MIPS_HOME)/tools/packhex
LIBS=-lm -lc -lsys -lc
AS=mips-elf-as
AR=mips-elf-ar
CC=mips-elf-gcc
LD=mips-elf-ld
OBJDUMP=mips-elf-objdump
OBJCOPY=mips-elf-objcopy
include ../make/mips_app.mk
PROG-ml402 = $(addprefix $(BUILD_DIR)/, hello.elf testbench.elf test_irq.elf dhry.elf queens.elf stanford.elf paranoia.elf rmd160_test.elf Bessel.elf whet.elf phrasen.elf dttl.elf richards_benchmark.elf test_exception.elf life.elf r3.elf gunzip.elf basic_math.elf jman_patches.elf jman_patchmeshes.elf jman_polys.elf test_hpi.elf test_vga.elf test_fft.elf)
PROG-denano = $(addprefix $(BUILD_DIR)/, hello.elf dhry.elf queens.elf stanford.elf paranoia.elf rmd160_test.elf Bessel.elf whet.elf phrasen.elf dttl.elf richards_benchmark.elf test_exception.elf testbench_denano.elf)
PROG-sim = $(addprefix $(BUILD_DIR)/, hello.elf ICacheTest.elf)