@@ -6,9 +6,6 @@ help: ## Display this help.
66 @awk ' BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST )
77
88# #@ Dependencies
9- # Note: Zephyr setup uses minimal modules and ARM-only toolchain for RP2040/RP2350
10- # This saves ~3-4 GB compared to full installation. See docs/additional-resources/west-manifest-setup.md
11- # Hello World!
129
1310.PHONY : submodules
1411submodules : # # Initialize and update git submodules
@@ -23,37 +20,16 @@ fprime-venv: ## Create a virtual environment
2320 @$(UV ) pip install --requirement requirements.txt
2421
2522.PHONY : zephyr-setup
26- zephyr-setup : fprime-venv # # Set up Zephyr environment (minimal RP2040/RP2350 only)
27- @test -d lib/zephyr-workspace/modules/hal/rpi_pico || test -d ../lib/zephyr-workspace/modules/hal/rpi_pico || { \
28- echo " Setting up minimal Zephyr environment (RP2040/RP2350 only)..." ; \
29- echo " - Using minimal module set (~80% disk space reduction)" ; \
30- echo " - Installing ARM toolchain only (~92% SDK reduction)" ; \
31- if [ ! -f .west/config ] && [ ! -f ../.west/config ]; then \
32- echo " - Initializing West workspace..." ; \
33- $(UVX ) west init -l . ; \
34- fi && \
23+ zephyr-setup : fprime-venv # # Set up Zephyr environment
24+ @test -d lib/zephyr-workspace/modules/hal/rpi_pico { \
25+ echo " Setting up Zephyr environment..." ; \
26+ $(UVX ) west init -l . && \
3527 $(UVX ) west update && \
3628 $(UVX ) west zephyr-export && \
3729 $(UV ) run west packages pip --install && \
3830 $(UV ) run west sdk install --toolchains arm-zephyr-eabi; \
3931 }
4032
41- .PHONY : zephyr-setup-full
42- zephyr-setup-full : fprime-venv # # Set up Zephyr with ALL modules and toolchains (not recommended)
43- @echo " Setting up FULL Zephyr environment (all modules and toolchains)..."
44- @echo " Warning: This will download 4-6 GB of data"
45- @read -p " Continue? [y/N] " -n 1 -r; \
46- echo ; \
47- if [[ $$ REPLY =~ ^[Yy]$$ ]]; then \
48- $(UVX ) west config manifest.path lib/zephyr-workspace/zephyr && \
49- $(UVX ) west update && \
50- $(UVX ) west zephyr-export && \
51- $(UV ) run west packages pip --install && \
52- $(UV ) run west sdk install; \
53- else \
54- echo " Cancelled. Use 'make zephyr-setup' for minimal installation." ; \
55- fi
56-
5733# #@ Development
5834
5935.PHONY : pre-commit-install
0 commit comments