Skip to content

Commit ec8a9b6

Browse files
committed
c_modules: Add mimxrt support.
1 parent 61cfb7a commit ec8a9b6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

micropython.mk

+9
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,15 @@ FROZEN_MANIFEST += $(LVGL_BINDING_DIR)/manifest.py
6161
# Per-port Support
6262

6363
MICROPY_PORT = $(notdir $(CURDIR))
64+
$(info MICROPY_PORT: $(MICROPY_PORT))
65+
66+
ifeq ($(MICROPY_PORT),mimxrt)
67+
CFLAGS_USERMOD += -DLV_USE_PXP=1 -DLV_USE_DRAW_PXP=1 -DLV_USE_GPU_NXP_PXP=1 -DLV_USE_GPU_NXP_PXP_AUTO_INIT=1
68+
69+
$(BUILD)/$(MOD_DIRNAME)/lvgl/src/draw/nxp/pxp/lv_draw_pxp.o: CFLAGS_USERMOD += -Wno-error=unused-variable
70+
$(BUILD)/$(MOD_DIRNAME)/lvgl/src/draw/nxp/pxp/lv_draw_pxp_img.o: CFLAGS_USERMOD += -Wno-error=float-conversion
71+
72+
endif
6473

6574
ifeq ($(MICROPY_PORT),unix)
6675
# This section only included when building the micropython unix port

0 commit comments

Comments
 (0)