File 0001-Fix-build-issues.patch of Package opensbi

From 8a06aadab79c75ced6d06b63bcfdb70cb811d44a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20L=C3=B6nnegren?= <fredrik.lonnegren@suse.com>
Date: Fri, 27 Feb 2026 13:01:47 +0100
Subject: [PATCH] Fix build issues
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Fredrik Lönnegren <fredrik.lonnegren@suse.com>
---
 include/sbi/sbi_types.h            | 1 -
 platform/generic/configs/defconfig | 3 ++-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/sbi/sbi_types.h b/include/sbi/sbi_types.h
index def88bbad2c3..810f6cf37ce2 100644
--- a/include/sbi/sbi_types.h
+++ b/include/sbi/sbi_types.h
@@ -44,7 +44,6 @@ typedef unsigned long long	uint64_t;
 #error "Unexpected __riscv_xlen"
 #endif
 
-typedef int			bool;
 typedef unsigned long		ulong;
 typedef unsigned long		uintptr_t;
 typedef unsigned long		size_t;
diff --git a/platform/generic/configs/defconfig b/platform/generic/configs/defconfig
index 6366769ef59a..d9d30f057f4b 100644
--- a/platform/generic/configs/defconfig
+++ b/platform/generic/configs/defconfig
@@ -4,7 +4,8 @@ CONFIG_PLATFORM_RENESAS_RZFIVE=y
 CONFIG_PLATFORM_SIFIVE_FU540=y
 CONFIG_PLATFORM_SIFIVE_FU740=y
 CONFIG_PLATFORM_STARFIVE_JH7110=y
-CONFIG_PLATFORM_SPACEMIT_K1PRO=y
+CONFIG_PLATFORM_SPACEMIT_K1X=y
+CONFIG_PLATFORM_SPACEMIT_K1X_EVB=y
 CONFIG_FDT_GPIO=y
 CONFIG_FDT_GPIO_SIFIVE=y
 CONFIG_FDT_GPIO_STARFIVE=y
-- 
2.53.0

openSUSE Build Service is sponsored by