Commit Graph

287 Commits

Author SHA1 Message Date
Wally4000
8d1401caa5 Add missing include sys/time.h 2022-04-19 09:15:53 +10:00
Ben
59ce20b7f7 Merge pull request #96 from wally4000/master
Add sceGeEdramSetSize
2022-04-15 10:06:04 +10:00
Wally4000
20642f0ced Add sceGeEdramSetSize 2022-04-14 21:27:47 +10:00
Francisco Javier Trujillo Mata
d1ac82dc32 Merge pull request #94 from fjtrujy/master 2022-04-04 22:07:49 +02:00
Francisco Javier Trujillo Mata
03b3fee815 Remove custom types 2022-04-04 19:57:20 +02:00
Francisco Javier Trujillo Mata
a47efa52fa Merge pull request #91 from rofl0r/clock_t
psputils.h: fix header inclusion for clock_t
2022-04-04 19:51:04 +02:00
Ben
6fde4dddad Merge pull request #93 from fjtrujy/master
Adding `clock_getres`, `clock_gettime` and `clock_settime` to `libcglue`
2022-03-31 11:37:17 +11:00
Francisco Javier Trujillo Mata
22c7db527c Adding clock_getres, clock_gettime, clock_settime 2022-03-31 00:54:01 +02:00
Francisco Javier Trujillo Mata
6063f597fe Merge pull request #92 from fjtrujy/master
Link libpspsdk because it is part of standard libs
2022-03-30 18:50:32 +02:00
Francisco Javier Trujillo Mata
d1f347aa32 Link libpspsdk because it is part of standard libs 2022-03-30 18:18:55 +02:00
Francisco Javier Trujillo Mata
f392fa0592 Merge pull request #90 from fjtrujy/master
Adding support for `std:thread`
2022-03-30 01:20:13 +02:00
rofl0r
f35827f130 psputils.h: fix header inclusion for clock_t
clock_t is defined in <time.h>, but not <sys/time.h> in newlib 4.1.0.

this fixes a compile error in files including this header:

In file included from psp-elf/bin/../psp/sdk/include/pspuser.h:25:0,
                 from psp-elf/bin/../psp/sdk/include/pspkernel.h:17,
                 from ./include/driver/me.h:5,
                 from src/me.c:1:
psp-elf/bin/../psp/sdk/include/psputils.h:51:1: error: unknown type name 'clock_t'
make[1]: *** [src/me.o] Error 1

encountered while trying to compile MElib.
2022-03-28 00:28:35 +00:00
Francisco Javier Trujillo Mata
4cbabb73ae Macro for disabling usage of pthread 2022-03-26 14:31:53 +01:00
Francisco Javier Trujillo Mata
8a0ab6b14e Adding pthreadglue support 2022-03-26 14:31:53 +01:00
rofl0r
6f77784f04 psp-fixup-imports: make "could not fixup imports" non-fatal
i've hit this error when running psp-fixup-imports on one of the examples
in psgpl tests directory, in particular eglpbuffers.elf. i have been
unable to make the error go away by re-arranging libraries in the
command line passed to collect2/psp-ld, however it turned out that simply
disabling the error produced a working binary.

therefore, just make it print a fat warning and continue anyway.
2022-03-25 00:59:42 +00:00
rofl0r
4ff1371352 psp-fixup-imports: in verbose mode, print symbol names
this makes it easier to debug issues.
2022-03-25 00:59:42 +00:00
rofl0r
7e98bb715b psp-fixup-imports: use lowercase hex
this makes the output compatible with readelf, which prints hex
in lowercase (so one can e.g. readelf -a foo.elf | less and search
for some hex value in the output).
2022-03-23 16:45:21 +00:00
rofl0r
6b8aaa64b8 psp-fixup-imports: remove another gratuitous level of indentation 2022-03-23 16:41:04 +00:00
rofl0r
a797442dd9 psp-fixup-imports: remove one gratuitous level of indentation
there's so many indented blocks, it's hardly possible to read the code even
on a terminal that's been resized to 160 chars wide.
2022-03-23 16:37:23 +00:00
Francisco Javier Trujillo Mata
99e2ed1600 Merge pull request #87 from davidgfnet/master
Use gcc-ar and gcc-ranlib wrappers
2022-03-22 22:23:15 +01:00
David Guillen Fandos
fd8c305142 Use gcc-ar and gcc-ranlib wrappers
These wrappers use the --plugin flags to properly support LTO, other
than that it's a transparent change.
2022-03-22 21:49:43 +01:00
Francisco Javier Trujillo Mata
cc887d731f Merge pull request #85 from sharkwouter/patch-1
Use psp-pkg-config for FindPkgConfig in CMake
2022-03-15 17:10:50 +01:00
Wouter Wijsman
a51d8066da Clean up setting pkg-config executable
I found out the cache part wasn't needed.
2022-03-15 16:13:37 +01:00
Wouter Wijsman
560d558e30 Use psp-pkg-config for FindPkgConfig in CMake
This make it so that when using the following code:

```
include(FindPkgConfig)
pkg_search_module(SDL2 REQUIRED sdl2)
```

