diff options
| author | Evan Lojewski <github@meklort.com> | 2019-04-03 20:55:12 -0600 |
|---|---|---|
| committer | Evan Lojewski <github@meklort.com> | 2019-04-03 20:55:12 -0600 |
| commit | ef55c3b6ecf7bbd4e35fb982b51601a5800ad1fa (patch) | |
| tree | 0a90def04244b5336debec0c1e571b40b9fb340a /cmake | |
| parent | d864aaff9a2a58e3e180824389cff21f38669186 (diff) | |
| download | bcm5719-ortega-ef55c3b6ecf7bbd4e35fb982b51601a5800ad1fa.tar.gz bcm5719-ortega-ef55c3b6ecf7bbd4e35fb982b51601a5800ad1fa.zip | |
Add initial ape loade rbinary to allow the bcmregtool to read/write arbitrary ape memory and to bootloader ape payloads.
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/arm.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmake/arm.cmake b/cmake/arm.cmake index c63eea5..b27e1cf 100644 --- a/cmake/arm.cmake +++ b/cmake/arm.cmake @@ -65,6 +65,15 @@ function(arm_add_executable target) COMMAND elf2ape -i ${target} -o ${target}.bin BYPRODUCTS ${target}.bin DEPENDS elf2ape) + + add_custom_command( + OUTPUT ${target}.c + COMMAND xxd -i ${target}.bin ${target}.c + DEPENDS ${target} + VERBATIM) + + # Add host binary + add_library(${target}-binary EXCLUDE_FROM_ALL ${target}.c) endfunction(arm_add_executable) # ARM-specific libraries |

