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 293385c commit 81a19b2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions camkes_vm_helpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -200,10 +200,7 @@ function(DefineCAmkESVMFileServer)
# Build CPIO archive. It implicitly depends on all files in CPIO_FILES,
# which have their own dependencies each from above. So we don't have any
# additional explicit dependencies here.
# Unfortunately MakeCPIO() supports plain file names only, there is no
# support for paths. Archive are created in the root of the built output
# folder. Creating them in BIN_DIR would be much cleaner actually.
set(CPIO_ARCHIVE "${PARAM_INSTANCE}_cpio_archive.o")
set(CPIO_ARCHIVE "${INST_BIN_DIR}/cpio_archive.o")
include(cpio)
MakeCPIO(${CPIO_ARCHIVE} "${CPIO_FILES}")

Expand Down

0 comments on commit 81a19b2

Please sign in to comment.