* Add initial RISCV support * Add UEFI edge and current kernel configs * Cleanup and adjust packages * Those files were in wrong path * Fix locations * Ubuntu images built * Remove Debian support as its too fragile * Remove Pinta as it doesn't work under riscv * Limitation is only for building images * Remove obsolete switch * Cleanup major arch config files * Support for Docker building
53 lines
2.0 KiB
Bash
53 lines
2.0 KiB
Bash
#!/bin/bash
|
|
|
|
# include common config options
|
|
source "${BASH_SOURCE%/*}/common.conf"
|
|
|
|
export ARCH='arm64'
|
|
export ARCHITECTURE='arm64'
|
|
export QEMU_BINARY='qemu-aarch64-static'
|
|
export NAME_KERNEL='Image'
|
|
export NAME_INITRD='uInitrd'
|
|
export KERNEL_IMAGE_TYPE='Image'
|
|
|
|
|
|
[[ -z $KERNEL_COMPILER ]] && KERNEL_COMPILER="aarch64-linux-gnu-"
|
|
[[ -z $INITRD_ARCH ]] && INITRD_ARCH=arm64
|
|
[[ -z $UBOOT_USE_GCC ]] && UBOOT_USE_GCC='> 8.0'
|
|
|
|
if [ "$(uname -m)" = "aarch64" ]; then
|
|
[[ $ATF_COMPILE != "no" && -z $ATF_COMPILER ]] && ATF_COMPILER="aarch64-linux-gnu-"
|
|
[[ -z $UBOOT_COMPILER ]] && UBOOT_COMPILER="aarch64-linux-gnu-"
|
|
[[ -z $KERNEL_COMPILER ]] && KERNEL_COMPILER="aarch64-linux-gnu-"
|
|
[[ -z $KERNEL_USE_GCC ]] && KERNEL_USE_GCC='> 8.0'
|
|
else
|
|
[[ $ATF_COMPILE != "no" && -z $ATF_COMPILER ]] && ATF_COMPILER="aarch64-none-linux-gnu-"
|
|
[[ -z $UBOOT_COMPILER ]] && UBOOT_COMPILER="aarch64-none-linux-gnu-"
|
|
# > 9.2 https://armbian.atlassian.net/browse/AR-557
|
|
# [[ -z $KERNEL_COMPILER ]] && KERNEL_COMPILER="aarch64-none-linux-gnu-"
|
|
[[ -z $KERNEL_COMPILER ]] && KERNEL_COMPILER="aarch64-linux-gnu-"
|
|
[[ -z $KERNEL_USE_GCC ]] && KERNEL_USE_GCC='< 9.2'
|
|
fi
|
|
|
|
[[ $ATF_COMPILE != "no" && -z $ATFSOURCE ]] && ATFSOURCE='https://github.com/ARM-software/arm-trusted-firmware'
|
|
[[ $ATF_COMPILE != "no" && -z $ATFDIR ]] && ATFDIR='arm-trusted-firmware-sunxi-mainline'
|
|
[[ $ATF_COMPILE != "no" && -z $ATFBRANCH ]] && ATFBRANCH='commit:af220ebbe467aa580e6b9ba554676f78ffec930f'
|
|
[[ $ATF_COMPILE != "no" && -z $ATF_USE_GCC ]] && ATF_USE_GCC='> 8.0'
|
|
|
|
if [ "$(uname -m)" = "aarch64" ]; then
|
|
case "$(lsb_release -sc)" in
|
|
"bullseye" | "focal" | "hirsute" | "impish" | "jammy")
|
|
PKG_PREFIX="qemu-x86_64-static -L /usr/x86_64-linux-gnu "
|
|
;;
|
|
*)
|
|
PKG_PREFIX="qemu-x86_64 -L /usr/x86_64-linux-gnu "
|
|
;;
|
|
esac
|
|
else
|
|
PKG_PREFIX=""
|
|
fi
|
|
|
|
# System toolchains don't have the -none- variant, remove it
|
|
[[ "${SKIP_EXTERNAL_TOOLCHAINS}" == "yes" ]] && UBOOT_COMPILER="${UBOOT_COMPILER//-none-/-}"
|
|
[[ "${SKIP_EXTERNAL_TOOLCHAINS}" == "yes" ]] && ATF_COMPILER="${ATF_COMPILER//-none-/-}"
|