Diamond Rivero
055740b142
fix format specifier
2022-10-03 14:57:09 +08:00
Wouter Wijsman
4b6471f071
Merge pull request #103 from diamant3/master
...
Fix __timezone_update() compiler warning
2022-10-02 17:47:25 +02:00
Diamond Rivero
cfb2678023
increase tz buffer size
2022-10-02 19:12:48 +08:00
OrigamiK
7d305c7cd0
Merge branch 'pspdev:master' into patch-1
2022-10-02 03:30:18 +05:30
OrigamiK
0c7a3f1e5a
fix parameter warning
2022-10-02 03:29:49 +05:30
Joel16
8c8b1ccbc5
power: Include some known function names and prototypes
2022-05-18 23:59:28 -04:00
Wally4000
8d1401caa5
Add missing include sys/time.h
2022-04-19 09:15:53 +10:00
Wally4000
20642f0ced
Add sceGeEdramSetSize
2022-04-14 21:27:47 +10: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
Francisco Javier Trujillo Mata
22c7db527c
Adding clock_getres, clock_gettime, clock_settime
2022-03-31 00:54:01 +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
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
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
4a16677d8d
Improve getpgwan and getpwuid
...
Return dummy passwd struct
2022-01-13 20:44:25 +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
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
Francisco Javier Trujillo Mata
9bd8355094
Adding fsync function to libc glue functions
2022-01-03 22:43:15 +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
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
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
Joel16
65ec4ecdf9
pspsysreg.h: Fix sceSysregGetTachyonVersion function prototype
2021-12-09 15:45:55 -05:00
David Guillen Fandos
eae72ff954
Make getuid/geteuid return 1000 to "look like" a non-root user.
2021-12-09 21:24:14 +01:00
David Guillen Fandos
d05f1945d1
Add getuid/geteuid to return user=0 (root)
...
Hopefully allows some programs to build even though there's no support
for users on the system.
2021-12-09 18:29:00 +01:00
David Guillen Fandos
85f34c19a6
Add dummy getpwuid and getpwnam for more POSIX compatibility.
...
This should get around libs/programs that just attempt to get the
current users's home directory.
2021-12-09 18:24:53 +01:00
Francisco Javier Trujillo Mata
27d0081666
Fix copy & paste issue in the documentation
2021-12-06 21:55:15 +01:00
Francisco Javier Trujillo Mata
f6495356e8
Fix headers and imports
2021-12-06 21:24:44 +01:00
Francisco Javier Trujillo Mata
98b7d836ee
Create specific modinfo library
2021-12-06 21:24:44 +01:00
Ben
1fefe31635
Merge pull request #67 from fjtrujy/pspsdk_stdlib
...
Add pspsdk to the standard libs
2021-12-05 18:50:16 +11:00
Francisco Javier Trujillo Mata
e66eddd9b3
Add pspsdk to the standard libs
2021-12-04 14:22:35 +01:00
Ben
0edae0ab81
Merge pull request #65 from fjtrujy/prx_heap
...
Remove specific condition for heap and PRX files
2021-12-04 09:26:22 +11:00
David Guillen Fandos
df9e296904
Move inline stubs to a separated asm file
...
Defining asm labels in inline assembly is not a good idea, according to
GCC docs it can result in labels being deleted (optimized away) or even
duplicated (see https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html ).
This affects LTO linking, since LTO removes the four symbols and results
in undefined references. Using an ASM file makes sure that symbols exist
with the correct attributes.
2021-12-03 21:52:59 +01:00
Francisco Javier Trujillo Mata
01d000e03e
Remove specific condition for heap and PRX files
2021-12-03 20:14:30 +01:00
Francisco Javier Trujillo Mata
cfb9b04954
Improve exit process
2021-11-25 17:30:24 +01:00
Francisco Javier Trujillo Mata
af5e24ef06
Deinit mutexs
2021-11-25 17:20:55 +01:00
Francisco Javier Trujillo Mata
227b0de587
Make CI to fail if one sample fails
2021-11-23 01:31:57 +01:00
Francisco Javier Trujillo Mata
515834c2bf
Improve return error nanosleep
2021-11-23 01:31:39 +01:00
Francisco Javier Trujillo Mata
04c4d9e76f
Add ftime function
2021-11-23 01:31:24 +01:00
Francisco Javier Trujillo Mata
98bed321f1
Fix wrong struct used for timeval. Newlib expects 64bits for seconds and PSP expects 32
2021-11-23 01:31:06 +01:00
Wouter Wijsman
75085d4970
Also set PSP definition for gcc and cmake
2021-11-17 22:35:02 +01:00
Wouter Wijsman
074a740bce
Add CreatePBP.cmake and add some variables relied on by software
2021-11-17 15:45:44 +01:00
Francisco Javier Trujillo Mata
77ab536474
Implement some missings todo, and add libpsprtc as standard library
...
Remove -lm from examples because is also part of standard libraries
2021-11-16 11:25:01 +01:00
Francisco Javier Trujillo Mata
c0f526059a
Rename libpsplibc to libcglue
2021-11-15 15:41:30 +01:00