From ac87dedeb4daef54482d7c799fc38fc10bc6460e Mon Sep 17 00:00:00 2001 From: Patrick Yavitz Date: Mon, 11 Aug 2025 06:21:53 -0400 Subject: [PATCH] SpacemiT: Add edge support to spacemit.conf Signed-off-by: Patrick Yavitz --- config/sources/families/spacemit.conf | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/config/sources/families/spacemit.conf b/config/sources/families/spacemit.conf index 63bdecac19..9677c6f7bc 100644 --- a/config/sources/families/spacemit.conf +++ b/config/sources/families/spacemit.conf @@ -11,17 +11,17 @@ declare -g ARCH="riscv64" declare -g LINUXFAMILY="spacemit" declare -g GOVERNOR="performance" -# Arm Trusted Firmware +# OpenSBI declare -g ATF_USE_GCC="> 8.0" declare -g ATF_COMPILER="riscv64-linux-gnu-" declare -g ATFSOURCE="https://gitee.com/bianbu-linux/opensbi.git" declare -g ATFDIR="opensbi" -declare -g ATFBRANCH="tag:k1-bl-v2.1-release" +declare -g ATFBRANCH="tag:k1-bl-v2.2-release" declare -g ATF_TARGET_MAP="PLATFORM_DEFCONFIG=k1_defconfig PLATFORM=generic ;;build/platform/generic/firmware/fw_dynamic.itb" # U-Boot declare -g BOOTSOURCE="https://gitee.com/bianbu-linux/uboot-2022.10.git" -declare -g BOOTBRANCH="${BOOTBRANCH_BOARD:-"tag:k1-bl-v2.1-release"}" +declare -g BOOTBRANCH="${BOOTBRANCH_BOARD:-"tag:k1-bl-v2.2-release"}" declare -g BOOTDIR='u-boot-spacemit' declare -g BOOTPATCHDIR="${BOOTPATCHDIR:-"legacy/u-boot-spacemit-k1"}" declare -g UBOOT_TARGET_MAP=";;bootinfo_emmc.bin FSBL.bin u-boot.itb fw_dynamic.itb" @@ -36,6 +36,13 @@ case "${BRANCH}" in declare -g KERNEL_MAJOR_MINOR="6.6" declare -g LINUXCONFIG="linux-${LINUXFAMILY}-current" ;; + edge) + declare -g KERNELSOURCE="https://github.com/jmontleon/linux-bianbu.git" + declare -g KERNELBRANCH="branch:linux-6.16.y" + declare -g EXTRAWIFI="no" # WiFi drivers are already included in the kernel + declare -g KERNEL_MAJOR_MINOR="6.16" + declare -g LINUXCONFIG="linux-${LINUXFAMILY}-edge" + ;; esac function custom_kernel_config__spacemit_k1_firmware() {