mirror of
https://github.com/knutwurst/patchdl.git
synced 2026-10-06 04:04:15 +02:00
Vendor web server dependency for standalone workspace
This commit is contained in:
1 parent
40b26e6c1b
commit
4a14c689e5
4 files changed
+6538
-9
No files matched your search
@@ -1,7 +1,7 @@
|
||||
PS5_HOST ?= ps5
|
||||
PS5_PORT ?= 9021
|
||||
PATCHDL_HTTP_PORT ?= 12880
|
||||
ETAHEN_SOURCE_DIR ?= ../Source Code
|
||||
ETAHEN_DEPS_DIR ?= vendor/etahen
|
||||
|
||||
ifdef PS5_PAYLOAD_SDK
|
||||
include $(PS5_PAYLOAD_SDK)/toolchain/prospero.mk
|
||||
@@ -17,8 +17,8 @@ SRCS := src/main.c src/patchdl_assets.c src/patchdl_websrv.c
|
||||
WEB_ASSETS := web/index.html web/styles.css web/app.js
|
||||
GEN_SRCS := $(patsubst web/%,gen/web/%.c,$(WEB_ASSETS))
|
||||
|
||||
CFLAGS := -g -O2 -Wall -Werror -Isrc -I"$(ETAHEN_SOURCE_DIR)/include" -DPATCHDL_HTTP_PORT=$(PATCHDL_HTTP_PORT)
|
||||
LDADD := -L"$(ETAHEN_SOURCE_DIR)/lib" -lmicrohttpd -lkernel_sys
|
||||
CFLAGS := -g -O2 -Wall -Werror -Isrc -I"$(ETAHEN_DEPS_DIR)/include" -DPATCHDL_HTTP_PORT=$(PATCHDL_HTTP_PORT)
|
||||
LDADD := -L"$(ETAHEN_DEPS_DIR)/lib" -lmicrohttpd -lkernel_sys
|
||||
|
||||
all: $(BIN)
|
||||
|
||||
|
||||
@@ -37,6 +37,10 @@ Makefile
|
||||
src/
|
||||
Embedded web server entrypoint and API stubs.
|
||||
|
||||
vendor/etahen/
|
||||
Vendored libmicrohttpd header and static library required for standalone
|
||||
builds.
|
||||
|
||||
web/
|
||||
Static web UI prototype for the future embedded PatchDL web server.
|
||||
```
|
||||
@@ -72,12 +76,12 @@ patchdl-ps5.elf 12881
|
||||
## Building
|
||||
|
||||
PatchDL builds against `ps5-payload-dev/sdk` and reuses etaHEN's checked-in
|
||||
`libmicrohttpd.a` plus header files. By default, the Makefile expects etaHEN's
|
||||
source tree next to this repository:
|
||||
`libmicrohttpd.a` plus header files. The required etaHEN build dependency is
|
||||
vendored in this repository:
|
||||
|
||||
```text
|
||||
../Source Code/include
|
||||
../Source Code/lib
|
||||
vendor/etahen/include/microhttpd.h
|
||||
vendor/etahen/lib/libmicrohttpd.a
|
||||
```
|
||||
|
||||
If the SDK is unpacked into `.toolchains/ps5-payload-sdk/ps5-payload-sdk`, the
|
||||
@@ -97,11 +101,11 @@ make clean all
|
||||
Override paths and ports as needed:
|
||||
|
||||
```sh
|
||||
make ETAHEN_SOURCE_DIR="/path/to/etaHEN/Source Code" PATCHDL_HTTP_PORT=12881
|
||||
make ETAHEN_DEPS_DIR="vendor/etahen" PATCHDL_HTTP_PORT=12881
|
||||
```
|
||||
|
||||
Deploy with an ELF loader listening on the PS5:
|
||||
|
||||
```sh
|
||||
PS5_HOST=ps5 PS5_PORT=9021 scripts/build_ps5.sh test
|
||||
PS5_HOST=192.168.178.90 PS5_PORT=9021 scripts/build_ps5.sh test
|
||||
```
|
||||
Vendored
+6525
File diff suppressed because it is too large.
Load diff
Vendored
BIN
Binary file not shown.
Reference in new issue
Block a user