Skip to content
This repository was archived by the owner on Sep 6, 2023. It is now read-only.

Commit 5311cc7

Browse files
committed
esp32: Update to compile with new ports/esp32 directory structure.
1 parent 3126247 commit 5311cc7

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ports/esp32/Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
include ../py/mkenv.mk
1+
include ../../py/mkenv.mk
22

33
# qstr definitions (must come before including py.mk)
44
QSTR_DEFS = qstrdefsport.h
@@ -12,7 +12,7 @@ MICROPY_PY_BTREE = 1
1212
FROZEN_MPY_DIR = modules
1313

1414
# include py core make definitions
15-
include ../py/py.mk
15+
include $(TOP)/py/py.mk
1616

1717
PORT ?= /dev/ttyUSB0
1818
BAUD ?= 460800
@@ -44,10 +44,10 @@ endif
4444
IDF_VER := $(shell git -C $(ESPIDF) describe)
4545

4646
INC += -I.
47-
INC += -I..
48-
INC += -I../lib/mp-readline
49-
INC += -I../lib/netutils
50-
INC += -I../lib/timeutils
47+
INC += -I$(TOP)
48+
INC += -I$(TOP)/lib/mp-readline
49+
INC += -I$(TOP)/lib/netutils
50+
INC += -I$(TOP)/lib/timeutils
5151
INC += -I$(BUILD)
5252

5353
INC_ESPCOMP += -I$(ESPCOMP)/bootloader_support/include
@@ -698,4 +698,4 @@ $(BUILD)/partitions.bin: $(PART_SRC)
698698

699699
################################################################################
700700

701-
include ../py/mkrules.mk
701+
include $(TOP)/py/mkrules.mk

ports/esp32/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ $ git submodule update
109109

110110
Then to build MicroPython for the ESP32 run:
111111
```bash
112-
$ cd esp32
112+
$ cd ports/esp32
113113
$ make
114114
```
115115
This will produce binary firmware images in the `build/` subdirectory

0 commit comments

Comments
 (0)