Files
build/config/sources/amd64.conf

22 lines
1019 B
Plaintext

export ARCH=amd64 # Debian name $(dpkg-architecture -qDEB_HOST_ARCH)
export ARCHITECTURE=x86_64 # "kernel" arch
export QEMU_BINARY="qemu-x86_64-static" # Installed via 'qemu-user-static'.
export KERNEL_COMPILER=' ' # hack: use single space for host gcc. won't work on arm64 hosts
export KERNEL_USE_GCC=' ' # more hacks.
export KERNEL_IMAGE_TYPE="bzImage" # Passed to kernel's `make`
export KERNEL_BUILD_DTBS="no" # amd64 has no DTBs. that I know of.
#export INITRD_ARCH=amd64 # Used by u-boot for mkimage in initramfs. No u-boot for x86 yet.
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
fi
true # don't fail due to conditional above.