-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
85 lines (67 loc) · 1.78 KB
/
Makefile
File metadata and controls
85 lines (67 loc) · 1.78 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
#
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
# project subdirectory.
#
PROJECT_NAME := OpenMic
SUFFIX := $(shell components/ESP32-RevK/buildsuffix)
export SUFFIX
all: main/settings.h
@echo Make: build/$(PROJECT_NAME)$(SUFFIX).bin
@idf.py build
@cp build/$(PROJECT_NAME).bin $(PROJECT_NAME)$(SUFFIX).bin
@cp build/bootloader/bootloader.bin $(PROJECT_NAME)$(SUFFIX)-bootloader.bin
@cp build/ota_data_initial.bin $(PROJECT_NAME)$(SUFFIX)-ota_data_initial.bin
@cp build/partition_table/partition-table.bin $(PROJECT_NAME)$(SUFFIX)-partition-table.bin
@echo Done: build/$(PROJECT_NAME)$(SUFFIX).bin
beta:
-git pull
-git submodule update --recursive
-git commit -a
@make set
cp ${PROJECT_NAME}*.bin release/beta
git commit -a -m betarelease
git push
issue:
-git pull
-git commit -a
cp -f release/beta/$(PROJECT_NAME)*.bin release
-git commit -a -m Release
-git push
image:
esptool.py -b 460800 read_flash 0 0x400000 s3.bin
set: s3
main/settings.h: components/ESP32-RevK/revk_settings main/settings.def components/*/settings.def
components/ESP32-RevK/revk_settings $^
components/ESP32-RevK/revk_settings: components/ESP32-RevK/revk_settings.c
make -C components/ESP32-RevK
n8:
components/ESP32-RevK/setbuildsuffix -S3-MINI-N8
@make
s3:
components/ESP32-RevK/setbuildsuffix -S3-MINI-N4-R2
@make
pico:
components/ESP32-RevK/setbuildsuffix -S1-PICO
@make
wroom:
components/ESP32-RevK/setbuildsuffix -S1
@make
solo:
components/ESP32-RevK/setbuildsuffix -S1-SOLO
@make
flash:
idf.py flash
monitor:
idf.py monitor
clean:
idf.py clean
menuconfig:
idf.py menuconfig
pull:
git pull
git submodule update --recursive
update:
-git pull
-git commit -a
git submodule update --init --recursive --remote
-git commit -a -m "Library update"