feat: Add guided installer with hardware detection and RVF build profiles
- install.sh: 7-step interactive installer detecting system, toolchains, WiFi hardware (interfaces, ESP32 USB, Intel CSI debug), and recommending the best build profile (verify/python/rust/browser/iot/docker/field/full) - Rust is the primary recommended runtime (810x faster than Python) - Makefile: 15+ targets including make install, make check, make build-rust, make build-wasm, make bench, make run-api, make run-viz - README: Updated installation section with Rust-primary ordering, removed mock testing references, added v2.2.0 changelog entry https://claude.ai/code/session_01Ki7pvEZtJDvqJkmyn6B714
This commit is contained in:
107
Makefile
107
Makefile
@@ -1,8 +1,42 @@
|
||||
# WiFi-DensePose Makefile
|
||||
# ============================================================
|
||||
|
||||
.PHONY: verify verify-verbose verify-audit help
|
||||
.PHONY: verify verify-verbose verify-audit install install-verify install-python \
|
||||
install-rust install-browser install-docker install-field install-full \
|
||||
check build-rust build-wasm test-rust bench run-api run-viz clean help
|
||||
|
||||
# ─── Installation ────────────────────────────────────────────
|
||||
# Guided interactive installer
|
||||
install:
|
||||
@./install.sh
|
||||
|
||||
# Profile-specific installs (non-interactive)
|
||||
install-verify:
|
||||
@./install.sh --profile verify --yes
|
||||
|
||||
install-python:
|
||||
@./install.sh --profile python --yes
|
||||
|
||||
install-rust:
|
||||
@./install.sh --profile rust --yes
|
||||
|
||||
install-browser:
|
||||
@./install.sh --profile browser --yes
|
||||
|
||||
install-docker:
|
||||
@./install.sh --profile docker --yes
|
||||
|
||||
install-field:
|
||||
@./install.sh --profile field --yes
|
||||
|
||||
install-full:
|
||||
@./install.sh --profile full --yes
|
||||
|
||||
# Hardware and environment check only (no install)
|
||||
check:
|
||||
@./install.sh --check-only
|
||||
|
||||
# ─── Verification ────────────────────────────────────────────
|
||||
# Trust Kill Switch -- one-command proof replay
|
||||
verify:
|
||||
@./verify
|
||||
@@ -15,12 +49,75 @@ verify-verbose:
|
||||
verify-audit:
|
||||
@./verify --verbose --audit
|
||||
|
||||
# ─── Rust Builds ─────────────────────────────────────────────
|
||||
build-rust:
|
||||
cd rust-port/wifi-densepose-rs && cargo build --release
|
||||
|
||||
build-wasm:
|
||||
cd rust-port/wifi-densepose-rs && wasm-pack build crates/wifi-densepose-wasm --target web --release
|
||||
|
||||
build-wasm-mat:
|
||||
cd rust-port/wifi-densepose-rs && wasm-pack build crates/wifi-densepose-wasm --target web --release -- --features mat
|
||||
|
||||
test-rust:
|
||||
cd rust-port/wifi-densepose-rs && cargo test --workspace
|
||||
|
||||
bench:
|
||||
cd rust-port/wifi-densepose-rs && cargo bench --package wifi-densepose-signal
|
||||
|
||||
# ─── Run ─────────────────────────────────────────────────────
|
||||
run-api:
|
||||
uvicorn v1.src.api.main:app --host 0.0.0.0 --port 8000
|
||||
|
||||
run-api-dev:
|
||||
uvicorn v1.src.api.main:app --host 0.0.0.0 --port 8000 --reload
|
||||
|
||||
run-viz:
|
||||
python3 -m http.server 3000 --directory ui
|
||||
|
||||
run-docker:
|
||||
docker compose up
|
||||
|
||||
# ─── Clean ───────────────────────────────────────────────────
|
||||
clean:
|
||||
rm -f .install.log
|
||||
cd rust-port/wifi-densepose-rs && cargo clean 2>/dev/null || true
|
||||
|
||||
# ─── Help ────────────────────────────────────────────────────
|
||||
help:
|
||||
@echo "WiFi-DensePose Build Targets"
|
||||
@echo "============================================================"
|
||||
@echo ""
|
||||
@echo " make verify Run the trust kill switch (proof replay)"
|
||||
@echo " make verify-verbose Verbose mode with feature details"
|
||||
@echo " make verify-audit Full verification + codebase audit"
|
||||
@echo " make help Show this help"
|
||||
@echo " Installation:"
|
||||
@echo " make install Interactive guided installer"
|
||||
@echo " make install-verify Verification only (~5 MB)"
|
||||
@echo " make install-python Full Python pipeline (~500 MB)"
|
||||
@echo " make install-rust Rust pipeline with ~810x speedup"
|
||||
@echo " make install-browser WASM for browser (~10 MB)"
|
||||
@echo " make install-docker Docker-based deployment"
|
||||
@echo " make install-field WiFi-Mat disaster kit (~62 MB)"
|
||||
@echo " make install-full Everything available"
|
||||
@echo " make check Hardware/environment check only"
|
||||
@echo ""
|
||||
@echo " Verification:"
|
||||
@echo " make verify Run the trust kill switch"
|
||||
@echo " make verify-verbose Verbose with feature details"
|
||||
@echo " make verify-audit Full verification + codebase audit"
|
||||
@echo ""
|
||||
@echo " Build:"
|
||||
@echo " make build-rust Build Rust workspace (release)"
|
||||
@echo " make build-wasm Build WASM package (browser)"
|
||||
@echo " make build-wasm-mat Build WASM with WiFi-Mat (field)"
|
||||
@echo " make test-rust Run all Rust tests"
|
||||
@echo " make bench Run signal processing benchmarks"
|
||||
@echo ""
|
||||
@echo " Run:"
|
||||
@echo " make run-api Start Python API server"
|
||||
@echo " make run-api-dev Start API with hot-reload"
|
||||
@echo " make run-viz Serve 3D visualization (port 3000)"
|
||||
@echo " make run-docker Start Docker dev stack"
|
||||
@echo ""
|
||||
@echo " Utility:"
|
||||
@echo " make clean Remove build artifacts"
|
||||
@echo " make help Show this help"
|
||||
@echo ""
|
||||
|
||||
Reference in New Issue
Block a user