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 \ 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; +}