build/config/sources/families/rockchip-rk3588.conf

77 lines
2.6 KiB
Plaintext
Raw Permalink Normal View History

#
# 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/
#
source "${BASH_SOURCE%/*}/include/rockchip64_common.inc"
BOOTSOURCE='https://github.com/radxa/u-boot.git'
BOOTBRANCH='branch:next-dev'
BOOTPATCHDIR="legacy/u-boot-radxa-rk3588"
OVERLAY_PREFIX='rockchip-rk3588'
ROCKUSB_BLOB="rk35/rk3588_spl_loader_v1.08.111.bin"
case $BRANCH in
legacy)
BOOTSCRIPT='boot-rk3588-legacy.cmd:boot.cmd'
UBOOT_COMPILER="aarch64-linux-gnu-"
UBOOT_USE_GCC='< 8.0'
BOOTDIR='u-boot-rockchip64'
KERNELDIR='linux-rockchip64'
KERNELSOURCE='https://github.com/armbian/linux-rockchip'
declare -g KERNEL_MAJOR_MINOR="5.10" # Major and minor versions of this kernel.
KERNELBRANCH='branch:rk-5.10-rkr5.1'
KERNELPATCHDIR='rk35xx-legacy'
LINUXFAMILY=rk35xx
;;
edge)
SKIP_BOOTSPLASH="yes"
LINUXFAMILY=rockchip-rk3588
LINUXCONFIG='linux-rockchip-rk3588-'$BRANCH
KERNEL_MAJOR_MINOR="6.6" # Major and minor versions of this kernel.
KERNELBRANCH='tag:v6.6-rc1'
KERNELPATCHDIR='rockchip-rk3588-edge'
;;
midstream)
# A half monster kernel, a cross between sre mainline and downstream rk kernel
SKIP_BOOTSPLASH="yes"
LINUXFAMILY=rockchip-rk3588
LINUXCONFIG='linux-rockchip-rk3588-'$BRANCH
KERNEL_MAJOR_MINOR="6.2" # Major and minor versions of this kernel.
KERNELPATCHDIR='rockchip-rk3588-midstream' # Empty/nonexisting, so zero patches, hopefully
KERNELSOURCE='https://github.com/Googulator/linux-rk3588-midstream.git'
KERNELBRANCH='branch:midstream'
KERNEL_DRIVERS_SKIP+=(driver_rtw88) # This is a 6.2-rcX kernel, while the rtw88 driver patching expects 6.2.0+
;;
collabora)
# Collabora's rk3588, where the action is these days
SKIP_BOOTSPLASH="yes"
LINUXFAMILY=rockchip-rk3588
LINUXCONFIG='linux-rockchip-rk3588-'$BRANCH
KERNEL_MAJOR_MINOR="6.5" # Major and minor versions of this kernel.
KERNELPATCHDIR='rockchip-rk3588-collabora' # Empty/nonexisting, so zero patches, hopefully
KERNELSOURCE='https://gitlab.collabora.com/hardware-enablement/rockchip-3588/linux.git'
KERNELBRANCH='branch:rk3588'
KERNEL_DRIVERS_SKIP+=(driver_rtw88) # This is a custom kernel, while the rtw88 driver patching expects pure mainline
;;
esac
prepare_boot_configuration
function add_host_dependencies__collabora_kernel() {
[[ "${BRANCH}" != "collabora" ]] && return 0
display_alert "Extra deps for collabora kernels" "bsdextrautils" "debug"
export EXTRA_BUILD_DEPS="${EXTRA_BUILD_DEPS} bsdextrautils" # @TODO: convert to array later
}
family_tweaks_bsp() {
:
}