make.sh: Install the QEMU helper only once

This needs to be done only once when we initialize the environment.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2024-07-09 10:18:23 +00:00
parent 3a272cfe40
commit 92a2ed67be

View File

@@ -574,6 +574,9 @@ prepareenv() {
export CCACHE_TEMPDIR="/tmp"
export CCACHE_COMPILERCHECK="string:toolchain-${TOOLCHAINVER} ${BUILD_ARCH}"
# Install the QEMU helper
qemu_install_helper
# Remove pre-install list of installed files in case user erase some files before rebuild
rm -f "${BUILD_DIR}/usr/src/lsalr"
@@ -615,9 +618,6 @@ prepareenv() {
}
enterchroot() {
# Install QEMU helper, if needed
qemu_install_helper
local PATH="${TOOLS_DIR}/ccache/bin:/bin:/usr/bin:/sbin:/usr/sbin:${TOOLS_DIR}/sbin:${TOOLS_DIR}/bin"
# Check if we are running in our namespace