summaryrefslogtreecommitdiffstats
path: root/core/modules/vbox-src
diff options
context:
space:
mode:
authorSimon Rettberg2022-11-10 11:55:34 +0100
committerSimon Rettberg2022-11-10 11:55:34 +0100
commit3938bc03350dd81e819aa8f70fbec569ccf42b43 (patch)
tree3dfd4c41c416387d4f62c96f56d279e1326ebdb8 /core/modules/vbox-src
parent[vbox-src] Make vbox-env script more robust (diff)
downloadmltk-3938bc03350dd81e819aa8f70fbec569ccf42b43.tar.gz
mltk-3938bc03350dd81e819aa8f70fbec569ccf42b43.tar.xz
mltk-3938bc03350dd81e819aa8f70fbec569ccf42b43.zip
[vbox-src] Update to VirtualBox 7.0.2
Diffstat (limited to 'core/modules/vbox-src')
-rw-r--r--core/modules/vbox-src/module.build15
-rw-r--r--core/modules/vbox-src/module.conf.ubuntu2
2 files changed, 15 insertions, 2 deletions
diff --git a/core/modules/vbox-src/module.build b/core/modules/vbox-src/module.build
index 18d9fcfc..a1acc5d0 100644
--- a/core/modules/vbox-src/module.build
+++ b/core/modules/vbox-src/module.build
@@ -5,6 +5,7 @@ vbox_build_id() {
echo "$REQUIRED_VBOX_VERSION"
gcc --version 2>&1
echo "${TARGET_KERNEL_LONG}"
+ echo "2" # incrase this in case something relevant changes in this build script
grep -E '^(# )?CONFIG_' "${KERNEL_HEADERS_DIR}/.config"
} | md5sum | cut -c1-32
}
@@ -69,10 +70,18 @@ build() (
--disable-java \
--disable-python \
--disable-libvpx \
+ --disable-libopus \
+ --enable-vnc \
+ --disable-udptunnel \
--with-linux="${KERNEL_HEADERS_DIR}" \
- --out-path="${VBOX_BUILD_DIR}" \
+ --out-base-dir="${VBOX_BUILD_DIR}" \
|| 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 "<version>/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"
# 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"
@@ -81,6 +90,8 @@ build() (
# copy the LocalConfig.kmk to the build dir to be more LSB-compliant
cp "${MODULE_DIR}/LocalConfig.kmk" "${VBOX_BUILD_DIR}" || \
perror "Failed to cp LocalConfig.kmk to build dir"
+ cp "${MODULE_DIR}/LocalConfig.kmk" "${VBOX_BUILD_DIR}/../" || \
+ perror "Failed to cp LocalConfig.kmk to build/../ dir"
kmk -j "$num" all || perror "Failed to execute 'kmk'."
# check the generated build directory, use BUILD_PLATFORM_ARCH defined in env.sh
diff --git a/core/modules/vbox-src/module.conf.ubuntu b/core/modules/vbox-src/module.conf.ubuntu
index 835b926d..0d929990 100644
--- a/core/modules/vbox-src/module.conf.ubuntu
+++ b/core/modules/vbox-src/module.conf.ubuntu
@@ -4,6 +4,7 @@ REQUIRED_INSTALLED_PACKAGES="
makeself
nasm
genisoimage
+ glslang-tools
libcurl4-openssl-dev
libcap-dev
libdevmapper-dev
@@ -18,6 +19,7 @@ REQUIRED_INSTALLED_PACKAGES="
libopus-dev
usbutils
xsltproc
+ yasm
"
# These are required for building 32-bit guest additions on 64-bit systems
REQUIRED_INSTALLED_PACKAGES_X64_X86="