Skip to content

Script to automatically pull LVGL updates #34

@Richard-Stump

Description

@Richard-Stump

Overview

Although updating liblvgl is less cumbersome now that it is removed from the kernel, we still need to do the following to update liblvgl:

  • Copy all the header files from LVLG's repo to include/liblvgl
  • Copy all the source files from LVLG's repo to src/liblvgl
  • Update all the includes in the LVGL files to match the PROS project structure
  • Update include/liblvgl/fonts/lv_font.h to include our custom fonts that llemu depends on

My Proposal

Fixing the font issue:

  1. Store the fonts that llemu depends on in a vector graphics file
  2. On build, the makefile creates the lvgl font.c files
  3. The fonts are declared in a new pros_line.h file so we don't have to add then to lv_font.h

Automated update script:

The script should not run automatically when LVGL updates, since we want to force someone to make sure everything works and builds properly

These are the things I think the script needs to do:

  1. Check the latest release tag on LVGL's repo. If we are up to date, do nothing
  2. Otherwise, clone the repo as a submodule
  3. Copy all the headers to include/libvgl
  4. Copy all the c files to src/liblvgl
  5. Run through all the copied files and update the includes to be absolute and follow the PROS project structure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions