-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (32 loc) · 986 Bytes
/
Copy pathMakefile
File metadata and controls
44 lines (32 loc) · 986 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Makefile for BreezyBox ESP32 project
# Wraps idf.py with ESP-IDF environment setup
IDF_PATH ?= $(HOME)/esp/esp-idf
SHELL := /bin/bash
PORT ?= /dev/ttyUSB0
# Board selection: ESP32-8048S043C (4.3-inch display)
export BOARD_ESP32_8048S043C := 1
# Source ESP-IDF environment before every idf.py invocation
IDF := . $(IDF_PATH)/export.sh 2>/dev/null &&
.PHONY: build flash monitor clean fullclean menuconfig patch
build:
$(IDF) idf.py build
flash:
$(IDF) idf.py -p $(PORT) flash
monitor:
$(IDF) idf.py -p $(PORT) monitor
flash-monitor:
$(IDF) idf.py -p $(PORT) flash monitor
clean:
$(IDF) idf.py clean
fullclean:
$(IDF) idf.py fullclean
menuconfig:
$(IDF) idf.py menuconfig
# Apply local patches to managed components.
# Patches live in patches/ and use git-style a/b prefixes (-p1).
# --forward skips already-applied patches instead of failing.
patch:
@for p in patches/*.patch; do \
echo "Applying $$p ..."; \
patch -p1 --forward < "$$p" || true; \
done