From e3ba080f2feb4cce7ae099b83bd8f773379a7e26 Mon Sep 17 00:00:00 2001 From: Julian Uy Date: Wed, 13 May 2026 10:47:07 -0500 Subject: [PATCH 1/2] add: Implementation of dummymod module --- iop/system/dummymod/Makefile | 18 ++++++++++++++++++ iop/system/dummymod/README.md | 16 ++++++++++++++++ iop/system/dummymod/src/dummymod.c | 19 +++++++++++++++++++ 3 files changed, 53 insertions(+) create mode 100644 iop/system/dummymod/Makefile create mode 100644 iop/system/dummymod/README.md create mode 100644 iop/system/dummymod/src/dummymod.c diff --git a/iop/system/dummymod/Makefile b/iop/system/dummymod/Makefile new file mode 100644 index 00000000000..765afab599f --- /dev/null +++ b/iop/system/dummymod/Makefile @@ -0,0 +1,18 @@ +# _____ ___ ____ ___ ____ +# ____| | ____| | | |____| +# | ___| |____ ___| ____| | \ PS2DEV Open Source Project. +#----------------------------------------------------------------------- +# Copyright ps2dev - http://www.ps2dev.org +# Licenced under Academic Free License version 2.0 +# Review ps2sdk README & LICENSE files for further details. + +IOP_IMPORT_INCS += \ + system/loadcore + +IOP_OBJS = \ + dummymod.o + +include $(PS2SDKSRC)/Defs.make +include $(PS2SDKSRC)/iop/Rules.bin.make +include $(PS2SDKSRC)/iop/Rules.make +include $(PS2SDKSRC)/iop/Rules.release diff --git a/iop/system/dummymod/README.md b/iop/system/dummymod/README.md new file mode 100644 index 00000000000..38a217c2633 --- /dev/null +++ b/iop/system/dummymod/README.md @@ -0,0 +1,16 @@ +# Dummy IOP Module + +This module is a minimal module intended to be used where a module is used but +a no-op is desired, such as a module in an IOPRP image. + +## Configurations + +There are multiple configurations of this library, allowing the choice of +balancing between size, speed, and features. + +* `dummymod` -> The recommended version. + +## How to use this module in your program + +In order to use this module in your program, use `LoadModule` or \ +`LoadModuleBuffer` with no arguments. diff --git a/iop/system/dummymod/src/dummymod.c b/iop/system/dummymod/src/dummymod.c new file mode 100644 index 00000000000..b793b9cc319 --- /dev/null +++ b/iop/system/dummymod/src/dummymod.c @@ -0,0 +1,19 @@ +/* +# _____ ___ ____ ___ ____ +# ____| | ____| | | |____| +# | ___| |____ ___| ____| | \ PS2DEV Open Source Project. +#----------------------------------------------------------------------- +# Copyright ps2dev - http://www.ps2dev.org +# Licenced under Academic Free License version 2.0 +# Review ps2sdk README & LICENSE files for further details. +*/ + +#include + +int _start(int ac, char **av) +{ + (void)ac; + (void)av; + + return MODULE_NO_RESIDENT_END; +} From 8ecfc93c2450b4a422dbb577972c236bde4b5995 Mon Sep 17 00:00:00 2001 From: Julian Uy Date: Wed, 13 May 2026 10:47:16 -0500 Subject: [PATCH 2/2] buildsystem: hook up newly added modules to buildsystem --- iop/system/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/iop/system/Makefile b/iop/system/Makefile index 665c72d00b6..3f195214c6b 100644 --- a/iop/system/Makefile +++ b/iop/system/Makefile @@ -10,6 +10,7 @@ SUBDIRS = \ alloc \ boardinf \ dmacman \ + dummymod \ eeconf \ eesync \ eesync-nano \