Skip to content

Commit

Permalink
c_modules: Add mimxrt support.
Browse files Browse the repository at this point in the history
  • Loading branch information
pi-anl committed Jan 31, 2025
1 parent 3ac48fc commit 6c5a0f5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions micropython.mk
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@ FROZEN_MANIFEST += $(LVGL_BINDING_DIR)/manifest.py
# Per-port Support

MICROPY_PORT = $(notdir $(CURDIR))
$(info MICROPY_PORT: $(MICROPY_PORT))

ifeq ($(MICROPY_PORT),mimxrt)
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

$(BUILD)/$(MOD_DIRNAME)/lvgl/src/draw/nxp/pxp/lv_draw_pxp.o: CFLAGS_USERMOD += -Wno-error=unused-variable
$(BUILD)/$(MOD_DIRNAME)/lvgl/src/draw/nxp/pxp/lv_draw_pxp_img.o: CFLAGS_USERMOD += -Wno-error=float-conversion

endif

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

0 comments on commit 6c5a0f5

Please sign in to comment.