From 1543e317f1da31b75942316931e8f491a8920811 Mon Sep 17 00:00:00 2001
From: hc <hc@nodka.com>
Date: Thu, 04 Jan 2024 10:08:02 +0000
Subject: [PATCH] disable FB

---
 kernel/drivers/rkflash/Makefile |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/kernel/drivers/rkflash/Makefile b/kernel/drivers/rkflash/Makefile
index f59991e..319656b 100644
--- a/kernel/drivers/rkflash/Makefile
+++ b/kernel/drivers/rkflash/Makefile
@@ -8,9 +8,20 @@
 
 obj-$(CONFIG_RK_SFTL) += rksftl.o
 
+ifdef CONFIG_CC_IS_CLANG
+ifdef CONFIG_THUMB2_KERNEL
+rksftl-$(CONFIG_THUMB2_KERNEL) += rk_sftl_arm_v7_thumb.o
+else
+rksftl-$(CONFIG_ARM64) += rk_sftl_arm_v8_clang.o
+rksftl-$(CONFIG_ARM) += rk_sftl_arm_v7.o
+endif
+
+else
+
 ifdef CONFIG_THUMB2_KERNEL
 rksftl-$(CONFIG_THUMB2_KERNEL) += rk_sftl_arm_v7_thumb.o
 else
 rksftl-$(CONFIG_ARM64) += rk_sftl_arm_v8.o
 rksftl-$(CONFIG_ARM) += rk_sftl_arm_v7.o
 endif
+endif

--
Gitblit v1.6.2