Added rule in common-iop.mk to allow building of imports stub. Basically, every test directory should have its own imports.lst and irx_imports.h files detailing the modules and functions they need to import. In Makefile, imports.o needs to be specified in the EXTRA_OBJS variable for the new build rule to work.
I've also added a basic ReferThreadStatus test to show how the build rule works. I'm only importing ReferThreadStatus from thbase at the moment. Although GetThreadId is a thbase function, there's no need to specify it in imports.lst because it is already imported by libkernel.a for some reason (https://github.com/ps2dev/ps2sdk/blob/master/iop/kernel/src/thbase.s).
Added rule in
common-iop.mk
to allow building of imports stub. Basically, every test directory should have its ownimports.lst
andirx_imports.h
files detailing the modules and functions they need to import. InMakefile
,imports.o
needs to be specified in theEXTRA_OBJS
variable for the new build rule to work.I've also added a basic ReferThreadStatus test to show how the build rule works. I'm only importing
ReferThreadStatus
fromthbase
at the moment. AlthoughGetThreadId
is athbase
function, there's no need to specify it inimports.lst
because it is already imported by libkernel.a for some reason (https://github.com/ps2dev/ps2sdk/blob/master/iop/kernel/src/thbase.s).