forked from verybadsoldier/esp_rgbww_firmware
-
Notifications
You must be signed in to change notification settings - Fork 0
/
q
74 lines (60 loc) · 2.07 KB
/
q
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
COMPONENT_SEARCH_DIRS := $(PROJECT_DIR)/Components
COMPONENT_DEPENDS += MDNS RGBWWLed
ARDUINO_LIBRARIES := RGBWWLed ArduinoJson6 OtaNetwork
#HWCONFIG := two-spiffs-two-roms
HWCONFIG := old_layout
# These are defined in hardware config or no longer required
# SPI_SIZE = 4M
# SPIFF_SIZE ?= 786432 #~768KB spiffs size
# RBOOT_SPIFFS_0 = 0x100000
# RBOOT_SPIFFS_1 = 0x300000
# RBOOT_BIG_FLASH = 1
#### SPIFFS options ####
# folder with files to include
SPIFF_FILES = spiffs
#### rBoot options ####
# use rboot build mode
RBOOT_ENABLED = 1
# enable tmp rom switching
RBOOT_RTC_ENABLED = 1
# two rom mode (where two roms sit in the same 1mb block of flash)
RBOOT_TWO_ROMS = 0
RBOOT_BIG_FLASH = 1
ENABLE_CUSTOM_PWM = 0
#ENABLE_CUSTOM_PWM = 0
//COM_SPEED = 230400
//COM_SPEED = 460800
//COM_SPEED = 115200
COM_SPEED = 921600
//COM_SPEED = 2000000
COM_PORT=/dev/ttyUSB2
//COM_PORT=/dev/ttyACM0
#usb-1a86_USB2.0-Serial-if00-port0
#usb-1a86_USB_Single_Serial_5647014434-if00
#usb-Silicon_Labs_CP2104_USB_to_UART_Bridge_Controller_01A7B447-if00-port0
CUSTOM_TARGETS += check_versions
#### GIT VERSION Information #####
GIT_VERSION = $(shell git describe --abbrev=4 --dirty --always --tags)"-["$(shell git rev-parse --abbrev-ref HEAD)"]"
GIT_DATE = $(firstword $(shell git --no-pager show --date=short --format="%ad" --name-only))
WEBAPP_VERSION = `cat $(PROJECT_DIR)/spiffs/VERSION`
USER_CFLAGS = -DGITVERSION=\"$(GIT_VERSION)\" -DGITDATE=\"$(GIT_DATE)\" -DWEBAPP_VERSION=\"$(WEBAPP_VERSION)\" -DPARTLAYOUT=\"$(PART_LAYOUT)\"
# include partition file for initial OTA
EXTRA_LDFLAGS := $(call Wrap,user_pre_init)
USER_CFLAGS += -DPARTITION_TABLE_OFFSET=$(PARTITION_TABLE_OFFSET)
.PHONY: check_versions
check_versions:
ifndef GIT_VERSION
$(info no GIT_VERSION available, using unknown)
GIT_VERSION = "unknown"
endif
ifndef GIT_DATE
$(info no GIT_DATE available, using unknown)
GIT_DATE = "unknown"
endif
ifndef WEBAPP_VERSION
$(error can not find webapp/VERSION file - please ensure the source code is complete)
endif
ifndef PART_LAYOUT
$(info partition layout not defined, defaulting to v1)
PART_LAYOUT=v1
endif