8000 esp32: Merge the per-SoC main components, remove linker workaround. by projectgus · Pull Request #16865 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content

esp32: Merge the per-SoC main components, remove linker workaround. #16865

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions ports/esp32/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,5 @@ set(SDKCONFIG_DEFAULTS ${CMAKE_BINARY_DIR}/sdkconfig.combined)
# Include main IDF cmake file.
include($ENV{IDF_PATH}/tools/cmake/project.cmake)

# Set the location of the main component for the project (one per target).
list(APPEND EXTRA_COMPONENT_DIRS main_${IDF_TARGET})

# Define the project.
project(micropython)
2 changes: 1 addition & 1 deletion ports/esp32/boards/sdkconfig.spiram
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ CONFIG_SPIRAM_MALLOC_ALWAYSINTERNAL=8192
# to PSRAM bug workarounds. Apply some options to reduce the firmware size.
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
CONFIG_COMPILER_OPTIMIZATION_CHECKS_SILENT=y
# CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y # Workaround required: see main_esp32/linker.lf
CONFIG_RINGBUF_PLACE_FUNCTIONS_INTO_FLASH=y
CONFIG_FREERTOS_PLACE_FUNCTIONS_INTO_FLASH=y
CONFIG_FREERTOS_PLACE_SNAPSHOT_FUNS_INTO_FLASH=y
14 changes: 12 additions & 2 deletions ports/esp32/esp32_common.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,18 @@ if(NOT MICROPY_PORT_DIR)
get_filename_component(MICROPY_PORT_DIR ${MICROPY_DIR}/ports/esp32 ABSOLUTE)
endif()

# RISC-V specific inclusions
if(CONFIG_IDF_TARGET_ARCH_RISCV)
list(APPEND MICROPY_SOURCE_LIB ${MICROPY_DIR}/shared/runtime/gchelper_generic.c)
list(APPEND IDF_COMPONENTS riscv)
endif()

if(NOT DEFINED MICROPY_PY_TINYUSB)
if(CONFIG_IDF_TARGET_ESP32S2 OR CONFIG_IDF_TARGET_ESP32S3)
set(MICROPY_PY_TINYUSB ON)
endif()
endif()

# Include core source components.
include(${MICROPY_DIR}/py/py.cmake)

Expand Down Expand Up @@ -181,8 +193,6 @@ list(APPEND IDF_COMPONENTS
# Provide the default LD fragment if not set
if (MICROPY_USER_LDFRAGMENTS)
set(MICROPY_LDFRAGMENTS ${MICROPY_USER_LDFRAGMENTS})
else()
set(MICROPY_LDFRAGMENTS linker.lf)
endif()

# Register the main IDF component.
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## IDF Component Manager Manifest File
dependencies:
espressif/mdns: "~1.1.0"
espressif/esp_tinyusb:
rules:
- if: "target in [esp32s2, esp32s3]"
version: "~1.0.0"
idf:
version: ">=5.2.0"
39 changes: 0 additions & 39 deletions ports/esp32/main_esp32/linker.lf

This file was deleted.

14 changes: 0 additions & 14 deletions ports/esp32/main_esp32c3/CMakeLists.txt

This file was deleted.

5 changes: 0 additions & 5 deletions ports/esp32/main_esp32c3/idf_component.yml

This file was deleted.

1 change: 0 additions & 1 deletion ports/esp32/main_esp32c3/linker.lf

This file was deleted.

14 changes: 0 additions & 14 deletions ports/esp32/main_esp32c6/CMakeLists.txt

This file was deleted.

5 changes: 0 additions & 5 deletions ports/esp32/main_esp32c6/idf_component.yml

This file was deleted.

1 change: 0 additions & 1 deletion ports/esp32/main_esp32c6/linker.lf

This file was deleted.

13 changes: 0 additions & 13 deletions ports/esp32/main_esp32s2/CMakeLists.txt

This file was deleted.

6 changes: 0 additions & 6 deletions ports/esp32/main_esp32s2/idf_component.yml

This file was deleted.

1 change: 0 additions & 1 deletion ports/esp32/main_esp32s2/linker.lf

This file was deleted.

13 changes: 0 additions & 13 deletions ports/esp32/main_esp32s3/CMakeLists.txt

This file was deleted.

6 changes: 0 additions & 6 deletions ports/esp32/main_esp32s3/idf_component.yml

This file was deleted.

1 change: 0 additions & 1 deletion ports/esp32/main_esp32s3/linker.lf

This file was deleted.

Loading
0