llext: option to preserve EDK folder

Add an option to preserve the EDK folder, instead of deleting it after
creating the archive. This can simplify test scripting which can now
avoid immediately uncompressing the archive when compiling an
extension.

If this option is enabled, default to the much faster `.tar.Z` archive
format, since the compression ratio of the archive is not important.

Signed-off-by: Jordan Yates <jordan@embeint.com>
This commit is contained in:
Jordan Yates
2025-10-21 22:05:25 +10:00
committed by Anas Nashif
parent aee2604d37
commit b4a8035433
2 changed files with 9 additions and 3 deletions

View File

@@ -281,4 +281,6 @@ file(ARCHIVE_CREATE
${llext_edk_format}
)
file(REMOVE_RECURSE ${llext_edk})
if(NOT CONFIG_LLEXT_EDK_PRESERVE_INPUT_FOLDER)
file(REMOVE_RECURSE ${llext_edk})
endif()

View File

@@ -217,8 +217,9 @@ config LLEXT_EDK_NAME
instance, the default name, "llext-edk", becomes LLEXT_EDK_INSTALL_DIR.
choice LLEXT_EDK_FORMAT
prompt "EDK compression and output format"
default LLEXT_EDK_FORMAT_TAR_XZ
prompt "EDK compression and output format"
default LLEXT_EDK_FORMAT_TAR_ZSTD if LLEXT_EDK_PRESERVE_INPUT_FOLDER
default LLEXT_EDK_FORMAT_TAR_XZ
config LLEXT_EDK_FORMAT_TAR_XZ
bool ".tar.xz"
@@ -248,4 +249,7 @@ config LLEXT_EDK_USERSPACE_ONLY
to be used by userspace only extensions, this option will make EDK stubs
not contain the routing code, and only generate the userspace one.
config LLEXT_EDK_PRESERVE_INPUT_FOLDER
bool "Don't delete the EDK source folder"
endif