[mips/libsys]
- support different boards (Zwischenstand) git-svn-id: http://moon:8086/svn/mips@66 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
+8
-4
@@ -1,5 +1,9 @@
|
||||
# environment vaiables read:
|
||||
# BOARD
|
||||
|
||||
ENDIAN_FLAGS=-EL
|
||||
CFLAGS=$(ENDIAN_FLAGS) -msoft-float -O2 -march=r3000 -I. -Wl,-M
|
||||
|
||||
CFLAGS=$(ENDIAN_FLAGS) -msoft-float -O2 -march=r3000 -I. -Wl,-M -Iboards/$(BOARD)
|
||||
|
||||
ifeq ($(TLB),yes)
|
||||
CFLAGS+=-DSYS_IO_BASE=0xAC000000 -DSDRAM_BASE=0x80000000 -DFLASH_BASE_IO=0xA4000000 -DFLASH_BASE_MEM=0x88000000
|
||||
@@ -18,10 +22,10 @@ FLASHGEN=flashgen
|
||||
SRCS=libsys.c xcpt.c syscalls.c irq.c mips_dbg.c mips_dis.c mips_gfx.c mips_ps2.c gpio.c
|
||||
OBJS=libsys.o xcpt.o syscalls.o irq.o mips_dbg.o mips_dis.o mips_gfx.o mips_ps2.o gpio.o
|
||||
|
||||
.PHONY : libsys.a libsys_sim.a
|
||||
.PHONY : libsys.a
|
||||
|
||||
all: libsys.a libsys_sim.a
|
||||
$(MAKE) -C eb
|
||||
all: libsys.a
|
||||
$(MAKE) -C eb BOARD=$(BOARD)
|
||||
|
||||
$(OBJS): $(SRCS)
|
||||
$(CC) $(CFLAGS) -G 0 -c $(SRCS)
|
||||
|
||||
Reference in New Issue
Block a user