diff options
author | Simon Rettberg | 2021-10-26 11:12:47 +0200 |
---|---|---|
committer | Your Name | 2021-10-26 11:12:47 +0200 |
commit | 069028acf1e5dee0f0add848f74a0231dc92089d (patch) | |
tree | 4b65f75f6a79140b118899380fbb8a056569d214 /core/modules/kernel-vanilla | |
parent | Add CONFIG_NFS_CACHE global option, use for kernel (diff) | |
download | mltk-069028acf1e5dee0f0add848f74a0231dc92089d.tar.gz mltk-069028acf1e5dee0f0add848f74a0231dc92089d.tar.xz mltk-069028acf1e5dee0f0add848f74a0231dc92089d.zip |
[vbox] Cache build on NFS
Diffstat (limited to 'core/modules/kernel-vanilla')
-rw-r--r-- | core/modules/kernel-vanilla/module.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/kernel-vanilla/module.build b/core/modules/kernel-vanilla/module.build index cbe1dfb4..8035de8c 100644 --- a/core/modules/kernel-vanilla/module.build +++ b/core/modules/kernel-vanilla/module.build @@ -108,10 +108,10 @@ build() { make $MAKEFLAGS ${CC:+CC=${CC}} || perror "make failed." touch "$bf" if nfs_cache_avail; then - pinfo "Copying built kernel to NFS cache with id $id" local id tar id="$( kernel_build_id )" tar="${NFS_CACHE_DIR}/cache/${id}.tar.zstd" + pinfo "Copying built kernel to NFS cache with id $id" mkdir -p "$( dirname "$tar" )" tar -C "${MODULE_WORK_DIR}" -c -k ksrc | zstd -T0 -2 -z > "$tar" \ || pwarning "Could not write kernel to NFS cache" |