forked from len0rd/rockbox
1) Make use of $gp addressing. This saves some bin size and makes code slightly faster. 2) Substitute jr with simple j instruction in exception handling. Code is small and j can easily encode target address. 3) Remove nop after eret in interrupt handler. According to mips32r2 ISA manual eret does not have branch delay slot. Change-Id: If63feb12eef189f08f7b50c832a8091be5e6f570
15 lines
251 B
Makefile
15 lines
251 B
Makefile
#
|
|
# common
|
|
#
|
|
PREFIX?=mipsel-elf-
|
|
CC=$(PREFIX)gcc
|
|
LD=$(PREFIX)gcc
|
|
AS=$(PREFIX)gcc
|
|
OC=$(PREFIX)objcopy
|
|
DEFINES=
|
|
INCLUDES=-I$(CURDIR)
|
|
GCCOPTS=-Os -march=mips32r2 -G128 -msoft-float
|
|
BUILD_DIR=$(CURDIR)/build/
|
|
ROOT_DIR=$(CURDIR)/..
|
|
|
|
include ../hwstub.make
|