Developer's Notes:
tools to make self with exact same format as game eboot, replaces only ??? in diagram
ppc exe, not sprx, not stand alone spu self
you supply keys etc.
update
fixed over optimized code. only seen original eboots with section 1 and 2 compressed, section 2,3,4 not compressed because size is zero. someone showed me 1 eboot and 2 ppc selfs with non zero section 2 & 3. they were not compressed but could be. added checks for these sections. also the fill between these sections would not have been applied in any case; fixed.
removed unecnrypt (used self fill), instead uses only unecnryptz (zero fill). self padding can be added if desired by using padding.exe on the converted self.
update 2
combined all the exe's into one archive.