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 Jul 26, 2022
1 parent 45c2d6e commit d6eafa1
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 @@ -169,10 +169,8 @@ function(DefineCAmkESVMFileServer)
list(APPEND CPIO_FILES "${CPIO_FILE}")
endforeach()

# Build CPIO archive. Unfortunately MakeCPIO() expect a plain file name an
# can't take a path, so we can create the archive in BIN_DIR to keep the
# root folder clean.
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 d6eafa1

Please sign in to comment.