mirror of
https://github.com/fail0verflow/mini.git
synced 2024-11-24 12:19:21 +01:00
c67fab3f57
This reverts commit de6f907bb4241763bfb09efe521385482f166abd.
33 lines
703 B
Makefile
33 lines
703 B
Makefile
include ../../starlet.mk
|
|
|
|
ASFLAGS += -D_LANGUAGE_ASSEMBLY
|
|
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 sdmmc.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 $(TARGET_BIN)
|
|
|