forked from espressif/esp-at
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
35 lines (26 loc) · 1.07 KB
/
Makefile
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
#
# This is a project Makefile. It is assumed the directory this Makefile resides in is a
# project subdirectory.
#
PROJECT_NAME := esp-at
export ESP_AT_PROJECT_PATH := $(PWD)
export IDF_PATH ?= $(ESP_AT_PROJECT_PATH)/esp-idf
export ESP_AT_IMAGE_DIR ?= $(ESP_AT_PROJECT_PATH)/components/fs_image
EXTRA_COMPONENT_DIRS := $(ESP_AT_PROJECT_PATH)/tools/mkfatfs
EXTRA_CFLAGS += -DSDK_GIT=IDF_VER
include $(IDF_PATH)/make/project.mk
factory_bin: build/download.config
$(PYTHON) $(ESP_AT_PROJECT_PATH)/tools/esp32_at_combine.py \
--bin_directory $(ESP_AT_PROJECT_PATH)/build \
--flash_mode $(CONFIG_ESPTOOLPY_FLASHMODE) \
--flash_size $(CONFIG_ESPTOOLPY_FLASHSIZE) \
--flash_speed $(CONFIG_ESPTOOLPY_FLASHFREQ)
patch: build/patch.out
build/patch.out: pppd-idf.patch pppd-lwip.patch
cd esp-idf; git apply -v ../pppd-idf.patch
cd esp-idf/components/lwip/lwip; git apply -v ../../../../pppd-lwip.patch
touch build/patch.out
unpatch:
cd esp-idf; git apply -R -v ../pppd-idf.patch
cd esp-idf/components/lwip/lwip; git apply -R -v ../../../../pppd-lwip.patch
rm -f build/patch.out