Skip to content

Commit 868b289

Browse files
committed
Add build flags
1 parent 14a2e6d commit 868b289

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

ports/espressif/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,10 @@ CFLAGS += -isystem esp-camera/driver/include
422422
CFLAGS += -isystem esp-camera/conversions/include
423423
endif
424424

425+
ifneq ($(CIRCUITPY_MICROROS),0)
426+
CFLAGS += -isystem microros-ext/include
427+
endif
428+
425429
ifneq ($(CIRCUITPY_ESPIDF),0)
426430
SRC_ESPIDF := \
427431
$(wildcard common-hal/espidf/*.c) \
@@ -664,6 +668,15 @@ ESP_IDF_COMPONENTS_EXPANDED += $(BUILD)/esp-idf/esp-idf/esp-camera/libesp-camera
664668
#$(error $(ESP_IDF_COMPONENTS_EXPANDED))
665669
endif
666670

671+
ifeq ($(CIRCUITPY_MICROROS),1)
672+
ifeq ($(IDF_TARGET),esp32)
673+
BINARY_BLOBS += microros-ext/esp32/libmicroros.a
674+
else ifeq ($(IDF_TARGET),esp32s2)
675+
BINARY_BLOBS+= microros-ext/esp32s2/libmicroros.a
676+
else ifeq ($(IDF_TARGET),esp32s3)
677+
BINARY_BLOBS += microros-ext/esp32s3/libmicroros.a
678+
endif
679+
667680
ifneq ($(VALID_BOARD),)
668681
# From esp-idf/components/bootloader/Kconfig.projbuild
669682
# 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
@@ -66,6 +66,7 @@ CIRCUITPY_HASHLIB ?= 1
6666
CIRCUITPY_I2CTARGET ?= 0
6767
CIRCUITPY_MAX3421E ?= 1
6868
CIRCUITPY_MEMORYMAP ?= 1
69+
CIRCUITPY_MICROROS ?= 0
6970
CIRCUITPY_NVM ?= 1
7071
CIRCUITPY_PARALLELDISPLAYBUS ?= 1
7172
CIRCUITPY_PS2IO ?= 1

0 commit comments

Comments
 (0)