- Timestamp:
- Sep 29, 2024, 9:37:00 AM (7 weeks ago)
- Location:
- trunk
- Files:
-
- 7 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Platform/ps2.mk
r187 r189 3 3 PREFIX = /dev_hdd0/httpd 4 4 5 CC = ppu-gcc6 AR = ppu-ar7 CFLAGS = - g -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -I /usr/local/ps3dev/ppu/include8 LDFLAGS = - L /usr/local/ps3dev/ppu/lib9 LIBS = -l net -lsysmodule -lsysutil -lrt -llv25 CC = mips64r5900el-ps2-elf-gcc 6 AR = mips64r5900el-ps2-elf-ar 7 CFLAGS = -O2 -D_EE -DPREFIX=\"$(PREFIX)\" -I $(PWD)/Common -I /usr/local/ps2dev/ps2sdk/ee/include -I /usr/local/ps2dev/ps2sdk/common/include 8 LDFLAGS = -T/usr/local/ps2dev/ps2sdk/ee/startup/linkfile -L /usr/local/ps2dev/ps2sdk/ee/lib -O2 9 LIBS = -ldebug -lsocket 10 10 EXEC = .elf 11 11 LIB = .so 12 12 MODULE = 13 SERVADD = ppu-strip tewi.elf -o tewi_strip.elf 14 TARGET = tewi.pkg 13 SERVADD = mips64r5900el-ps2-elf-strip tewi.elf -o tewi_strip.elf -
trunk/Server/Makefile
r187 r189 6 6 .SUFFIXES: .c .o 7 7 8 OBJS = version.o main.o config.o server.o http.o module.o strptime.o $(EXTOBJS) $(PREOBJS)8 OBJS = main.o version.o config.o server.o http.o module.o strptime.o $(EXTOBJS) $(PREOBJS) 9 9 10 10 all: tewi$(EXEC) $(TARGET) … … 13 13 14 14 tewi$(EXEC): $(OBJS) ../Common/common.a 15 $(CC) $(LDFLAGS) $(EXTLDFLAGS) -o $@ $(OBJS) $(EXTLIBS) $(LIBS) ../Common/common.a15 $(CC) $(LDFLAGS) $(EXTLDFLAGS) -o $@ $(OBJS) $(EXTLIBS) ../Common/common.a $(LIBS) 16 16 $(SERVADD) 17 17 -
trunk/Server/config.c
r187 r189 106 106 #elif defined(__PPU__) 107 107 strcpy(config.hostname, "ps3"); 108 #elif defined(__ps2sdk__) 109 strcpy(config.hostname, "ps2"); 108 110 #else 109 111 gethostname(config.hostname, 1024); -
trunk/Server/main.c
r187 r189 5 5 #include "../config.h" 6 6 7 #include <unistd.h> 7 8 #include <stdio.h> 8 9 #include <stdbool.h> … … 40 41 #define printf(...) pspDebugScreenPrintf(__VA_ARGS__) 41 42 #define STDERR_LOG(...) pspDebugScreenPrintf(__VA_ARGS__) 43 #elif defined(__ps2sdk__) 44 #include <debug.h> 45 #include <sifrpc.h> 46 47 #define printf(...) scr_printf(__VA_ARGS__) 48 #define STDERR_LOG(...) scr_printf(__VA_ARGS__) 42 49 #else 43 50 #define STDERR_LOG(...) fprintf(stderr, __VA_ARGS__) … … 244 251 printf("PS3 Bootstrap, Tewi/%s\n", tw_get_version()); 245 252 netInitialize(); 253 #elif defined(__ps2sdk__) 254 SifInitRpc(0); 255 init_scr(); 256 scr_printf("PS2 Bootstrap, Tewi/%s\n", tw_get_version()); 257 while(1) 258 ; 246 259 #endif 247 260 int st = startup(argc, argv); -
trunk/Server/module.c
r187 r189 16 16 extern struct tw_config config; 17 17 18 #if defined(_PSP) || defined(__PPU__) 18 #if defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) 19 19 void* tw_module_load(const char* path) { return NULL; } 20 20 -
trunk/Server/server.c
r187 r189 62 62 #endif 63 63 64 #if def _PSP64 #if defined(_PSP) || defined(__ps2sdk__) 65 65 #include "strptime.h" 66 66 #endif … … 522 522 struct tm tm; 523 523 strptime(req.headers[i + 1], "%a, %d %b %Y %H:%M:%S GMT", &tm); 524 #if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) 524 #if defined(__MINGW32__) || defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__) 525 525 time_t t = 0; 526 526 struct tm* btm = localtime(&t); -
trunk/Server/strptime.h
r182 r189 8 8 #include <time.h> 9 9 10 #if defined(_WIN32) || defined(_PSP) 10 #if defined(_WIN32) || defined(_PSP) || defined(__ps2sdk__) 11 11 char* strptime(const char *buf, const char *fmt, struct tm *tm); 12 12 #endif -
trunk/config.h.tmpl
r187 r189 28 28 #endif 29 29 30 #if (defined(_PSP) || defined(__PPU__) ) && !defined(NO_IPV6)30 #if (defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__)) && !defined(NO_IPV6) 31 31 #define NO_IPV6 32 /* PSP/PS 3 does not have IPv6 */32 /* PSP/PS2/PS3 does not have IPv6 */ 33 33 #endif 34 34 35 #if (defined(_PSP) ) && defined(USE_POLL)35 #if (defined(_PSP) || defined(__ps2sdk__)) && defined(USE_POLL) 36 36 #undef USE_POLL 37 /* Force select(2) for PSP */37 /* Force select(2) for PSP/PS2 */ 38 38 #endif 39 39 40 #if (defined(_PSP) || defined(__PPU__) ) && defined(HAS_CHROOT)40 #if (defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__)) && defined(HAS_CHROOT) 41 41 #undef HAS_CHROOT 42 /* PSP/PS 3 should not have chroot */42 /* PSP/PS2/PS3 should not have chroot */ 43 43 #endif 44 44 45 #if (defined(_PSP) || defined(__PPU__) ) && !defined(NO_GETADDRINFO)45 #if (defined(_PSP) || defined(__PPU__) || defined(__ps2sdk__)) && !defined(NO_GETADDRINFO) 46 46 #define NO_GETADDRINFO 47 /* PSP/PS 3 should not have getaddrinfo */47 /* PSP/PS2/PS3 should not have getaddrinfo */ 48 48 #endif 49 49
Note:
See TracChangeset
for help on using the changeset viewer.