mirror of https://github.com/armbian/build.git
amd64: allow building amd64 on aarch64 with system toolchain
- conditionally add gcc-x86-64-linux-gnu to hostdeps Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
This commit is contained in:
parent
f699a800c6
commit
0c5ee20bb1
|
|
@ -11,3 +11,12 @@ export UBOOT_USE_GCC="none" # required by configuration.sh
|
|||
|
||||
# Default to mainline
|
||||
[[ -z $KERNELSOURCE ]] && KERNELSOURCE=$MAINLINE_KERNEL_SOURCE
|
||||
|
||||
if [[ "$(uname -m)" == "aarch64" ]]; then
|
||||
# Allow building amd64 on aarch64, but using system toolchain only
|
||||
export KERNEL_COMPILER="x86_64-linux-gnu-"
|
||||
export SKIP_EXTERNAL_TOOLCHAINS=yes
|
||||
function add_host_dependencies__add_gcc_for_x86_on_aarch64_system_toolchain() {
|
||||
export EXTRA_BUILD_DEPS="${EXTRA_BUILD_DEPS} gcc-x86-64-linux-gnu"
|
||||
}
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in New Issue