-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (20 loc) · 770 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (20 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.PHONY: vpk eboot upload-vpk update-run-vita run-vita
RUSTFLAGS ?= -C target-feature=-neon
CARGO_VITA ?= cargo +nightly vita
VPK := target/armv7-sony-vita-newlibeabihf/release/green-vita.vpk
VITA_UPLOAD_DIR ?= ux0:/data/
vpk:
RUSTFLAGS="$(RUSTFLAGS)" $(CARGO_VITA) build vpk --release
eboot:
RUSTFLAGS="$(RUSTFLAGS)" $(CARGO_VITA) build eboot --release
upload-vpk: vpk
ifndef VITA_IP
$(error Usage: make upload-vpk VITA_IP=192.168.0.103)
endif
$(CARGO_VITA) upload --vita-ip $(VITA_IP) --source $(VPK) --destination $(VITA_UPLOAD_DIR)
update-run-vita:
ifndef VITA_IP
$(error Usage: make update-run-vita VITA_IP=192.168.0.103)
endif
RUSTFLAGS="$(RUSTFLAGS)" $(CARGO_VITA) build eboot --update --run --vita-ip $(VITA_IP) -- --release
run-vita: update-run-vita