mirror of
https://github.com/badgeteam/mch2022-template-app.git
synced 2024-11-22 00:31:00 +00:00
28 lines
588 B
Makefile
28 lines
588 B
Makefile
PORT ?= /dev/ttyACM0
|
|
BUILDDIR ?= build
|
|
IDF_PATH ?= $(shell pwd)/esp-idf
|
|
IDF_EXPORT_QUIET ?= 0
|
|
SHELL := /usr/bin/env bash
|
|
|
|
.PHONY: prepare clean build flash monitor menuconfig
|
|
|
|
all: prepare build install
|
|
|
|
prepare:
|
|
git submodule update --init --recursive
|
|
cd esp-idf; bash install.sh
|
|
|
|
clean:
|
|
rm -rf "$(BUILDDIR)"
|
|
|
|
build:
|
|
source "$(IDF_PATH)/export.sh" && idf.py build
|
|
|
|
install: build
|
|
python3 tools/webusb_push.py "Template App" build/main.bin --run
|
|
|
|
monitor:
|
|
source "$(IDF_PATH)/export.sh" && idf.py monitor -p $(PORT)
|
|
|
|
menuconfig:
|
|
source "$(IDF_PATH)/export.sh" && idf.py menuconfig
|