1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-20 05:18:08 +00:00

build(core): fix build for GCC13

we need to cherry-pick two commits into the micropython submodule, and
adapt one of the fixes
This commit is contained in:
matejcik 2024-07-09 11:01:58 +02:00 committed by matejcik
parent 25cb005693
commit d82d5a1fe5
2 changed files with 3 additions and 3 deletions

View File

@ -682,9 +682,9 @@ MP_NOINLINE int main_(int argc, char **argv) {
#if !MICROPY_VFS
#ifdef TREZOR_EMULATOR_FROZEN
uint mp_import_stat(const char *path) { return MP_IMPORT_STAT_NO_EXIST; }
mp_import_stat_t mp_import_stat(const char *path) { return MP_IMPORT_STAT_NO_EXIST; }
#else
uint mp_import_stat(const char *path) {
mp_import_stat_t mp_import_stat(const char *path) {
struct stat st;
if (stat(path, &st) == 0) {
if (S_ISDIR(st.st_mode)) {

2
vendor/micropython vendored

@ -1 +1 @@
Subproject commit 27acb6c49f7dedbe5d60b16b8f64ea6c9de82aae
Subproject commit d2d97062f7ef731109e895760035b4e3e047ad8c