How to Build Custom uLaunchELF
(with launch argument support)
by Iritscen

1. Unzip gshi_ps2sdk.7z, which is a prebuilt binary version of ps2sdk, the reverse-engineered open-source PS2 SDK.  Be warned, this zip contains many thousands of files because it includes a preinstallation of msys and the needed tools for building projects with ps2sdk.  Follow the instructions in the expanded .7z for installation of ps2sdk.

Note: This version of ps2sdk has been patched in order to be capable of building uLaunchELF (uLE), but the patches were probably intended for a different version of uLE.  I had to customize a specific version of uLE (v4.40h) that was compatible with PCSX2, which will cause a problem in step 2.

2. On the msys command prompt, switch to the uLaunchELF/ directory to build my slightly-customized version of the open-source boot loader.  (The changes I made to the uLE source files are marked with "Iritscen:" comments.)
	A. Execute "make".  The build process will fail halfway through, probably due to the issue explained in the note above.  You should receive a build error originating from the uLaunchELF/hdl_info/ directory.
	B. Open hdl_info/Makefile for editing.  As my comment in the file indicates, you need to remove the "-c" option from IOP_CFLAGS.  Save the file.
	C. Execute "make" again from the uLaunchELF/ directory.  The build should complete, producing a BOOT.ELF in this directory.

Note: To build uLE in the future, you will need to restore the hdl_info Makefile's "-c" option and then go through steps 2A–C again.

3. Use this BOOT.ELF binary along with the other files supplied in the directory above source/ to supply launch arguments to your PS2 game in PCSX2 using the steps in Instructions.rtf.