mirror of
https://github.com/fail0verflow/hbc.git
synced 2024-11-25 02:56:55 +01:00
s/devkitfail/devkitppc/g
This commit is contained in:
parent
2fb61e432e
commit
bccf0fcbee
@ -111,7 +111,7 @@ $(TARGET_APP)_nopax.elf: $(FILES_SRC_OBJ) newrvl.ld
|
|||||||
@$(CC) $(FILES_SRC_OBJ) $(LDFLAGS_APP) -o $@
|
@$(CC) $(FILES_SRC_OBJ) $(LDFLAGS_APP) -o $@
|
||||||
|
|
||||||
$(TARGET_APP).elf: $(TARGET_APP)_nopax.elf
|
$(TARGET_APP).elf: $(TARGET_APP)_nopax.elf
|
||||||
@$(WIIPAX) -s devkitfail $< $@
|
@$(WIIPAX) -s devkitppc $< $@
|
||||||
|
|
||||||
$(TARGET_CHAN).elf: $(TARGET_APP)_nopax.elf
|
$(TARGET_CHAN).elf: $(TARGET_APP)_nopax.elf
|
||||||
@echo $(@F)
|
@echo $(@F)
|
||||||
|
@ -2,8 +2,8 @@ CFLAGS = -Wall -W -Os -g
|
|||||||
TARGET = wiipax
|
TARGET = wiipax
|
||||||
OBJS = LzFind.o LzmaEnc.o LzmaDec.o lzma.o main.o
|
OBJS = LzFind.o LzmaEnc.o LzmaDec.o lzma.o main.o
|
||||||
OBJS += stub_mini.o stub_mini_debug.o
|
OBJS += stub_mini.o stub_mini_debug.o
|
||||||
OBJS += stub_dkf.o stub_dkf_debug.o
|
OBJS += stub_dkp.o stub_dkp_debug.o
|
||||||
OBJS += stub_dkfc.o stub_dkfc_debug.o
|
OBJS += stub_dkpc.o stub_dkpc_debug.o
|
||||||
|
|
||||||
NOMAPFILE = 1
|
NOMAPFILE = 1
|
||||||
|
|
||||||
|
@ -17,14 +17,14 @@ extern int stub_mini_elf_len;
|
|||||||
extern char stub_mini_elf[];
|
extern char stub_mini_elf[];
|
||||||
extern int stub_mini_debug_elf_len;
|
extern int stub_mini_debug_elf_len;
|
||||||
extern char stub_mini_debug_elf[];
|
extern char stub_mini_debug_elf[];
|
||||||
extern int stub_dkf_elf_len;
|
extern int stub_dkp_elf_len;
|
||||||
extern char stub_dkf_elf[];
|
extern char stub_dkp_elf[];
|
||||||
extern int stub_dkf_debug_elf_len;
|
extern int stub_dkp_debug_elf_len;
|
||||||
extern char stub_dkf_debug_elf[];
|
extern char stub_dkp_debug_elf[];
|
||||||
extern int stub_dkfc_elf_len;
|
extern int stub_dkpc_elf_len;
|
||||||
extern char stub_dkfc_elf[];
|
extern char stub_dkpc_elf[];
|
||||||
extern int stub_dkfc_debug_elf_len;
|
extern int stub_dkpc_debug_elf_len;
|
||||||
extern char stub_dkfc_debug_elf[];
|
extern char stub_dkpc_debug_elf[];
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
@ -35,10 +35,10 @@ typedef struct {
|
|||||||
static const stub_t stubs[] = {
|
static const stub_t stubs[] = {
|
||||||
{ "mini", &stub_mini_elf_len, (u8 *) stub_mini_elf },
|
{ "mini", &stub_mini_elf_len, (u8 *) stub_mini_elf },
|
||||||
{ "mini_debug", &stub_mini_debug_elf_len, (u8 *) stub_mini_debug_elf },
|
{ "mini_debug", &stub_mini_debug_elf_len, (u8 *) stub_mini_debug_elf },
|
||||||
{ "devkitfail", &stub_dkf_elf_len, (u8 *) stub_dkf_elf },
|
{ "devkitppc", &stub_dkp_elf_len, (u8 *) stub_dkp_elf },
|
||||||
{ "devkitfail_debug", &stub_dkf_debug_elf_len, (u8 *) stub_dkf_debug_elf },
|
{ "devkitppc_debug", &stub_dkp_debug_elf_len, (u8 *) stub_dkp_debug_elf },
|
||||||
{ "dkfailchannel", &stub_dkfc_elf_len, (u8 *) stub_dkfc_elf },
|
{ "dkppcchannel", &stub_dkpc_elf_len, (u8 *) stub_dkpc_elf },
|
||||||
{ "dkfailchannel_debug", &stub_dkfc_debug_elf_len, (u8 *) stub_dkfc_debug_elf },
|
{ "dkppcchannel_debug", &stub_dkpc_debug_elf_len, (u8 *) stub_dkpc_debug_elf },
|
||||||
{ NULL, NULL, NULL }
|
{ NULL, NULL, NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -1 +0,0 @@
|
|||||||
../stub/stub_dkf.c
|
|
@ -1 +0,0 @@
|
|||||||
../stub/stub_dkf_debug.c
|
|
@ -1 +0,0 @@
|
|||||||
../stub/stub_dkfc.c
|
|
@ -1 +0,0 @@
|
|||||||
../stub/stub_dkfc_debug.c
|
|
1
wiipax/client/stub_dkp.c
Symbolic link
1
wiipax/client/stub_dkp.c
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../stub/stub_dkp.c
|
1
wiipax/client/stub_dkp_debug.c
Symbolic link
1
wiipax/client/stub_dkp_debug.c
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../stub/stub_dkp_debug.c
|
1
wiipax/client/stub_dkpc.c
Symbolic link
1
wiipax/client/stub_dkpc.c
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../stub/stub_dkpc.c
|
1
wiipax/client/stub_dkpc_debug.c
Symbolic link
1
wiipax/client/stub_dkpc_debug.c
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../stub/stub_dkpc_debug.c
|
@ -8,17 +8,17 @@ LDFLAGS += -nostartfiles -nodefaultlibs
|
|||||||
OBJS_COMMON = crt0.o main.o string.o sync.o elf.o time.o LzmaDec.o
|
OBJS_COMMON = crt0.o main.o string.o sync.o elf.o time.o LzmaDec.o
|
||||||
TARGET_ID =
|
TARGET_ID =
|
||||||
|
|
||||||
ifeq ($(DEVKITFAIL),1)
|
ifeq ($(DKPPC),1)
|
||||||
DEFINES += -DDEVKITFAIL
|
DEFINES += -DDKPPC
|
||||||
OBJS = $(OBJS_COMMON)
|
OBJS = $(OBJS_COMMON)
|
||||||
LDSCRIPT = devkitfail.ld
|
LDSCRIPT = devkitppc.ld
|
||||||
TARGET_ID = _dkf
|
TARGET_ID = _dkp
|
||||||
else
|
else
|
||||||
ifeq ($(DKFAILCHANNEL),1)
|
ifeq ($(DKPPCCHANNEL),1)
|
||||||
DEFINES += -DDEVKITFAIL
|
DEFINES += -DDKPPC
|
||||||
OBJS = realmode.o $(OBJS_COMMON)
|
OBJS = realmode.o $(OBJS_COMMON)
|
||||||
LDSCRIPT = channel.ld
|
LDSCRIPT = channel.ld
|
||||||
TARGET_ID = _dkfc
|
TARGET_ID = _dkpc
|
||||||
else
|
else
|
||||||
OBJS = realmode.o plunge.o $(OBJS_COMMON)
|
OBJS = realmode.o plunge.o $(OBJS_COMMON)
|
||||||
LDSCRIPT = realmode.ld
|
LDSCRIPT = realmode.ld
|
||||||
@ -53,14 +53,14 @@ release:
|
|||||||
$(Q)$(MAKE) clean
|
$(Q)$(MAKE) clean
|
||||||
$(Q)$(MAKE) NDEBUG=1
|
$(Q)$(MAKE) NDEBUG=1
|
||||||
$(Q)$(MAKE) NDEBUG=1 clean
|
$(Q)$(MAKE) NDEBUG=1 clean
|
||||||
$(Q)$(MAKE) DEVKITFAIL=1
|
$(Q)$(MAKE) DKPPC=1
|
||||||
$(Q)$(MAKE) DEVKITFAIL=1 clean
|
$(Q)$(MAKE) DKPPC=1 clean
|
||||||
$(Q)$(MAKE) DEVKITFAIL=1 NDEBUG=1
|
$(Q)$(MAKE) DKPPC=1 NDEBUG=1
|
||||||
$(Q)$(MAKE) DEVKITFAIL=1 NDEBUG=1 clean
|
$(Q)$(MAKE) DKPPC=1 NDEBUG=1 clean
|
||||||
$(Q)$(MAKE) DKFAILCHANNEL=1
|
$(Q)$(MAKE) DKPPCCHANNEL=1
|
||||||
$(Q)$(MAKE) DKFAILCHANNEL=1 clean
|
$(Q)$(MAKE) DKPPCCHANNEL=1 clean
|
||||||
$(Q)$(MAKE) DKFAILCHANNEL=1 NDEBUG=1
|
$(Q)$(MAKE) DKPPCCHANNEL=1 NDEBUG=1
|
||||||
$(Q)$(MAKE) DKFAILCHANNEL=1 NDEBUG=1 clean
|
$(Q)$(MAKE) DKPPCCHANNEL=1 NDEBUG=1 clean
|
||||||
|
|
||||||
.PHONY: release
|
.PHONY: release
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ void stubmain(void) {
|
|||||||
write32(0x0c003004, 0);
|
write32(0x0c003004, 0);
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
#ifndef DEVKITFAIL
|
#ifndef DKPPC
|
||||||
udelay(500 * 1000); // wait for mini - avoid EXI battle
|
udelay(500 * 1000); // wait for mini - avoid EXI battle
|
||||||
#endif
|
#endif
|
||||||
gecko_init();
|
gecko_init();
|
||||||
@ -86,7 +86,7 @@ void stubmain(void) {
|
|||||||
write32(0x0c003000, 0xffffffff);
|
write32(0x0c003000, 0xffffffff);
|
||||||
|
|
||||||
printf("Branching to 0x%08x\n", entry);
|
printf("Branching to 0x%08x\n", entry);
|
||||||
#ifndef DEVKITFAIL
|
#ifndef DKPPC
|
||||||
// detect failkit apps packed with the mini stub
|
// detect failkit apps packed with the mini stub
|
||||||
if (entry & 0xc0000000) {
|
if (entry & 0xc0000000) {
|
||||||
void (*ep)() = (void (*)()) entry;
|
void (*ep)() = (void (*)()) entry;
|
||||||
|
Loading…
Reference in New Issue
Block a user