Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit d6d22f2

Browse files
authored
Specify input format for .options_log (#65)
For some reason, the wrapping SDK build system does not know about the input format for the .options_log file. Therefore, we make this explicit by including a flag that specifies the options_log as raw binary. This has the desired effect of copying the configuration options into the final executable. I also propose bumping the Eyrie release to v1.2.1 after this
1 parent b269857 commit d6d22f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sys/CMakeLists.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ add_dependencies(eyrie-build rt_linkscript)
1313

1414
add_custom_target(eyrie-rt ALL
1515
DEPENDS options_log eyrie-build
16-
COMMAND ${CMAKE_OBJCOPY} --add-section .options_log=${CMAKE_BINARY_DIR}/.options_log
16+
COMMAND ${CMAKE_OBJCOPY} -I binary
17+
--add-section .options_log=${CMAKE_BINARY_DIR}/.options_log
1718
--set-section-flags .options_log=noload,readonly
1819
${CMAKE_CURRENT_BINARY_DIR}/eyrie-build)
1920

2021
add_custom_command(TARGET eyrie-rt POST_BUILD
2122
COMMAND cp ${CMAKE_CURRENT_BINARY_DIR}/eyrie-build ${CMAKE_SOURCE_DIR}/eyrie-rt || true
22-
COMMAND cp ${CMAKE_BINARY_DIR}/.options_log ${CMAKE_SOURCE_DIR}/.options_log || true)
23+
COMMAND cp ${CMAKE_BINARY_DIR}/.options_log ${CMAKE_SOURCE_DIR}/.options_log || true)

0 commit comments

Comments
 (0)