some new things do not build if you install ps2sdk for the very first time (yes, this is really stupid)
you have to comment them out, they are new and not needed for openusbld
also in the main Makefile in ps2sdk
@@ -9,7 +9,7 @@
-SUBDIRS = kernel dev9 fs hdd sound tcpip usb system debug
+SUBDIRS = kernel dev9 fs hdd sound tcpip usb system # debug
comment out "common samples"
after you build and install the ps2sdk the first time around, you can revert makefile modifications. but there is still a lot of mess to fix (sbus or iop_debug has missing obj bin directories , does not make them during build and then fails because it cannot copy files into directories that do not exist :] ).
@@ -12,7 +12,7 @@ ifeq (x$(PS2SDKSRC), x)
export PS2SDKSRC=$(shell pwd)
-SUBDIRS = tools iop ee common samples
+SUBDIRS = tools iop ee #common samples
if somebody really has issues, i can package my pre-built ps2sdk (current svn) + ps2toolchain (for linux, might fail with cygwin or similar environment), or provide regular openusbld builds (if the devs are ok with that).
ok, from here build process has to be done manually, since the script will most likely disregard the changes and start from scratch.
basically, you need to make sure the following stuff is set :
then you just need to fire make + make release and then do the fix from automated scripts :
if all that succeeds, you need to build gsKit off ps2dev svn and you should be able to compile openusbld without issues. if it fails on the last step with ps2-packer, make sure you compiled it from ps2sdk svn (you need libucl in your distro to get it to build). if it still fails, this might help
ln -sf "$PS2SDK/ee/startup/crt0.o" "$PS2DEV/ee/lib/gcc-lib/ee/3.2.2/crt0.o"
ln -sf "$PS2SDK/ee/startup/crt0.o" "$PS2DEV/ee/ee/lib/crt0.o"
fix for openusbld Makefile
--- a/Makefile Tue Nov 03 18:50:05 2009 +0100
+++ b/Makefile Tue Nov 03 20:18:00 2009 +0100
@@ -22,7 +22,7 @@
echo " * Interface"
- $(PS2DEV)/bin/ps2-packer/ps2-packer main.elf OPNUSBLD.ELF > /dev/null
+ $(PS2DEV)/bin/ps2-packer main.elf OPNUSBLD.ELF > /dev/null