-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support ps4sh transition #6
Comments
ps4link stuff compiled and run fine with ps4sdk There is not elfloader.c and elfloader.h so i included both in my test inside libps4link/source and libps4link/include You made some changes (again :P) in memoryprotect stuff changes needed done in commands.c and elfloader.h Also changes in my Makefiles to adapt to ps4sdk it was a little messy to include libraries needed to compile and order is important to avoid undefined errors but finally all compiled an tested fine running ps4ftp from ps4sh so I need to commit changes to ps4link not ready yet and perhaps we need some documentation for final user first to compile samples with new ps4sdk |
Hi :) Thanks, for trying and looking into it! :) PS: I laughed at the memory.h comment :D I am so sorry. I tried this time to follow Sony as close as possible. They break their rules with libkernel (naming is all non-object oriented) but most often then try to do: Namespace(Namespace)MainobjectVerb(Resultobject). So I added "Get" etc. I had a terrible time doing this ^^' because I argue with myself: "Is it Kernel.Hook.Function or Kernel.Function.Hook" ^^' Every few days I rename in circles :P |
Uh, you should look at / try ps4KernelCall! :) |
i have created a branch in ps4link with changes to get all running with ps4sdk What is the best form to add libraries in samples(chek them in my new branch)? libSceNet_stub is not added in makefiles by default and i need to add my libs also. I don't like to use LinkerFlags: ifndef Ps4Sdk target ?= ps4_elf include $(Ps4Sdk)/make/ps4sdk.mk Would be better to modify ps4_untargeted.mk to accept for example libraries(or whatever name we choose) variable and add them to Libraries? What do you think? |
Hey! "Untargeted" will produce a bit of different assembler, because it knows the architecture better (optimizations too). Overall it's not needed. "All" would be a good target. But we should (eventually) supply at least two extra variables to support changing:
If you like to change the way the current Make system works, I am sure you come up with something good. Adding libs dynamically should be easily supported (Library += foo.a) or so, so that we can add in stuff like the elfloader.a as needed and so that we can create more libs (comple other ppls code) outside the sdk. PS: Good that you try to avoid using linker flags! :) |
The text was updated successfully, but these errors were encountered: