Vendor web server dependency for standalone workspace

This commit is contained in:
Knutwurst committed 2026-06-23 08:28:20 +02:00
1 parent 40b26e6c1b
commit 4a14c689e5
4 files changed
+6538 -9

No files matched your search

+3 -3
View File
@@ -1,7 +1,7 @@
PS5_HOST ?= ps5 PS5_HOST ?= ps5
PS5_PORT ?= 9021 PS5_PORT ?= 9021
PATCHDL_HTTP_PORT ?= 12880 PATCHDL_HTTP_PORT ?= 12880
ETAHEN_SOURCE_DIR ?= ../Source Code ETAHEN_DEPS_DIR ?= vendor/etahen
ifdef PS5_PAYLOAD_SDK ifdef PS5_PAYLOAD_SDK
include $(PS5_PAYLOAD_SDK)/toolchain/prospero.mk 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 WEB_ASSETS := web/index.html web/styles.css web/app.js
GEN_SRCS := $(patsubst web/%,gen/web/%.c,$(WEB_ASSETS)) 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) CFLAGS := -g -O2 -Wall -Werror -Isrc -I"$(ETAHEN_DEPS_DIR)/include" -DPATCHDL_HTTP_PORT=$(PATCHDL_HTTP_PORT)
LDADD := -L"$(ETAHEN_SOURCE_DIR)/lib" -lmicrohttpd -lkernel_sys LDADD := -L"$(ETAHEN_DEPS_DIR)/lib" -lmicrohttpd -lkernel_sys
all: $(BIN) all: $(BIN)
+10 -6
View File
@@ -37,6 +37,10 @@ Makefile
src/ src/
Embedded web server entrypoint and API stubs. Embedded web server entrypoint and API stubs.
vendor/etahen/
Vendored libmicrohttpd header and static library required for standalone
builds.
web/ web/
Static web UI prototype for the future embedded PatchDL web server. Static web UI prototype for the future embedded PatchDL web server.
``` ```
@@ -72,12 +76,12 @@ patchdl-ps5.elf 12881
## Building ## Building
PatchDL builds against `ps5-payload-dev/sdk` and reuses etaHEN's checked-in 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 `libmicrohttpd.a` plus header files. The required etaHEN build dependency is
source tree next to this repository: vendored in this repository:
```text ```text
../Source Code/include vendor/etahen/include/microhttpd.h
../Source Code/lib vendor/etahen/lib/libmicrohttpd.a
``` ```
If the SDK is unpacked into `.toolchains/ps5-payload-sdk/ps5-payload-sdk`, the 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: Override paths and ports as needed:
```sh ```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: Deploy with an ELF loader listening on the PS5:
```sh ```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
``` ```
+6525
View File
File diff suppressed because it is too large. Load diff
Binary file not shown.