Skip to content

Commit 4197792

Browse files
committed
This should hopefully fix the build.
1 parent 3db7441 commit 4197792

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

builder/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,18 @@ def get_lvgl_version():
174174

175175

176176
def set_mp_version(port):
177+
# TODO: disable this for the time being. I will need to add an include to point to
178+
# the version file
179+
return
180+
177181
mpconfigport = f'lib/micropython/ports/{port}/mpconfigport.h'
178182

179183
with open(mpconfigport, 'rb') as f:
180184
data = f.read().decode('utf-8')
181185

182186
if 'MICROPY_BANNER_NAME_AND_VERSION' not in data:
183187
data += (
184-
'\n\n#include "genhdr/mpversion.h"\n\n'
188+
# '\n\n#include "genhdr/mpversion.h"\n\n'
185189
'\n\n#define MICROPY_BANNER_NAME_AND_VERSION '
186190
f'"LVGL ({get_lvgl_version()}) MicroPython (" MICROPY_VERSION_STRING '
187191
f'") Binding compiled on " MICROPY_BUILD_DATE\n\n'

builder/esp32.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,6 +1028,7 @@ def find_esp32_ports(chip):
10281028
PANICHANDLER_PATH = 'lib/micropython/ports/esp32/panichandler.c'
10291029
MPHALPORT_PATH = 'lib/micropython/ports/esp32/mphalport.c'
10301030
MAIN_PATH = 'lib/micropython/ports/esp32/main.c'
1031+
MAKEFILE_PATH = 'lib/micropython/ports/esp32/Makefile'
10311032

10321033

10331034
if not os.path.exists('micropy_updates/originals/esp32'):
@@ -1272,6 +1273,12 @@ def update_mkrules():
12721273
f.write(data.encode('utf-8'))
12731274

12741275

1276+
def update_makefile():
1277+
data = read_file('esp32', MAKEFILE_PATH)
1278+
data = data.replace('IDF_COMPONENT_MANAGER=0', 'IDF_COMPONENT_MANAGER=1')
1279+
write_file(MAKEFILE_PATH, data)
1280+
1281+
12751282
def update_main():
12761283
# data = read_file('esp32', MAIN_PATH)
12771284

@@ -1349,8 +1356,8 @@ def build_sdkconfig(*args):
13491356
'CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y'
13501357
]
13511358

1352-
if board == 'ESP32_GENERIC_S3':
1353-
base_config.insert(1, 'CONFIG_SPIRAM_XIP_FROM_PSRAM=y')
1359+
# if board == 'ESP32_GENERIC_S3':
1360+
# base_config.insert(1, 'CONFIG_SPIRAM_XIP_FROM_PSRAM=y')
13541361

13551362
if DEBUG:
13561363
base_config.extend([
@@ -1474,6 +1481,7 @@ def compile(*args): # NOQA
14741481
update_mpconfigboard()
14751482
update_mpconfigport()
14761483
update_mkrules()
1484+
update_makefile()
14771485

14781486
copy_micropy_updates('esp32')
14791487

0 commit comments

Comments
 (0)