From 9120e0c3b81e8d9fb8306a176bc648299da28a72 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 31 Mar 2023 16:04:45 +0200 Subject: [vbox-src] Fix kernel version variable name --- core/modules/vbox-src/module.build | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/modules/vbox-src') diff --git a/core/modules/vbox-src/module.build b/core/modules/vbox-src/module.build index 84055470..bcf85f9a 100644 --- a/core/modules/vbox-src/module.build +++ b/core/modules/vbox-src/module.build @@ -77,10 +77,10 @@ build() ( || perror "'configure' failed." # Newer version SUCK because they ignore --with-linux and require KERN_DIR to be set, # and forthermode require it to end in "/build", so we need to create a symlink *facepalm* - mkdir -p "kernel/${KERNEL_VERSION_LONG}" - ln -s "${KERNEL_HEADERS_DIR}" "kernel/${KERNEL_VERSION_LONG}/build" \ - || perror "Kernel symlink fail ('${KERNEL_HEADERS_DIR}' <- 'kernel/${KERNEL_VERSION_LONG}/build')" - export KERN_DIR="$( readlink -f "kernel" )/${KERNEL_VERSION_LONG}/build" + mkdir -p "kernel/${TARGET_KERNEL_LONG}" + ln -nfs "${KERNEL_HEADERS_DIR}" "kernel/${TARGET_KERNEL_LONG}/build" \ + || perror "Kernel symlink fail ('${KERNEL_HEADERS_DIR}' <- 'kernel/${TARGET_KERNEL_LONG}/build')" + export KERN_DIR="$( readlink -f "kernel" )/${TARGET_KERNEL_LONG}/build" # Limit job count - can easily OOM num="$( awk '$1 == "MemTotal:" { print int(0.25 + $2 / (1024*1024)) }' /proc/meminfo )" (( num > CPU_CORES )) && num="$CPU_CORES" -- cgit v1.2.3-55-g7522