venv

Makefile wrap

VENV_DIR ?= $(PWD)/.venv
WEST ?= $(VENV_DIR)/bin/west
 
$(VENV_DIR): zephyr/scripts/requirements.txt ;
	python3 -m venv $(VENV_DIR)
	$(VENV_DIR)/bin/pip install --upgrade west
	$(VENV_DIR)/bin/pip install -r zephyr/scripts/requirements.txt
	touch $(VENV_DIR)
 
init: $(VENV_DIR)
	[ -d ".west" ] || $(WEST) init -l app
	$(WEST) update
	$(WEST) patch --apply
 
menuconfig: build
	$(WEST) build -d $(BUILD_DIR) -t menuconfig

Links: