build_mpos.sh: apply I2C patch for lvgl_micropython / esp-idf

This commit is contained in:
Thomas Farstrike
2025-11-23 12:03:02 +01:00
parent 8b099ac88b
commit a16df1c026
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
--- lib/esp-idf/components/driver/i2c/i2c.c.orig 2025-11-23 11:54:37.321320078 +0100
+++ lib/esp-idf/components/driver/i2c/i2c.c 2025-11-23 11:54:54.681590547 +0100
--- lvgl_micropython/lib/esp-idf/components/driver/i2c/i2c.c.orig 2025-11-23 11:54:37.321320078 +0100
+++ lvgl_micropython/lib/esp-idf/components/driver/i2c/i2c.c 2025-11-23 11:54:54.681590547 +0100
@@ -1715,8 +1715,8 @@
// So if the new I2C driver is not linked in, then `i2c_acquire_bus_handle()` should be NULL at runtime.
extern __attribute__((weak)) esp_err_t i2c_acquire_bus_handle(int port_num, void *i2c_new_bus, int mode);
+2
View File
@@ -70,6 +70,8 @@ echo "Symlinking secp256k1-embedded-ecdh for unix and macOS builds..."
ln -sf ../../secp256k1-embedded-ecdh "$codebasedir"/lvgl_micropython/ext_mod/secp256k1-embedded-ecdh
echo "Symlinking c_mpos for unix and macOS builds..."
ln -sf ../../c_mpos "$codebasedir"/lvgl_micropython/ext_mod/c_mpos
echo "Applying lvgl_micropython i2c patch..."
patch -p0 --forward < "$codebasedir"/patches/i2c_ng.patch
echo "Refreshing freezefs..."
"$codebasedir"/scripts/freezefs_mount_builtin.sh