This can be done from the command line. Here is the command to build ESP32 + LVGL which is compatible with ILI9341 driver: make -C mpy-cross make -C ports/esp32 LV_CFLAGS="-DLV_COLOR_DEPTH=16" ...