forked from smealum/haxchi
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-use same iosu patcher for both haxchi and cbhc to allow haxchi to be…
…nefit from it -added new config option to haxchi, "sysmenu" which will relaunch you into the system menu with signature, region patches and everything else that cbhc patches -small logic correction in the iosu patcher
- Loading branch information
Showing
66 changed files
with
571 additions
and
1,334 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
PATH := $(DEVKITPPC)/bin:$(PATH) | ||
PREFIX ?= powerpc-eabi- | ||
CC = $(PREFIX)gcc | ||
AS = $(PREFIX)gcc | ||
CFLAGS = -std=gnu89 -O3 -Wall -nostdinc -fno-builtin -I$(DEVKITPPC)/lib/gcc/powerpc-eabi/6.2.0/include -I$(DEVKITPPC)/powerpc-eabi/include | ||
ASFLAGS = -mregnames -x assembler-with-cpp | ||
LD = $(PREFIX)ld | ||
OBJCOPY = $(PREFIX)objcopy | ||
LDFLAGS=-Ttext 1808000 -L$(DEVKITPPC)/lib/gcc/powerpc-eabi/6.2.0 -L$(DEVKITPPC)/powerpc-eabi/lib -lgcc -lc | ||
OBJDUMP ?= $(PREFIX)objdump | ||
project := . | ||
root := $(CURDIR) | ||
build := $(root)/bin | ||
|
||
FIRMWARE = 550 | ||
|
||
all: clean setup main | ||
|
||
setup: | ||
mkdir -p $(root)/bin/ | ||
|
||
main: | ||
$(CC) $(CFLAGS) -DVER=$(FIRMWARE) -c $(project)/main.c | ||
$(AS) $(ASFLAGS) -DVER=$(FIRMWARE) -c $(project)/crt0.S | ||
cp -r $(root)/*.o $(build) | ||
rm $(root)/*.o | ||
$(LD) -o cbhc_menu.elf $(build)/crt0.o `find $(build) -name "*.o" ! -name "crt0.o"` $(LDFLAGS) -Map cbhc_menu.map | ||
$(OBJCOPY) cbhc_menu.elf -S -O binary ../cbhc_menu.bin | ||
|
||
clean: | ||
rm -rf $(build) payload | ||
rm -rf cbhc_menu.elf cbhc_menu.map |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.