# # SPDX-License-Identifier: GPL-2.0 # # Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com # # This file is a part of the Armbian Build Framework # https://github.com/armbian/build/ # # 'common.conf' is already sourced when this arch is sourced. declare -g ARCH='arm64' declare -g ARCHITECTURE='arm64' declare -g KERNEL_SRC_ARCH='arm64' declare -g QEMU_BINARY='qemu-aarch64-static' # Linux root has a different Type-UUID for every architecture # See https://uapi-group.org/specifications/specs/discoverable_partitions_specification/ declare -g PARTITION_TYPE_UUID_ROOT="B921B045-1DF0-41C3-AF44-4C6F280D3FAE" # "Linux root (ARM-64)" # Defaults, if not set by board or family. declare -g KERNEL_IMAGE_TYPE="${KERNEL_IMAGE_TYPE:-"Image"}" declare -g KERNEL_INSTALL_TYPE="${KERNEL_INSTALL_TYPE:-"install"}" declare -g NAME_KERNEL="${NAME_KERNEL:-"Image"}" declare -g NAME_INITRD="${NAME_INITRD:-"uInitrd"}" declare -g ATF_COMPILER="${ATF_COMPILER:-"aarch64-linux-gnu-"}" declare -g KERNEL_COMPILER="${KERNEL_COMPILER:-"aarch64-linux-gnu-"}" declare -g UBOOT_COMPILER="${UBOOT_COMPILER:-"aarch64-linux-gnu-"}" declare -g INITRD_ARCH="${INITRD_ARCH:-"arm64"}" if [[ $ATF_COMPILE != "no" ]]; then # @TODO: rpardini: This shouldn't be here. Who uses this default? Let's move it to family code. declare -g ATFSOURCE="${ATFSOURCE:-"https://github.com/ARM-software/arm-trusted-firmware"}" declare -g ATFDIR="${ATFDIR:-"arm-trusted-firmware"}" declare -g ATFBRANCH="${ATFBRANCH:-"commit:af220ebbe467aa580e6b9ba554676f78ffec930f"}" else display_alert "arch code" "ATF_COMPILE is 'no'" "debug" fi # IMPORTANT - Prevents ~5x slowdown caused by CVE-2023-4039 patchset, when # emulating ARM64 software via qemu. Has no effect when run on native ARM64. declare -gx QEMU_CPU="cortex-a53" true # make sure to exit with 0 status; this protects against shortcircuits etc above.