OpenOrbis / OpenOrbis-PS4-Toolchain

The OpenOrbis PS4 custom toolchain. Allows developers to build homebrew for the PS4 without the official SDK.
GNU General Public License v3.0
474 stars 86 forks source link

Allow linking with libkernel_sys #163

Closed Cryptogenic closed 2 years ago

Cryptogenic commented 2 years ago

Currently, stubs are not generated for the system libkernel variant (libkernel_sys), and create-fself doesn't have a dictionary definition for it either. This is fine for most homebrew apps, however for other things that want to build against the toolchain (such as Mira), it needs to be addressed.

Cryptogenic commented 2 years ago

Support has been added in create-fself, however for some reason orbis-lib-gen doesn't generate stubs for libkernel_sys, need to investigate further.

Cryptogenic commented 2 years ago

This is gonna require reworking orbis-lib-gen a bit. Basically because of the way it works, these "variant" type libraries get lost because they share the same core module name.

Cryptogenic commented 2 years ago

Addressed this specific case in orbis-lib-gen v1.2 https://github.com/OpenOrbis/orbis-lib-gen/commit/0befbc10b7295e90bc0a447ebabaebd221ea383d

In the future we may want something better, though I can't think of any other cases we really need covered because libkernel is somewhat unique in how it works. Most other cases probably can't be called by homebrew in a reasonable way. Closing for now.