I'm trying to compile iplboot. Mostly out of curiosity (the provided releases work fine).
Although I manage to produce an iplboot.gcb at the end, it does not work (black screen, no SD card activity either). This is what I did to compile it:
1. I had to modify the Makefile to work with powerpc-eabi-gcc-6.3.0 (using Debian and latest stable release from devkitPPC).
Code: Select all
diff --git a/Makefile b/Makefile
index 210fd07..4e19b04 100644
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ endif
include $(DEVKITPPC)/gamecube_rules
-export CC := powerpc-eabi-clang
+export CC := powerpc-eabi-gcc-6.3.0
MACHDEP = -DGEKKO -mcpu=750 \
-D__gamecube__ -DHW_DOL -ffunction-sections -fdata-sections
@@ -74,10 +74,10 @@ BINFILES := $(foreach dir,$(DATA),$(notdir $(wildcard $(dir)/*.*)))
#---------------------------------------------------------------------------------
ifeq ($(strip $(CPPFILES)),)
export LD := $(CC) -Wl,--gc-sections -nostartfiles \
- $(DEVKITPPC)/lib/gcc/powerpc-eabi/*/crtend.o \
- $(DEVKITPPC)/lib/gcc/powerpc-eabi/*/ecrtn.o \
- $(DEVKITPPC)/lib/gcc/powerpc-eabi/*/ecrti.o \
- $(DEVKITPPC)/lib/gcc/powerpc-eabi/*/crtbegin.o \
+ $(DEVKITPPC)/lib/gcc/powerpc-eabi/6.3.0/crtend.o \
+ $(DEVKITPPC)/lib/gcc/powerpc-eabi/6.3.0/ecrtn.o \
+ $(DEVKITPPC)/lib/gcc/powerpc-eabi/6.3.0/ecrti.o \
+ $(DEVKITPPC)/lib/gcc/powerpc-eabi/6.3.0/crtbegin.o \
$(DEVKITPPC)/powerpc-eabi/lib/crtmain.o
else
export LD := $(CXX)
Code: Select all
[00] [GCB] 1999-2001 Nintendo. All rights reserved.(C) 1999 ArtX Inc.
[01] 1999-2001 Nintendo. All rights reserved.(C) 1999 ArtX Inc. [02]l rights reserved.PAL Revision 1.0
Thanks!