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

Subversion Repositories plasma

[/] [plasma/] [trunk/] [kernel/] [makefile] - Blame information for rev 198

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 138 rhoads
# The MIPS gcc compiler must use the cygwin1.dll that came with the compiler.
2
 
3 198 rhoads
# Use software multiplier (don't use mult.vhd)
4
CFLAGS_SW_MULT = -mno-mul -DUSE_SW_MULT
5
 
6
# Use 16 fewer registers (make reg_bank.vhd smaller)
7
CFLAGS_FEW_REGS = -ffixed-t1 -ffixed-t2 -ffixed-t3 -ffixed-t4 -ffixed-t5 -ffixed-t6 -ffixed-t7 -ffixed-t8 -ffixed-t9 -ffixed-s2 -ffixed-s3 -ffixed-s4 -ffixed-s5 -ffixed-s6 -ffixed-s7 -ffixed-s8
8
 
9 138 rhoads
CFLAGS = -O2 -Wall -c -s -I..\tools -msoft-float
10
GCC_MIPS = gcc $(CFLAGS)
11
AS_MIPS = as
12
LD_MIPS = ld
13
DUMP_MIPS = objdump
14
 
15
rtos:
16
        $(AS_MIPS) -o boot.o ..\tools\boot.asm
17
        $(GCC_MIPS) rtos.c
18
        $(GCC_MIPS) libc.c
19
        $(GCC_MIPS) uart.c
20
        $(GCC_MIPS) rtos_test.c
21
        $(GCC_MIPS) math.c
22 191 rhoads
        $(GCC_MIPS) debugger.c
23
        $(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf \
24
        boot.o rtos.o libc.o uart.o rtos_test.o math.o
25 153 rhoads
        ..\tools\convert_bin
26
        @sort test2.map
27 191 rhoads
        @$(DUMP_MIPS) --disassemble test.axf > test.lst
28
        cp test.bin ..\tools
29 138 rhoads
 
30 145 rhoads
clean:
31 153 rhoads
        -del *.o *.obj *.exe *.map *.lst *.hex *.txt
32 138 rhoads
 
33
# Run a MIPS opcode simulator
34
run:
35
        @..\tools\mlite test.bin
36
 
37
disassemble:
38
        -@..\tools\mlite test.bin BD > test.txt
39
 
40
 

powered by: WebSVN 2.1.0

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