mini/Makefile
dhewg 68397f67cd Reworked vectoring for mini's _main()
ipc_process_slow() and friends return a vector where bootmii branches
to upon exit. Implemented IPC_SYS_JUMP via ipc_queue_slow_jump().
Ability to upload armboot.bin with the bootmii client.
2009-05-15 05:33:09 -07:00

35 lines
750 B
Makefile

include ../../starlet.mk
CFLAGS += -Os -Wall
ASFLAGS += -D_LANGUAGE_ASSEMBLY
LDFLAGS += -nostartfiles -nodefaultlibs
LDSCRIPT = mini.ld
LIBS = -lgcc
ELFLOADER = ../elfloader/elfloader.bin
MAKEBIN = python ../makebin.py
TARGET = armboot.elf
TARGET_BIN = armboot.bin
OBJS = start.o main.o ipc.o vsprintf.o string.o gecko.o memory.o memory_asm.o \
utils_asm.o utils.o ff.o diskio.o sdhc.o powerpc_elf.o powerpc.o panic.o \
irq.o irq_asm.o exception.o exception_asm.o seeprom.o crypto.o nand.o \
boot2.o ldhack.o
include ../../common.mk
all: $(TARGET_BIN)
$(TARGET_BIN): $(TARGET) $(ELFLOADER)
@echo "MAKEBIN $@"
@$(MAKEBIN) $(ELFLOADER) $< $@
upload: $(TARGET_BIN)
@$(WIIDEV)/bin/bootmii -a $<
clean: myclean
myclean:
-rm -f mini.bin