Skip to content

Commit

Permalink
[mx4sio]: switch to libmodhook
Browse files Browse the repository at this point in the history
  • Loading branch information
israpps committed Jul 12, 2024
1 parent 8e86501 commit 257829f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
12 changes: 11 additions & 1 deletion iop/sio/mx4sio_bd/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,22 @@
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.

IOP_INCS += -I$(PS2SDKSRC)/iop/fs/bdm/include -I$(PS2SDKSRC)/iop/system/sio2man/include
MODHOOK_PATH = $(PS2SDKSRC)/iop/utilities/modhook/
IOP_INCS += -I$(PS2SDKSRC)/iop/fs/bdm/include -I$(PS2SDKSRC)/iop/system/sio2man/include -I$(MODHOOK_PATH)include
IOP_LIB_ARCHIVES = $(MODHOOK_PATH)lib/libmodhook.a

IOP_OBJS += spi_sdcard_crc7.o spi_sdcard_driver.o crc16.o ioplib.o sio2man_hook.o mx4sio.o imports.o

IOP_LDFLAGS = -lgcc


$(MODHOOK_PATH)lib/libmodhook.a:
$(MAKEREC) $(MODHOOK_PATH)

.NOTPARALLEL:: \
$(IOP_LIB_ARCHIVES)


include $(PS2SDKSRC)/Defs.make
include $(PS2SDKSRC)/iop/Rules.bin.make
include $(PS2SDKSRC)/iop/Rules.make
Expand Down
3 changes: 2 additions & 1 deletion iop/sio/mx4sio_bd/src/mx4sio.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
#include <thsemap.h>
#include <xsio2man.h>

#include <ioplib.h>

#include "mx4sio.h"
#include "crc16.h"
#include "ioplib.h"
#include "sio2man_hook.h"
#include "sio2regs.h"
#include "spi_sdcard_driver.h"
Expand Down
2 changes: 1 addition & 1 deletion iop/sio/mx4sio_bd/src/sio2man_hook.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#include <stdio.h>
#include <string.h>
#include <thsemap.h>
#include <ioplib.h>

#include "ioplib.h"
#include "sio2man.h"
#include "sio2man_hook.h"

Expand Down

0 comments on commit 257829f

Please sign in to comment.