Revision 226da55f48651c59ae5dc6a46cb4183105e7f17d authored by Leonid Yegoshin on 05 November 2014, 12:56:40 UTC, committed by Markos Chandras on 17 February 2015, 15:37:18 UTC
EI/DI instructions are available in MIPS R6 so add the needed
definitions.

Signed-off-by: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
1 parent 6a0e986
Raw File
Makefile

SOURCES	:= $(wildcard [0-9]*x[0-9]*.S)

BIN	:= $(patsubst %.S, %.bin, $(SOURCES))

IHEX	:= $(patsubst %.S, %.bin.ihex, $(SOURCES))

CODE	:= $(patsubst %.S, %.c, $(SOURCES))

all:	$(BIN) $(IHEX) $(CODE)

clean:
	@rm -f *.o *.bin.ihex *.bin *.c

%.o:	%.S
	@cc -c $^

%.bin:	%.o
	@objcopy -Obinary $^ $@

%.bin.ihex:	%.o
	@objcopy -Oihex $^ $@
	@dos2unix $@ 2>/dev/null

%.c:	%.bin
	@echo "{" >$@; hexdump -f hex $^ >>$@; echo "};" >>$@
back to top