Skip to content

Commit

Permalink
fix(scripts): fix another lv_version.h use in com.py
Browse files Browse the repository at this point in the history
This com.py still uses lvgl.h instead of lv_version.h , update it.

Signed-off-by: Marek Vasut <marex@denx.de>
  • Loading branch information
Marek Vasut committed Apr 26, 2024
1 parent addc3f0 commit 618dc2a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/release/com.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,11 @@ def update_version(ver):
if path.exists("Kconfig"):
cmd("sed -i -r 's/v[0-9]+\.[0-9]+\.[0-9]+.*/" + ver_str + "/' Kconfig")

if path.exists("lvgl.h"):
define_set("./lvgl.h", "LVGL_VERSION_MAJOR", str(ver[0]))
define_set("./lvgl.h", "LVGL_VERSION_MINOR", str(ver[1]))
define_set("./lvgl.h", "LVGL_VERSION_PATCH", str(ver[2]))
define_set("./lvgl.h", "LVGL_VERSION_INFO", "\"" + ver[3] + "\"")
if path.exists("lv_version.h"):
define_set("./lv_version.h", "LVGL_VERSION_MAJOR", str(ver[0]))
define_set("./lv_version.h", "LVGL_VERSION_MINOR", str(ver[1]))
define_set("./lv_version.h", "LVGL_VERSION_PATCH", str(ver[2]))
define_set("./lv_version.h", "LVGL_VERSION_INFO", "\"" + ver[3] + "\"")

cmd("git commit -am 'Update versions to " + ver_str + "'")

0 comments on commit 618dc2a

Please sign in to comment.