Skip to content

Commit a16df1c

Browse files
build_mpos.sh: apply I2C patch for lvgl_micropython / esp-idf
1 parent 8b099ac commit a16df1c

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

patches/i2c_ng.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
--- lib/esp-idf/components/driver/i2c/i2c.c.orig 2025-11-23 11:54:37.321320078 +0100
2-
+++ lib/esp-idf/components/driver/i2c/i2c.c 2025-11-23 11:54:54.681590547 +0100
1+
--- lvgl_micropython/lib/esp-idf/components/driver/i2c/i2c.c.orig 2025-11-23 11:54:37.321320078 +0100
2+
+++ lvgl_micropython/lib/esp-idf/components/driver/i2c/i2c.c 2025-11-23 11:54:54.681590547 +0100
33
@@ -1715,8 +1715,8 @@
44
// So if the new I2C driver is not linked in, then `i2c_acquire_bus_handle()` should be NULL at runtime.
55
extern __attribute__((weak)) esp_err_t i2c_acquire_bus_handle(int port_num, void *i2c_new_bus, int mode);

scripts/build_mpos.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ echo "Symlinking secp256k1-embedded-ecdh for unix and macOS builds..."
7070
ln -sf ../../secp256k1-embedded-ecdh "$codebasedir"/lvgl_micropython/ext_mod/secp256k1-embedded-ecdh
7171
echo "Symlinking c_mpos for unix and macOS builds..."
7272
ln -sf ../../c_mpos "$codebasedir"/lvgl_micropython/ext_mod/c_mpos
73+
echo "Applying lvgl_micropython i2c patch..."
74+
patch -p0 --forward < "$codebasedir"/patches/i2c_ng.patch
7375

7476
echo "Refreshing freezefs..."
7577
"$codebasedir"/scripts/freezefs_mount_builtin.sh

0 commit comments

Comments
 (0)