mirror of
https://github.com/armbian/build
synced 2025-09-24 19:47:06 +07:00
* Add / modify (c) in bash scripts Signed-off-by: Igor <igor@armbian.com> * Add (c) to the source config files --------- Signed-off-by: Igor <igor@armbian.com>
38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
#
|
|
# 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.
|
|
|
|
export ARCH='armhf'
|
|
export ARCHITECTURE='arm'
|
|
export KERNEL_SRC_ARCH='arm'
|
|
export QEMU_BINARY='qemu-arm-static'
|
|
export NAME_KERNEL='zImage'
|
|
export NAME_INITRD='uInitrd'
|
|
export INITRD_ARCH='arm'
|
|
export KERNEL_IMAGE_TYPE='Image'
|
|
|
|
[[ -z $KERNEL_COMPILER ]] && KERNEL_COMPILER='arm-linux-gnueabihf-'
|
|
[[ -z $UBOOT_USE_GCC ]] && UBOOT_USE_GCC='> 8.0'
|
|
|
|
if [ "$(uname -m)" = "aarch64" ]; then
|
|
[[ -z $UBOOT_COMPILER ]] && UBOOT_COMPILER='arm-linux-gnueabihf-'
|
|
[[ -z $KERNEL_USE_GCC ]] && KERNEL_USE_GCC='> 8.0'
|
|
else
|
|
# > 9.2 https://armbian.atlassian.net/browse/AR-557
|
|
#[[ -z $KERNEL_COMPILER ]] && KERNEL_COMPILER="arm-none-linux-gnueabihf-"
|
|
[[ -z $UBOOT_COMPILER ]] && UBOOT_COMPILER='arm-none-linux-gnueabihf-'
|
|
[[ -z $KERNEL_USE_GCC ]] && KERNEL_USE_GCC='< 9.2'
|
|
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-/-}"
|
|
|
|
true # make sure to exit with 0 status; this protects against shortcircuits etc above.
|