The variables ``${SDL2_INCLUDE_DIRS}`` and ``${SDL2_LIBRARIES}`` are set to the expected values within CMake.
2022-03-15 16:09:04 +01:00
Francisco Javier Trujillo Mata
aa211afe19 Merge pull request #84 from ryancaicse/master
Fix resource leaks in different places
2022-02-07 15:38:27 +01:00
ryancaicse
72f3714247 Fix resource leaks in bin2s.c
Fix resource leaks in bin2s.c
2022-02-07 15:18:17 +08:00
ryancaicse
a78df04996 Fix resource leaks in bin2o.c
Fix resource leaks in bin2o.c
2022-02-07 15:16:25 +08:00
ryancaicse
64d91e402a Fix resouce leaks in psp-fixup-imports.c
Fix resouce leaks in psp-fixup-imports.c
2022-02-07 15:13:51 +08:00
ryancaicse
0ba656ab48 Fix resource leaks in psp-prxgen.c
Fix resource leaks in psp-prxgen.c
2022-02-07 15:12:52 +08:00
Francisco Javier Trujillo Mata
34f7821758 Merge pull request #83 from fjtrujy/passwd
Improve getpgwan and getpwuid
2022-01-13 20:48:06 +01:00
Francisco Javier Trujillo Mata
4a16677d8d Improve getpgwan and getpwuid
Return dummy passwd struct
2022-01-13 20:44:25 +01:00
Francisco Javier Trujillo Mata
941f272544 Merge pull request #82 from pspdev/revert-79-passwd
Revert "Improve getpgwan and getpwuid"
2022-01-13 20:38:39 +01:00
Francisco Javier Trujillo Mata
d2796b684a Revert "Improve getpgwan and getpwuid" 2022-01-13 20:38:25 +01:00
Francisco Javier Trujillo Mata
550722d9fc Merge pull request #79 from fjtrujy/passwd
Improve getpgwan and getpwuid
2022-01-13 20:37:30 +01:00
Francisco Javier Trujillo Mata
20e2e8a561 Merge pull request #81 from sharkwouter/patch-1
Allow setting ENC_PRX as argument
2022-01-13 20:37:16 +01:00
Wouter Wijsman
745d5483a0 Allow setting ENC_PRX as argument
This make it a bit easier to deal, since encrypting a PRX makes it no longer work in psplink, but you might want to use it in an automated release.
2022-01-12 13:46:35 +01:00
Francisco Javier Trujillo Mata
d066a725d0 Improve getpgwan and getpwuid
Return dummy passwd struct
2022-01-05 19:47:06 +01:00
Paul Sajna
304c93a969 Merge pull request #78 from fjtrujy/fsync
Adding fsync function to libc glue  functions
2022-01-03 15:42:21 -08:00
Francisco Javier Trujillo Mata
9bd8355094 Adding fsync function to libc glue functions 2022-01-03 22:43:15 +01:00
Francisco Javier Trujillo Mata
8029a2a210 Merge pull request #77 from sharkwouter/patch-1 2021-12-25 00:41:13 +01:00
Wouter Wijsman
34fb512ae2 Add comment to install prefix 2021-12-24 20:44:40 +01:00
Wouter Wijsman
1db6cd197e Fix inconsistant behaviour with install prefix
Somehow it was still sometimes not working. I have no idea why that was, but setting is to cache and path fixed it for me.
2021-12-24 20:42:43 +01:00
Francisco Javier Trujillo Mata
4e982a686c Merge pull request #76 from sharkwouter/patch-1
Set CMAKE_INSTALL_PREFIX correctly
2021-12-23 20:41:45 +01:00
Wouter Wijsman
321cff4ee4 Set CMAKE_INSTALL_PREFIX correctly
CMAKE_TARGET_INSTALL_PREFIX isn't actually documented anywhere on the cmake website, so I guess that was a mistake. This change does not seem to cause warnings while building applications.
2021-12-23 20:35:34 +01:00
Francisco Javier Trujillo Mata
d916e68304 Merge pull request #75 from sharkwouter/patch-1
Don't make psp_artifacts directory
2021-12-17 19:04:52 +01:00
Wouter Wijsman
8911f4ea72 Add BUILD_PRX option to cmake 2021-12-15 23:37:18 +01:00
Wouter Wijsman
a94a5e4027 Don't make psp_artifacts directory
This makes it much easier to use psplink, since you'll no longer need to copy the prx into the build directory upon each build.
2021-12-15 23:23:01 +01:00
Paul Sajna
d726cd762f Merge pull request #74 from joel16/master
pspsysreg.h: Fix sceSysregGetTachyonVersion function prototype
2021-12-09 12:54:54 -08:00
Joel16
65ec4ecdf9 pspsysreg.h: Fix sceSysregGetTachyonVersion function prototype 2021-12-09 15:45:55 -05:00
Francisco Javier Trujillo Mata
191a1b366b Merge pull request #73 from davidgfnet/moreposix
Add some more POSIX API calls
2021-12-09 21:31:36 +01:00