Line 25... |
Line 25... |
LD_MIPS = $(BIN_MIPS)\ld
|
LD_MIPS = $(BIN_MIPS)\ld
|
DUMP_MIPS = $(BIN_MIPS)\objdump
|
DUMP_MIPS = $(BIN_MIPS)\objdump
|
|
|
CFLAGS = -O2 -Wall -c -s
|
CFLAGS = -O2 -Wall -c -s
|
|
|
|
|
all: convert_bin.exe tracehex.exe bintohex.exe ram_image.exe
|
all: convert_bin.exe tracehex.exe bintohex.exe ram_image.exe
|
@echo make targets = count, opcodes, pi, test, run, tohex,\
|
@echo make targets = count, opcodes, pi, test, run, tohex,\
|
bootldr, toimage, etermip
|
bootldr, toimage, etermip
|
|
|
clean:
|
clean:
|
-$(RM) *.o *.obj *.map *.lst *.hex *.txt *.exe
|
-$(RM) *.o *.obj *.map *.lst *.hex *.txt *.exe *.axf
|
|
|
convert_bin.exe: convert.c
|
convert_bin.exe: convert.c
|
@$(CC_X86) -o convert_bin.exe convert.c
|
@$(CC_X86) -o convert_bin.exe convert.c
|
|
|
convert_le.exe: convert.c
|
convert_le.exe: convert.c
|
Line 105... |
Line 104... |
boot.o count.o no_os.o
|
boot.o count.o no_os.o
|
-$(DUMP_MIPS) --disassemble test.axf > test.lst
|
-$(DUMP_MIPS) --disassemble test.axf > test.lst
|
convert_bin.exe
|
convert_bin.exe
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
|
count3:
|
|
$(AS_MIPS) -o boot.o boot.asm
|
|
$(GCC_MIPS) count.c
|
|
$(GCC_MIPS) no_os.c
|
|
$(LD_MIPS) -Ttext 0x1000 -eentry -Map test.map -s -N -o test.axf \
|
|
boot.o count.o no_os.o
|
|
-$(DUMP_MIPS) --disassemble test.axf > test.lst
|
|
convert_bin.exe
|
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
pi:
|
pi:
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(GCC_MIPS) pi.c
|
$(GCC_MIPS) pi.c
|
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
boot.o pi.o
|
boot.o pi.o
|
Line 123... |
Line 132... |
boot.o pi.o
|
boot.o pi.o
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
convert_bin.exe
|
convert_bin.exe
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
|
ddr_test:
|
|
$(AS_MIPS) -o boot.o boot.asm
|
|
$(GCC_MIPS) ddr_init.c -DDDR_TEST_MAIN
|
|
$(GCC_MIPS) no_os.c
|
|
$(LD_MIPS) -Ttext 0x0 -eentry -Map test.map -s -N -o test.axf \
|
|
boot.o ddr_init.o no_os.o
|
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
|
convert_bin.exe
|
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
|
memtest:
|
|
$(AS_MIPS) -o boot.o boot.asm
|
|
$(GCC_MIPS) memtest.c
|
|
$(LD_MIPS) -Ttext 0x1000 -eentry -o test.axf boot.o memtest.o
|
|
convert_bin.exe
|
|
|
|
memtest2:
|
|
$(AS_MIPS) -o boot.o boot.asm
|
|
$(GCC_MIPS) -DINIT_DDR memtest.c
|
|
$(GCC_MIPS) ddr_init.c
|
|
$(LD_MIPS) -Ttext 0x0 -eentry -o test.axf boot.o memtest.o ddr_init.o
|
|
convert_bin.exe
|
|
|
bootldr:
|
bootldr:
|
$(AS_MIPS) -o boot.o boot.asm
|
$(AS_MIPS) -o boot.o boot.asm
|
$(GCC_MIPS) bootldr.c
|
$(GCC_MIPS) bootldr.c
|
$(GCC_MIPS) no_os.c
|
$(GCC_MIPS) no_os.c
|
|
$(GCC_MIPS) -DDLL_DISABLE ddr_init.c
|
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
boot.o bootldr.o no_os.o
|
boot.o bootldr.o no_os.o ddr_init.o
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
convert_bin.exe
|
convert_bin.exe
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
bootldr_little_endian: convert_le.exe
|
bootldr_little_endian: convert_le.exe
|
$(AS_MIPS) -EL -o boot.o boot.asm
|
$(AS_MIPS) -EL -o boot.o boot.asm
|
$(GCC_MIPS) -EL bootldr.c
|
$(GCC_MIPS) -EL bootldr.c
|
$(GCC_MIPS) -EL no_os.c
|
$(GCC_MIPS) -EL no_os.c
|
|
$(GCC_MIPS) -EL ddr_init.c
|
$(LD_MIPS) -EL -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
$(LD_MIPS) -EL -Ttext 0 -eentry -Map test.map -s -N -o test.axf \
|
boot.o bootldr.o no_os.o
|
boot.o bootldr.o no_os.o ddr_init.o
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
@$(DUMP_MIPS) --disassemble test.axf > test.lst
|
convert_le.exe
|
convert_le.exe
|
$(CP) code.txt $(VHDL_DIR)
|
$(CP) code.txt $(VHDL_DIR)
|
|
|
# Run a MIPS opcode simulator
|
# Run a MIPS opcode simulator
|