Skip to content

Commit

Permalink
fix(coremark): archive in linker.lf should depend on component name
Browse files Browse the repository at this point in the history
  • Loading branch information
igrr committed Sep 25, 2024
1 parent a0d3bea commit 29ee424
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion coremark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@ set(srcs coremark/core_list_join.c
port/core_portme.c
)

if(NOT CMAKE_BUILD_EARLY_EXPANSION)
configure_file(linker.lf.in ${CMAKE_CURRENT_BINARY_DIR}/linker.lf)
endif()

idf_component_register(SRCS ${srcs}
PRIV_INCLUDE_DIRS port coremark
LDFRAGMENTS linker.lf
LDFRAGMENTS ${CMAKE_CURRENT_BINARY_DIR}/linker.lf
PRIV_REQUIRES esp_timer)

# compile coremark component with -O3 flag (will override the optimization level which is set globally)
Expand Down
2 changes: 1 addition & 1 deletion coremark/idf_component.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: "1.1.0"
version: "1.1.0~1"
description: CoreMark Benchmark
url: https://github.com/espressif/idf-extra-components/tree/master/coremark
issues: https://github.com/espressif/idf-extra-components/issues
Expand Down
2 changes: 1 addition & 1 deletion coremark/linker.lf → coremark/linker.lf.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[mapping:coremark]
archive: libcoremark.a
archive: lib${COMPONENT_NAME}.a
entries:
* (noflash)

0 comments on commit 29ee424

Please sign in to comment.