Skip to content

Commit

Permalink
CMake: create cpio archive in folder
Browse files Browse the repository at this point in the history
Do not pollute the root folder.

Signed-off-by: Axel Heider <[email protected]>
  • Loading branch information
Axel Heider committed Mar 23, 2023
1 parent fcc4968 commit 89a742a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions camkes_vm_helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,8 @@ function(DefineCAmkESVMFileServer)
list(APPEND CPIO_FILES "${CPIO_FILE}")
endforeach()

# Build CPIO archive. Unfortunately MakeCPIO() support plain file names only
# and does not support paths. Archive will be created in the built output
# root folder, where using BIN_DIR would be a bit cleaner actually.
set(CPIO_ARCHIVE "${PARAM_INSTANCE}_cpio_archive.o")
# Build CPIO archive.
set(CPIO_ARCHIVE "${INST_BIN_DIR}/cpio_archive.o")
include(cpio)
MakeCPIO(${CPIO_ARCHIVE} "${CPIO_FILES}" DEPENDS "${deps}")

Expand Down

0 comments on commit 89a742a

Please sign in to comment.