Skip to content

Commit 9b2ba81

Browse files
committed
Add build flags
1 parent 32baa39 commit 9b2ba81

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

ports/espressif/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -436,6 +436,10 @@ CFLAGS += -isystem esp-camera/driver/include
436436
CFLAGS += -isystem esp-camera/conversions/include
437437
endif
438438

439+
ifneq ($(CIRCUITPY_MICROROS),0)
440+
CFLAGS += -isystem microros-ext/include
441+
endif
442+
439443
ifneq ($(CIRCUITPY_ESPIDF),0)
440444
SRC_ESPIDF := \
441445
$(wildcard common-hal/espidf/*.c) \
@@ -674,6 +678,15 @@ ESP_IDF_COMPONENTS_EXPANDED += $(BUILD)/esp-idf/esp-idf/esp-camera/libesp-camera
674678
#$(error $(ESP_IDF_COMPONENTS_EXPANDED))
675679
endif
676680

681+
ifeq ($(CIRCUITPY_MICROROS),1)
682+
ifeq ($(IDF_TARGET),esp32)
683+
BINARY_BLOBS += microros-ext/esp32/libmicroros.a
684+
else ifeq ($(IDF_TARGET),esp32s2)
685+
BINARY_BLOBS+= microros-ext/esp32s2/libmicroros.a
686+
else ifeq ($(IDF_TARGET),esp32s3)
687+
BINARY_BLOBS += microros-ext/esp32s3/libmicroros.a
688+
endif
689+
677690
ifneq ($(VALID_BOARD),)
678691
# From esp-idf/components/bootloader/Kconfig.projbuild
679692
# BOOTLOADER_OFFSET is determined by chip type, based on the ROM bootloader, and is not changeable.

ports/espressif/boards/m5stack_cardputer/mpconfigboard.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CIRCUITPY_ESP_FLASH_MODE = qio
99
CIRCUITPY_ESP_FLASH_FREQ = 80m
1010
CIRCUITPY_ESP_FLASH_SIZE = 8MB
1111
CIRCUITPY_ESPCAMERA = 0
12+
CIRCUITPY_MICROROS = 1
1213

1314
CIRCUITPY_GIFIO = 1
1415
CIRCUITPY_MAX3421E = 0

ports/espressif/mpconfigport.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ CIRCUITPY_HASHLIB ?= 1
6464
CIRCUITPY_I2CTARGET ?= 0
6565
CIRCUITPY_MAX3421E ?= 1
6666
CIRCUITPY_MEMORYMAP ?= 1
67+
CIRCUITPY_MICROROS ?= 0
6768
CIRCUITPY_NVM ?= 1
6869
CIRCUITPY_PARALLELDISPLAYBUS ?= 1
6970
CIRCUITPY_PS2IO ?= 1

0 commit comments

Comments
 (0)